mercurial/verify.py
changeset 9690 b33d70849a20
parent 9657 96c803e9018f
child 10263 25e572394f5c
--- a/mercurial/verify.py	Sun Nov 01 03:26:10 2009 +0100
+++ b/mercurial/verify.py	Mon Nov 02 10:15:04 2009 +0100
@@ -7,6 +7,7 @@
 
 from node import nullid, short
 from i18n import _
+import os
 import revlog, util, error
 
 def verify(repo):
@@ -105,6 +106,9 @@
         seen[n] = i
         return lr
 
+    if os.path.exists(repo.sjoin("journal")):
+        ui.warn(_("abandoned transaction found - run hg recover\n"))
+
     revlogv1 = cl.version != revlog.REVLOGV0
     if ui.verbose or not revlogv1:
         ui.status(_("repository uses revlog format %d\n") %