[PATCH 2 of 2 v2] copies: clean up _related logic

Yuya Nishihara yuya at tcha.org
Fri Apr 6 13:05:10 EDT 2018


On Thu, 05 Apr 2018 17:57:42 +0200, Gábor Stefanik wrote:
> # HG changeset patch
> # User Gábor Stefanik <gabor.stefanik at nng.com>
> # Date 1522943470 -7200
> #      Thu Apr 05 17:51:10 2018 +0200
> # Node ID 9f344b1ec04c43870c4ea439451714dbf9b35739
> # Parent  7d13af1b5cd6e5c95dceefc7d905429889583c8c
> copies: clean up _related logic

Queued this, thanks.

(Finally I made '--config patch.eol' tolerant of MS Exchange server. \o/)

> diff -r 7d13af1b5cd6 -r 9f344b1ec04c mercurial/copies.py
> --- a/mercurial/copies.py       Thu Apr 05 17:52:31 2018 +0200
> +++ b/mercurial/copies.py       Thu Apr 05 17:51:10 2018 +0200
> @@ -723,7 +723,7 @@
> 
>              for candidate in movecandidates:
>                  f1 = c1.filectx(candidate)
> -                if _related(f1, f2, anc.rev()):
> +                if _related(f1, f2):

Removed unused variable 'anc' in flight.


More information about the Mercurial-devel mailing list