subrepo: return only the manifest keys from hgsubrepo.files()
authorMatt Harbison <matt_harbison@yahoo.com>
Sun, 15 Feb 2015 17:29:10 -0500
changeset 24173 2cc8ee4c4e1c
parent 24172 e0f06228bb66
child 24174 bd9f64ec891d
subrepo: return only the manifest keys from hgsubrepo.files() This is in line with the other subrepo classes (i.e. only the filenames are returned). Archive iterates over the manifest keys, and since subrepo archive() uses this method, it does too now. This will allow largefiles to override its manifest keys to present the largefiles instead of the standins. Once in place, we shouldn't need the copy/paste overrides of archive and subrepo archive in largefiles, that don't quite behave like the core methods they are overriding.
mercurial/subrepo.py
--- a/mercurial/subrepo.py	Sun Feb 15 17:21:48 2015 -0500
+++ b/mercurial/subrepo.py	Sun Feb 15 17:29:10 2015 -0500
@@ -836,7 +836,7 @@
     def files(self):
         rev = self._state[1]
         ctx = self._repo[rev]
-        return ctx.manifest()
+        return ctx.manifest().keys()
 
     def filedata(self, name):
         rev = self._state[1]