# HG changeset patch # User Vadim Gelfer # Date 1154996537 25200 # Node ID 2d60c682a0819db3df4b5f3c9f07fcc0c041817d # Parent a3c6e7888abf0f8ac37a1983cbf6c6da0ae0a595 localrepo.update: allow to suppress commit reminder. diff -r a3c6e7888abf -r 2d60c682a081 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"))