Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/subrepo.py @ 25228:63a57a2727b6
files: recurse into subrepos automatically with an explicit path
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 17 May 2015 22:42:47 -0400 |
parents | ca9c02cb81be |
children | c4a92867c048 |
comparison
equal
deleted
inserted
replaced
25227:fd0f919170d2 | 25228:63a57a2727b6 |
---|---|
502 | 502 |
503 def getfileset(self, expr): | 503 def getfileset(self, expr): |
504 """Resolve the fileset expression for this repo""" | 504 """Resolve the fileset expression for this repo""" |
505 return set() | 505 return set() |
506 | 506 |
507 def printfiles(self, ui, m, fm, fmt): | 507 def printfiles(self, ui, m, fm, fmt, subrepos): |
508 """handle the files command for this subrepo""" | 508 """handle the files command for this subrepo""" |
509 return 1 | 509 return 1 |
510 | 510 |
511 def archive(self, archiver, prefix, match=None): | 511 def archive(self, archiver, prefix, match=None): |
512 if match is not None: | 512 if match is not None: |
902 rev = self._state[1] | 902 rev = self._state[1] |
903 ctx = self._repo[rev] | 903 ctx = self._repo[rev] |
904 return ctx.flags(name) | 904 return ctx.flags(name) |
905 | 905 |
906 @annotatesubrepoerror | 906 @annotatesubrepoerror |
907 def printfiles(self, ui, m, fm, fmt): | 907 def printfiles(self, ui, m, fm, fmt, subrepos): |
908 # If the parent context is a workingctx, use the workingctx here for | 908 # If the parent context is a workingctx, use the workingctx here for |
909 # consistency. | 909 # consistency. |
910 if self._ctx.rev() is None: | 910 if self._ctx.rev() is None: |
911 ctx = self._repo[None] | 911 ctx = self._repo[None] |
912 else: | 912 else: |
913 rev = self._state[1] | 913 rev = self._state[1] |
914 ctx = self._repo[rev] | 914 ctx = self._repo[rev] |
915 return cmdutil.files(ui, ctx, m, fm, fmt, True) | 915 return cmdutil.files(ui, ctx, m, fm, fmt, subrepos) |
916 | 916 |
917 @annotatesubrepoerror | 917 @annotatesubrepoerror |
918 def getfileset(self, expr): | 918 def getfileset(self, expr): |
919 if self._ctx.rev() is None: | 919 if self._ctx.rev() is None: |
920 ctx = self._repo[None] | 920 ctx = self._repo[None] |