D821: unamend: move fb extension unamend to core

yuja (Yuya Nishihara) phabricator at mercurial-scm.org
Sat Dec 2 08:39:17 EST 2017


yuja added a comment.


  Can you send a follow-up to fix these issues?

INLINE COMMENTS

> uncommit.py:259
> +    # identify the commit from which to unamend
> +    curctx = repo['.']
> +

Probably better to query `curctx` after locks are taken.

> uncommit.py:280
> +        extras = predctx.extra()
> +        extras['unamend_source'] = curctx.node()
> +

This should be `curctx.hex()`. It's highly discouraged to store blob in extras.

> uncommit.py:311
> +        diff = cm.diff(wm)
> +        changedfiles.extend(diff.iterkeys())
> +

Mostly unused variables?

REPOSITORY
  rHG Mercurial

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

To: pulkit, #hg-reviewers, durham
Cc: yuja, quark, durin42, ryanmce, singhsrb, durham, mercurial-devel


More information about the Mercurial-devel mailing list