##// END OF EJS Templates
Fix traceback during invalid rev identifier for debugdata
Anupam Kapoor -
r1313:1cc7c0cb default
parent child Browse files
Show More
@@ -853,7 +853,10 b' def debugstate(ui, repo):'
853 def debugdata(ui, file_, rev):
853 def debugdata(ui, file_, rev):
854 """dump the contents of an data file revision"""
854 """dump the contents of an data file revision"""
855 r = revlog.revlog(file, file_[:-2] + ".i", file_)
855 r = revlog.revlog(file, file_[:-2] + ".i", file_)
856 ui.write(r.revision(r.lookup(rev)))
856 try:
857 ui.write(r.revision(r.lookup(rev)))
858 except KeyError:
859 raise util.Abort('invalid revision identifier %s', rev)
857
860
858 def debugindex(ui, file_):
861 def debugindex(ui, file_):
859 """dump the contents of an index file"""
862 """dump the contents of an index file"""
General Comments 0
You need to be logged in to leave comments. Login now