Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/revlog.py @ 67:a182f2561c8e
Add tag support
author | mpm@selenic.com |
---|---|
date | Fri, 13 May 2005 13:12:32 -0800 |
parents | d40cc5aacc31 |
children | 47c9a869adee |
comparison
equal
deleted
inserted
replaced
66:5ec8b2ed858f | 67:a182f2561c8e |
---|---|
71 c = [] | 71 c = [] |
72 for n in self.nodemap: | 72 for n in self.nodemap: |
73 if id in hex(n): | 73 if id in hex(n): |
74 c.append(n) | 74 c.append(n) |
75 if len(c) > 1: raise KeyError("Ambiguous identifier") | 75 if len(c) > 1: raise KeyError("Ambiguous identifier") |
76 if len(c) < 1: raise KeyError | 76 if len(c) < 1: raise KeyError("No match found") |
77 return c[0] | 77 return c[0] |
78 | 78 |
79 return None | 79 return None |
80 | 80 |
81 def revisions(self, list): | 81 def revisions(self, list): |