equal
deleted
inserted
replaced
467 |
467 |
468 def fileflags(self, name): |
468 def fileflags(self, name): |
469 """return file flags""" |
469 """return file flags""" |
470 return '' |
470 return '' |
471 |
471 |
|
472 def printfiles(self, ui, m, fm, fmt): |
|
473 """handle the files command for this subrepo""" |
|
474 return 1 |
|
475 |
472 def archive(self, archiver, prefix, match=None): |
476 def archive(self, archiver, prefix, match=None): |
473 if match is not None: |
477 if match is not None: |
474 files = [f for f in self.files() if match(f)] |
478 files = [f for f in self.files() if match(f)] |
475 else: |
479 else: |
476 files = self.files() |
480 files = self.files() |
845 |
849 |
846 def fileflags(self, name): |
850 def fileflags(self, name): |
847 rev = self._state[1] |
851 rev = self._state[1] |
848 ctx = self._repo[rev] |
852 ctx = self._repo[rev] |
849 return ctx.flags(name) |
853 return ctx.flags(name) |
|
854 |
|
855 @annotatesubrepoerror |
|
856 def printfiles(self, ui, m, fm, fmt): |
|
857 # If the parent context is a workingctx, use the workingctx here for |
|
858 # consistency. |
|
859 if self._ctx.rev() is None: |
|
860 ctx = self._repo[None] |
|
861 else: |
|
862 rev = self._state[1] |
|
863 ctx = self._repo[rev] |
|
864 return cmdutil.files(ui, ctx, m, fm, fmt, True) |
850 |
865 |
851 def walk(self, match): |
866 def walk(self, match): |
852 ctx = self._repo[None] |
867 ctx = self._repo[None] |
853 return ctx.walk(match) |
868 return ctx.walk(match) |
854 |
869 |