D598: cmdutil: remove the redundant commit during amend
singhsrb (Saurabh Singh)
phabricator at mercurial-scm.org
Fri Sep 1 18:13:49 EDT 2017
singhsrb added inline comments.
INLINE COMMENTS
> cmdutil.py:3083
> # Recompute copies (avoid recording a -> b -> a)
> - copied = copies.pathcopies(base, ctx)
> + copied = copies.pathcopies(base, wctx)
> if old.p2:
This code can be optimized by passing the matcher to copies.pathcopies. That will ensure that we are only computing the copies for only the files to be amended.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D598
To: singhsrb, #hg-reviewers, durham
Cc: durham, mercurial-devel
More information about the Mercurial-devel
mailing list