localrepo.update: allow to suppress commit reminder.
authorVadim Gelfer <vadim.gelfer@gmail.com>
Mon, 07 Aug 2006 17:22:17 -0700
changeset 2798 2d60c682a081
parent 2797 a3c6e7888abf
child 2799 bd8a9a94139f
localrepo.update: allow to suppress commit reminder.
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Sun Aug 06 17:27:05 2006 +0200
+++ b/mercurial/localrepo.py	Mon Aug 07 17:22:17 2006 -0700
@@ -1698,7 +1698,8 @@
         return newheads - oldheads + 1
 
     def update(self, node, allow=False, force=False, choose=None,
-               moddirstate=True, forcemerge=False, wlock=None, show_stats=True):
+               moddirstate=True, forcemerge=False, wlock=None,
+               show_stats=True, remind=True):
         pl = self.dirstate.parents()
         if not force and pl[1] != nullid:
             raise util.Abort(_("outstanding uncommitted merges"))
@@ -1987,8 +1988,9 @@
                                     "  hg merge %s\n"
                                     % (self.changelog.rev(p1),
                                         self.changelog.rev(p2))))
-                else:
-                    self.ui.status(_("(branch merge, don't forget to commit)\n"))
+                elif remind:
+                    self.ui.status(_("(branch merge, don't forget "
+                                     "to commit)\n"))
             elif failedmerge:
                 self.ui.status(_("There are unresolved merges with"
                                  " locally modified files.\n"))