pulkit updated this revision to Diff 2427. REPOSITORY rHG Mercurial
CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D933?vs=2420&id=2427 REVISION DETAIL https://phab.mercurial-scm.org/D933 AFFECTED FILES mercurial/scmutil.py CHANGE DETAILS diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py --- a/mercurial/scmutil.py +++ b/mercurial/scmutil.py @@ -685,6 +685,14 @@ if tostrip: repair.delayedstrip(repo.ui, repo, tostrip, operation) +def showchanges(replacements, fm): + """ output the hash changes using formatter instance which is passed. + """ + nodesdict = {short(pred): [short(s) for s in succs] + for pred, succs in replacements.iteritems()} + fm.write('hashchanges', '%s\n', + fm.formatdict(nodesdict, fmt='%r --> %r', sep='\n')) + def addremove(repo, matcher, prefix, opts=None, dry_run=None, similarity=None): if opts is None: opts = {} To: pulkit, #hg-reviewers, dlax Cc: dlax, quark, yuja, mercurial-devel _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel