[PATCH 2 of 2 v2] revert: use an exact matcher in interactive diff selection (issue5789)
Yuya Nishihara
yuya at tcha.org
Wed Feb 14 08:47:37 EST 2018
On Wed, 14 Feb 2018 14:15:21 +0100, Denis Laxalde wrote:
> # HG changeset patch
> # User Denis Laxalde <denis.laxalde at logilab.fr>
> # Date 1518613925 -3600
> # Wed Feb 14 14:12:05 2018 +0100
> # Node ID 6b505da3e8351e945b0e71a65870cbe2578b99ae
> # Parent 75a4598a4375d80d240c19625e2c43a069ba9618
> # Available At http://hg.logilab.org/users/dlaxalde/hg
> # hg pull http://hg.logilab.org/users/dlaxalde/hg -r 6b505da3e835
> # EXP-Topic revert-interactive-pats
> revert: use an exact matcher in interactive diff selection (issue5789)
Queued, thanks.
> - torevert = [repo.wjoin(f) for f in actions['revert'][0]]
> - m = scmutil.match(ctx, torevert, matcher_opts)
> + torevert = (f for f in actions['revert'][0] if f not in excluded_files)
Changed this to a list, which is probably safer than passing an iterator to
matchmod.
> + m = scmutil.matchfiles(repo, torevert)
More information about the Mercurial-devel
mailing list