diff mercurial/hg.py @ 163:f38c90953c2c

Make undo and recover friendlier Add them to the help display, have them report failure
author mpm@selenic.com
date Thu, 26 May 2005 09:48:50 -0800
parents 5dcbe4d9a30c
children 75dddd697ed4
line wrap: on
line diff
--- a/mercurial/hg.py
+++ b/mercurial/hg.py
@@ -300,7 +300,10 @@ class localrepository:
     def recover(self, f = "journal"):
         self.lock()
         if os.path.exists(self.join(f)):
+            self.ui.status("attempting to rollback %s information\n" % f)
             return rollback(self.opener, self.join(f))
+        else:
+            self.ui.warn("no %s information available\n" % f)
 
     def lock(self, wait = 1):
         try: