[PATCH 1 of 4] bookmarks: More verbose output

David Soria Parra sn_ at gmx.net
Thu Jul 23 17:58:32 CDT 2009


# HG changeset patch
# User David Soria Parra <dsp at php.net>
# Date 1248386643 -7200
# Node ID c97c15f8ecc9c5175a3c68e5a0b40e7e2ef94dad
# Parent  3f650f6aa130211271c4bbb22af942ee6356aa01
bookmarks: More verbose output

diff --git a/hgext/bookmarks.py b/hgext/bookmarks.py
--- a/hgext/bookmarks.py
+++ b/hgext/bookmarks.py
@@ -147,6 +147,7 @@
         if current(repo) == rename:
             setcurrent(repo, mark)
         write(repo, marks)
+        ui.status(_("renamed bookmark '%s' to '%s'\n") % (mark, rename))
         return
 
     if delete:
@@ -158,6 +159,7 @@
             setcurrent(repo, None)
         del marks[mark]
         write(repo, marks)
+        ui.status(_("deleted bookmark '%s'\n") % mark)
         return
 
     if mark != None:
@@ -175,6 +177,7 @@
         else:
             marks[mark] = repo.changectx('.').node()
             setcurrent(repo, mark)
+        ui.status(_("bookmark '%s' created\n") % mark)
         write(repo, marks)
         return
 


More information about the Mercurial-devel mailing list