[PATCH 3 of 3] subrepo: only fetch unknown files from git when explicitly requested

Mathias De Maré mathias.demare at gmail.com
Wed Mar 4 11:01:44 CST 2015


On Wed, Mar 4, 2015 at 3:44 AM, Matt Harbison <mharbison72 at gmail.com> wrote:

> # HG changeset patch
> # User Matt Harbison <matt_harbison at yahoo.com>
> # Date 1425436276 18000
> #      Tue Mar 03 21:31:16 2015 -0500
> # Node ID 6bccd250e9fe61e665f20ed7b449ff06f5f4e3d3
> # Parent  d9d38d9d0be0c2ccd16e85ae7b42dcb52697648b
> subrepo: only fetch unknown files from git when explicitly requested
>
These all look good to me, nice cleanups.

Greetings,
Mathias

>
> diff --git a/mercurial/subrepo.py b/mercurial/subrepo.py
> --- a/mercurial/subrepo.py
> +++ b/mercurial/subrepo.py
> @@ -1662,7 +1662,7 @@
>
>          deleted, unknown, ignored, clean = [], [], [], []
>
> -        if not rev2:
> +        if opts.get('unknown'):
>              command = ['ls-files', '--others', '--exclude-standard']
>              out = self._gitcommand(command)
>              for line in out.split('\n'):
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20150304/6e6378fb/attachment.html>


More information about the Mercurial-devel mailing list