[PATCH 2 of 2] bookmarks: replace code-redundant comment with something more useful

Adrian Buehlmann adrian at cadifra.com
Thu Oct 18 15:41:51 CDT 2012


# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1350592528 -7200
# Node ID a7462ca7f75e60ae765114b2fcdf8dc7a262372b
# Parent  f74217289c0aae65ffbff706c19c2ef1270f6d52
bookmarks: replace code-redundant comment with something more useful

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -851,7 +851,7 @@
             bookmarks.setcurrent(repo, mark)
         bookmarks.write(repo)
 
-    else: # mark is None
+    else: # show bookmarks
         if len(marks) == 0:
             ui.status(_("no bookmarks set\n"))
         elif inactive:


More information about the Mercurial-devel mailing list