Changeset 564 in tailor


Ignore:
Timestamp:
08/15/05 02:29:57 (8 years ago)
Author:
lele@…
Hash name:
20050815002957-97f81-18d8b5f937688041998a01280cb505f5cea8d51f
Message:

Handle the case when sincerev is INITIAL or HEAD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/cvs.py

    r560 r564  
    291291                branch=tag[1:-1] 
    292292 
    293         if not sincerev: 
    294             # We are bootstrapping, trying to collimate the 
    295             # actual revision on disk with the changesets. 
     293        cmd = [self.repository.CVS_CMD, "-f", "-d", "%(repository)s", "rlog", 
     294               "-N"] 
     295 
     296        if not sincerev or sincerev in ("INITIAL", "HEAD"): 
     297            # We are bootstrapping, trying to collimate the actual 
     298            # revision on disk with the changesets, or figuring out 
     299            # the first revision 
    296300            since = None 
     301            if sincerev == "HEAD": 
     302                if branch and branch<>'HEAD': 
     303                    cmd.append("-r%(branch)s.") 
     304                else: 
     305                    cmd.append("-rHEAD:HEAD") 
     306            else: 
     307                cmd.append("-r:HEAD") 
    297308        else: 
    298309            # Assume this is from __getGlobalRevision() 
    299310            since, author = sincerev.split(' by ') 
    300  
    301         cmd = [self.repository.cvs, "-f", "-d", "%(repository)s", "rlog", "-N", 
    302                "-r:%(branch)s"] 
    303         if since: 
    304             cmd.extend(["-d", "%(since)s UTC<"]) 
     311            cmd.extend(["-d", "%(since)s UTC<", "-r:%(branch)s"]) 
    305312 
    306313        cvslog = ExternalCommand(command=cmd) 
Note: See TracChangeset for help on using the changeset viewer.