Show More
@@ -1840,7 +1840,7 b' class localrepository(object):' | |||
|
1840 | 1840 | # when we know that '.' won't be hidden |
|
1841 | 1841 | node = self.dirstate.p1() |
|
1842 | 1842 | rev = self.unfiltered().changelog.rev(node) |
|
1843 |
elif len(changeid) == |
|
|
1843 | elif len(changeid) == self.nodeconstants.nodelen: | |
|
1844 | 1844 | try: |
|
1845 | 1845 | node = changeid |
|
1846 | 1846 | rev = self.changelog.rev(changeid) |
@@ -1299,7 +1299,7 b' class revlog(object):' | |||
|
1299 | 1299 | if isinstance(id, int): |
|
1300 | 1300 | # rev |
|
1301 | 1301 | return self.node(id) |
|
1302 |
if len(id) == |
|
|
1302 | if len(id) == self.nodeconstants.nodelen: | |
|
1303 | 1303 | # possibly a binary node |
|
1304 | 1304 | # odds of a binary node being all hex in ASCII are 1 in 10**25 |
|
1305 | 1305 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now