if item.revision == rev:
return metadata[i].revno
return None
+ def branch_to_base(self, revid):
+ "Go from a branch ID sticky tag to the revision it was based on."
+ return self.joinrev(self.splitrev(revid)[:-2])
def add(self, arg):
"Register a file"
# Key choices here: -b suppresses all keyword expansion, -U sets
#print "\t%d revisions" % len(metadata.revlist)
print "\tlockrevs:", metadata.lockrevs
print "\tsymbols:", metadata.symbols
- def branch_to_base(self, revid):
- "Go from a branch ID sticky tag to the revision it was based on."
- return ".".join(revid.split(".")[:-2])
if __name__ == "__main__":
try: