[PATCH 2 of 2] bookmarks: add status output to rollback

David Soria Parra dsp at php.net
Thu Jan 27 02:02:02 UTC 2011


# HG changeset patch
# User David Soria Parra <dsp at php.net>
# Date 1296093667 -3600
# Node ID 70fc03bbd3c9a2b66c42ee5ef33b75eae0f18591
# Parent  ed8d639d4ffb4ddcb30b94870d0ead13c6796411
bookmarks: add status output to rollback

diff --git a/hgext/bookmarks.py b/hgext/bookmarks.py
--- a/hgext/bookmarks.py
+++ b/hgext/bookmarks.py
@@ -264,6 +264,7 @@
 
         def rollback(self, dryrun=False):
             if os.path.exists(self.join('undo.bookmarks')):
+                self.ui.status(_("rolling back bookmarks\n"))
                 if not dryrun:
                     util.rename(self.join('undo.bookmarks'), self.join('bookmarks'))
                 elif not os.path.exists(self.sjoin("undo")):
diff --git a/tests/test-bookmarks-strip.t b/tests/test-bookmarks-strip.t
--- a/tests/test-bookmarks-strip.t
+++ b/tests/test-bookmarks-strip.t
@@ -77,6 +77,7 @@
   adding b
   $ hg bookmarks markb
   $ hg rollback
+  rolling back bookmarks
   rolling back to revision 0 (undo commit)
 
 are you there?
@@ -93,6 +94,7 @@
 rollback dry run with rollback information
 
   $ hg rollback -n
+  rolling back bookmarks
   $ hg bookmarks
    * markb                     0:07f494440405
 



More information about the Mercurial-devel mailing list