comparison mercurial/subrepo.py @ 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 7a2194473155
children bd9f64ec891d
comparison
equal deleted inserted replaced
24172:e0f06228bb66 24173:2cc8ee4c4e1c
834 834
835 @annotatesubrepoerror 835 @annotatesubrepoerror
836 def files(self): 836 def files(self):
837 rev = self._state[1] 837 rev = self._state[1]
838 ctx = self._repo[rev] 838 ctx = self._repo[rev]
839 return ctx.manifest() 839 return ctx.manifest().keys()
840 840
841 def filedata(self, name): 841 def filedata(self, name):
842 rev = self._state[1] 842 rev = self._state[1]
843 return self._repo[rev][name].data() 843 return self._repo[rev][name].data()
844 844