Changeset 565 in tailor
- Timestamp:
- 08/15/05 02:30:52 (8 years ago)
- Hash name:
- 20050815003052-97f81-81f20b5590f4f93495abeb528c8d3aa0a396a58e
- Location:
- vcpx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
vcpx/cvsps.py
r562 r565 263 263 from cvs import CvsEntries, compare_cvs_revs 264 264 265 if not module:265 if not self.repository.module: 266 266 raise InvocationError("Must specify a module name") 267 267 … … 284 284 285 285 if not exists(join(self.basedir, 'CVS')): 286 cmd = [self.repository.CVS_CMD, "-q", "-d", repository, "checkout", 287 "-d", self.basedir] 286 cmd = [self.repository.CVS_CMD, "-q", "-d", 287 self.repository.repository, "checkout", 288 "-d", self.repository.subdir] 288 289 if revision: 289 290 cmd.extend(["-r", revision]) … … 291 292 cmd.extend(["-D", "%s UTC" % timestamp]) 292 293 293 checkout = ExternalCommand(c ommand=cmd)294 checkout.execute( module)294 checkout = ExternalCommand(cwd=self.repository.rootdir, command=cmd) 295 checkout.execute(self.repository.module) 295 296 296 297 if checkout.exit_status: … … 301 302 self.log_info("Using existing %s", self.basedir) 302 303 303 self.__forceTagOnEachEntry( self.basedir)304 305 entries = CvsEntries( wdir)304 self.__forceTagOnEachEntry() 305 306 entries = CvsEntries(self.basedir) 306 307 youngest_entry = entries.getYoungestEntry() 307 308 if youngest_entry is None: … … 332 333 raise TargetInitializationFailure( 333 334 "Something went wrong: unable to determine the exact upstream " 334 "revision of the checked out tree in '%s'" % wdir)335 "revision of the checked out tree in '%s'" % self.basedir) 335 336 else: 336 self.log_info("working copy up to cvs ps revision %s",last.revision)337 self.log_info("working copy up to cvs revision %s" % last.revision) 337 338 338 339 return last -
vcpx/cvs.py
r564 r565 313 313 cvslog = ExternalCommand(command=cmd) 314 314 315 log = cvslog.execute( module, stdout=PIPE, stderr=STDOUT,316 repository= repository, since=since,317 branch=branch or 'HEAD', TZ='UTC')315 log = cvslog.execute(self.repository.module, stdout=PIPE, stderr=STDOUT, 316 repository=self.repository.repository, 317 since=since, branch=branch or 'HEAD', TZ='UTC') 318 318 319 319 if cvslog.exit_status: … … 321 321 "%s returned status %d" % (str(cvslog), cvslog.exit_status)) 322 322 323 return changesets_from_cvslog(log, module)323 return changesets_from_cvslog(log, self.repository.module) 324 324 325 325
Note: See TracChangeset
for help on using the changeset viewer.
