Changeset 206 in tailor


Ignore:
Timestamp:
01/02/05 01:27:17 (8 years ago)
Author:
lele@…
Hash name:
20050102002717-97f81-17146de85256a9c1bcc0f1fd73e4888a9be37e83
Message:

Solve another glitch with the module argument
If module is not given, compute it from the last part of the repository,
as it is used for decoration purposes.

Location:
vcpx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • vcpx/svn.py

    r201 r206  
    113113     
    114114class SvnCheckout(SystemCommand): 
    115     COMMAND = "svn co --revision %(revision)s %(repository)s/%(module)s %(wc)s" 
     115    COMMAND = "svn co --revision %(revision)s %(repository)s%(module)s %(wc)s" 
     116 
     117    def __call__(self, output=None, dry_run=False, **kwargs): 
     118        module = kwargs.get('module') 
     119        if module: 
     120            module = '/%s' % module 
     121        else: 
     122            module = '' 
     123        kwargs['module'] = module 
     124        return SystemCommand.__call__(self, output=output, 
     125                                      dry_run=dry_run, **kwargs) 
     126 
    116127 
    117128def changesets_from_svnlog(log, url): 
  • vcpx/tailor.py

    r201 r206  
    284284        # in the directory named as the last component of the module's name 
    285285 
    286         if not subdir: 
    287             subdir = module 
     286        if not module: 
     287            module = split(repository)[1] 
    288288 
    289289        try: 
     
    424424                     "the source version control kind."), 
    425425    make_option("-m", "--module", dest="module", metavar="MODULE", 
    426                 help="Specify the module to checkout at bootstrap time."), 
     426                help="Specify the module to checkout at bootstrap time. " 
     427                     "It's mandatory only when dealing with CVS, and used but " 
     428                     "not required with SVN, but since it's used in" 
     429                     "the description of the target repository, you" 
     430                     "are encouraged to give it a value with darcs too."), 
    427431    make_option("-r", "--revision", dest="revision", metavar="REV", 
    428432                help="Specify the revision bootstrap should checkout.  REV " 
Note: See TracChangeset for help on using the changeset viewer.