Comments
Patch
@@ -620,7 +620,7 @@
def _showstats(repo, stats):
repo.ui.status(_("%d files updated, %d files merged, "
- "%d files removed, %d files unresolved\n") % stats)
+ "%d files removed, %d files unresolved\n") % stats[:4])
def updaterepo(repo, node, overwrite):
"""Update the working directory to node.
@@ -658,7 +658,7 @@
if stats[3]:
repo.ui.status(_("use 'hg resolve' to retry unresolved file merges "
"or 'hg update -C .' to abandon\n"))
- elif remind:
+ elif remind and stats[4]:
repo.ui.status(_("(branch merge, don't forget to commit)\n"))
return stats[3] > 0
@@ -20,10 +20,12 @@
nullrev,
)
from . import (
+ bookmarks,
copies,
destutil,
error,
filemerge,
+ hg,
obsolete,
subrepo,
util,
@@ -1135,7 +1137,9 @@
4 = abort: uncommitted changes (checked in commands.py)
5 = incompatible options (checked in commands.py)
- Return the same tuple as applyupdates().
+ Return the same tuple as applyupdates(), plus an extra bool entry
at the end
+ that is True if we've done a merge and a commit is necessary. No commit is
+ needed when a merge just moves a bookmark.
"""