Changeset 565 in tailor


Ignore:
Timestamp:
08/15/05 02:30:52 (8 years ago)
Author:
lele@…
Hash name:
20050815003052-97f81-81f20b5590f4f93495abeb528c8d3aa0a396a58e
Message:

Fix old code still using repository and module arguments

Location:
vcpx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • vcpx/cvsps.py

    r562 r565  
    263263        from cvs import CvsEntries, compare_cvs_revs 
    264264 
    265         if not module: 
     265        if not self.repository.module: 
    266266            raise InvocationError("Must specify a module name") 
    267267 
     
    284284 
    285285        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] 
    288289            if revision: 
    289290                cmd.extend(["-r", revision]) 
     
    291292                cmd.extend(["-D", "%s UTC" % timestamp]) 
    292293 
    293             checkout = ExternalCommand(command=cmd) 
    294             checkout.execute(module) 
     294            checkout = ExternalCommand(cwd=self.repository.rootdir, command=cmd) 
     295            checkout.execute(self.repository.module) 
    295296 
    296297            if checkout.exit_status: 
     
    301302            self.log_info("Using existing %s", self.basedir) 
    302303 
    303         self.__forceTagOnEachEntry(self.basedir) 
    304  
    305         entries = CvsEntries(wdir) 
     304        self.__forceTagOnEachEntry() 
     305 
     306        entries = CvsEntries(self.basedir) 
    306307        youngest_entry = entries.getYoungestEntry() 
    307308        if youngest_entry is None: 
     
    332333            raise TargetInitializationFailure( 
    333334                "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) 
    335336        else: 
    336             self.log_info("working copy up to cvsps revision %s", last.revision) 
     337            self.log_info("working copy up to cvs revision %s" % last.revision) 
    337338 
    338339        return last 
  • vcpx/cvs.py

    r564 r565  
    313313        cvslog = ExternalCommand(command=cmd) 
    314314 
    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') 
    318318 
    319319        if cvslog.exit_status: 
     
    321321                "%s returned status %d" % (str(cvslog), cvslog.exit_status)) 
    322322 
    323         return changesets_from_cvslog(log, module) 
     323        return changesets_from_cvslog(log, self.repository.module) 
    324324 
    325325 
Note: See TracChangeset for help on using the changeset viewer.