Changeset 189 in tailor
- Timestamp:
- 12/27/04 22:06:16 (8 years ago)
- Hash name:
- 20041227210616-97f81-a214bf0dfa20faba590b8d4ae217adaf6b64018a
- Location:
- vcpx
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
vcpx/cvsps.py
r171 r189 292 292 293 293 wdir = join(basedir, subdir) 294 if not exists( wdir):294 if not exists(join(wdir, 'CVS')): 295 295 c = CvsCheckout(working_dir=basedir) 296 296 c(output=True, -
vcpx/darcs.py
r181 r189 187 187 188 188 def _checkoutUpstreamRevision(self, basedir, repository, module, revision, 189 logger=None):189 subdir=None, logger=None): 190 190 """ 191 191 Concretely do the checkout of the upstream revision. 192 192 """ 193 193 194 from os.path import join, exists 195 196 wdir = join(basedir, module) 197 198 if not exists(wdir): 194 from os.path import join, exists, split 195 196 if not subdir: 197 subdir = split(module)[1] 198 199 wdir = join(basedir, subdir) 200 if not exists(join(wdir, '_darcs')): 199 201 dget = SystemCommand(working_dir=basedir, 200 202 command="darcs get --partial --verbose" 201 " %(tag)s '%(repository)s' ")203 " %(tag)s '%(repository)s' %(subdir)s") 202 204 203 205 dget(output=True, repository=repository, 204 tag=revision<>'HEAD' and '--tag=%s' % repr(revision) or '') 206 tag=revision<>'HEAD' and '--tag=%s' % repr(revision) or '', 207 subdir=subdir) 205 208 if dget.exit_status: 206 209 raise TargetInitializationFailure( -
vcpx/svn.py
r188 r189 282 282 wdir = join(basedir, subdir) 283 283 284 if not exists(wdir): 284 if not exists(join(wdir, '.svn')): 285 if logger: logger.info("checking out a working copy") 285 286 svnco = SvnCheckout(working_dir=basedir) 286 287 svnco(output=True, repository=repository, module=module, … … 289 290 raise TargetInitializationFailure( 290 291 "'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) 291 294 292 295 svninfo = SvnInfo(working_dir=wdir)
Note: See TracChangeset
for help on using the changeset viewer.
