comparison mercurial/revlog.py @ 7062:efc579fdaf69

provide nicer feedback when an unknown node id is passed to a command Previously, an unknown node id would lead to the following error: abort: 00changelog.i@343445453433: no node! All other unknown revision would instead display as: abort: unknown revision '343445453'! The former error message has been suppressed in favor of the latter.
author Sune Foldager <cryo@cyanite.org>
date Sat, 04 Oct 2008 10:14:39 +0200
parents b92baef99ebf
children c57b30f1bc15
comparison
equal deleted inserted replaced
7061:8b874f8cd29f 7062:efc579fdaf69
850 try: 850 try:
851 # a full hex nodeid? 851 # a full hex nodeid?
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):
859 if len(id) < 40: 859 if len(id) < 40:
860 try: 860 try: