D933: scmutil: add a new function to show changes after a command

dlax (Denis Laxalde) phabricator at mercurial-scm.org
Wed Oct 4 15:16:29 EDT 2017


dlax added inline comments.

INLINE COMMENTS

> dlax wrote in scmutil.py:695
> A "correct" indentation would be:
> 
>   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'))
> 
> Continuation lines should be aligned with the opening delimiter.

almost fine, just add an extra space in continuation lines so that they start //after// the opening delimiter.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D933

To: pulkit, #hg-reviewers, dlax
Cc: dlax, quark, yuja, mercurial-devel


More information about the Mercurial-devel mailing list