##// END OF EJS Templates
merge: document some internal return values.
Greg Ward -
r13162:115a9760 default
parent child Browse files
Show More
@@ -395,7 +395,8 b' def clean(repo, node, show_stats=True):'
395 return stats[3] > 0
395 return stats[3] > 0
396
396
397 def merge(repo, node, force=None, remind=True):
397 def merge(repo, node, force=None, remind=True):
398 """branch merge with node, resolving changes"""
398 """Branch merge with node, resolving changes. Return true if any
399 unresolved conflicts."""
399 stats = mergemod.update(repo, node, True, force, False)
400 stats = mergemod.update(repo, node, True, force, False)
400 _showstats(repo, stats)
401 _showstats(repo, stats)
401 if stats[3]:
402 if stats[3]:
@@ -255,6 +255,9 b' def applyupdates(repo, action, wctx, mct'
255 wctx is the working copy context
255 wctx is the working copy context
256 mctx is the context to be merged into the working copy
256 mctx is the context to be merged into the working copy
257 actx is the context of the common ancestor
257 actx is the context of the common ancestor
258
259 Return a tuple of counts (updated, merged, removed, unresolved) that
260 describes how many files were affected by the update.
258 """
261 """
259
262
260 updated, merged, removed, unresolved = 0, 0, 0, 0
263 updated, merged, removed, unresolved = 0, 0, 0, 0
@@ -462,6 +465,8 b' def update(repo, node, branchmerge, forc'
462 use 'hg update -C' to discard changes)
465 use 'hg update -C' to discard changes)
463 3 = abort: uncommitted local changes
466 3 = abort: uncommitted local changes
464 4 = incompatible options (checked in commands.py)
467 4 = incompatible options (checked in commands.py)
468
469 Return the same tuple as applyupdates().
465 """
470 """
466
471
467 onode = node
472 onode = node
General Comments 0
You need to be logged in to leave comments. Login now