changeset 24211:1e3e064c16a1

subrepo: only fetch unknown files from git when explicitly requested
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 03 Mar 2015 21:31:16 -0500
parents 99362821b25b
children 4ef4e3c3c006
files mercurial/subrepo.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/subrepo.py	Tue Mar 03 21:24:16 2015 -0500
+++ b/mercurial/subrepo.py	Tue Mar 03 21:31:16 2015 -0500
@@ -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'):