##// END OF EJS Templates
provide nicer feedback when an unknown node id is passed to a command...
Sune Foldager -
r7062:efc579fd default
parent child Browse files
Show More
@@ -852,7 +852,7 class revlog(object):
852 node = bin(id)
852 node = bin(id)
853 r = self.rev(node)
853 r = self.rev(node)
854 return node
854 return node
855 except TypeError:
855 except (TypeError, LookupError):
856 pass
856 pass
857
857
858 def _partialmatch(self, id):
858 def _partialmatch(self, id):
@@ -98,4 +98,7 hg log -P 2
98 echo '% log -r ""'
98 echo '% log -r ""'
99 hg log -r ''
99 hg log -r ''
100
100
101 echo '% log -r <some unknown node id>'
102 hg log -r 1000000000000000000000000000000000000000
103
101 exit 0
104 exit 0
@@ -223,3 +223,5 summary: b1
223
223
224 % log -r ""
224 % log -r ""
225 abort: 00changelog.i@: ambiguous identifier!
225 abort: 00changelog.i@: ambiguous identifier!
226 % log -r <some unknown node id>
227 abort: unknown revision '1000000000000000000000000000000000000000'!
General Comments 0
You need to be logged in to leave comments. Login now