##// END OF EJS Templates
journal: set Abort hint when failing due to an abandoned transaction
Johan Bjork -
r21274:3b4c7569 default
parent child Browse files
Show More
@@ -857,7 +857,8 b' class localrepository(object):'
857 857 # abort here if the journal already exists
858 858 if self.svfs.exists("journal"):
859 859 raise error.RepoError(
860 _("abandoned transaction found - run hg recover"))
860 _("abandoned transaction found"),
861 hint=_("run 'hg recover' to clean up transaction"))
861 862
862 863 def onclose():
863 864 self.store.write(tr)
@@ -9,7 +9,8 b''
9 9
10 10 $ echo foo > a
11 11 $ hg ci -Am0
12 abort: abandoned transaction found - run hg recover!
12 abort: abandoned transaction found!
13 (run 'hg recover' to clean up transaction)
13 14 [255]
14 15
15 16 $ hg recover
General Comments 0
You need to be logged in to leave comments. Login now