subrepo: only fetch unknown files from git when explicitly requested
authorMatt Harbison <matt_harbison@yahoo.com>
Tue, 03 Mar 2015 21:31:16 -0500
changeset 24211 1e3e064c16a1
parent 24210 99362821b25b
child 24212 4ef4e3c3c006
subrepo: only fetch unknown files from git when explicitly requested
mercurial/subrepo.py
--- 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'):