changeset 24173:2cc8ee4c4e1c

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.
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 15 Feb 2015 17:29:10 -0500
parents e0f06228bb66
children bd9f64ec891d
files mercurial/subrepo.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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]