Changeset 892 in tailor


Ignore:
Timestamp:
10/12/05 17:08:51 (8 years ago)
Author:
lele@…
Hash name:
20051012150851-7a6fb-4c4e0d1b0d5761ece93861834e2a94381f0398ea
Message:

Do not specify multi level subdirs to CVS checkout -d option
This should fix ticket #9, as it is now possible to use arbitrary
subdirectory for the source working dir.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/cvsps.py

    r884 r892  
    263263        """ 
    264264 
    265         from os.path import join, exists 
     265        from os.path import join, exists, split 
    266266        from cvs import CvsEntries, compare_cvs_revs 
    267267        from time import sleep 
     
    296296 
    297297        if not exists(join(self.basedir, 'CVS')): 
     298            # CVS does not handle "checkout -d multi/level/subdir", so 
     299            # split the basedir and use it's parentdir as cwd below. 
     300            parentdir, subdir = split(self.basedir) 
    298301            cmd = self.repository.command("-q", 
    299302                                          "-d", self.repository.repository, 
    300303                                          "checkout", 
    301                                           "-d", self.repository.subdir) 
     304                                          "-d", subdir) 
    302305            if revision: 
    303306                cmd.extend(["-r", revision]) 
     
    305308                cmd.extend(["-D", "%s UTC" % timestamp]) 
    306309 
    307             checkout = ExternalCommand(cwd=self.repository.rootdir, command=cmd) 
     310            checkout = ExternalCommand(cwd=parentdir, command=cmd) 
    308311            retry = 0 
    309312            while True: 
Note: See TracChangeset for help on using the changeset viewer.