Changeset 189 in tailor for vcpx/svn.py


Ignore:
Timestamp:
12/27/04 22:06:16 (8 years ago)
Author:
lele@…
Hash name:
20041227210616-97f81-a214bf0dfa20faba590b8d4ae217adaf6b64018a
Message:

Tailorized projects do not need to be in a subdirectory anymore
Now, by specifying for example --subdir=., a tailorized project
can be extracted from the source and rewrapped into the target
system without adding a "spurious" subdirectory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/svn.py

    r188 r189  
    282282        wdir = join(basedir, subdir) 
    283283 
    284         if not exists(wdir): 
     284        if not exists(join(wdir, '.svn')): 
     285            if logger: logger.info("checking out a working copy") 
    285286            svnco = SvnCheckout(working_dir=basedir) 
    286287            svnco(output=True, repository=repository, module=module, 
     
    289290                raise TargetInitializationFailure( 
    290291                    "'svn checkout' returned status %s" % svnco.exit_status) 
     292        else: 
     293            if logger: logger.info("%s already exists, assuming it's a svn working dir" % wdir) 
    291294 
    292295        svninfo = SvnInfo(working_dir=wdir) 
Note: See TracChangeset for help on using the changeset viewer.