Mercurial > public > mercurial-scm > hg-stable
diff mercurial/subrepo.py @ 25601:3ec8351fa6ed
archive: support 'wdir()'
This is a step toward replacing the extdiff internals with archive, in order to
support 'extdiff -S'. Only Mercurial subrepos are supported for now.
If a file is missing from the filesystem, it is silently skipped. Perhaps it
should warn, but it cannot abort when working with extdiff because deleting a
file is a legitimate diff.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 16 Jun 2015 23:06:57 -0400 |
parents | 70ac1868b707 |
children | e93036747902 |
line wrap: on
line diff
--- a/mercurial/subrepo.py Tue Jun 16 23:03:36 2015 -0400 +++ b/mercurial/subrepo.py Tue Jun 16 23:06:57 2015 -0400 @@ -762,7 +762,7 @@ rev = self._state[1] ctx = self._repo[rev] for subpath in ctx.substate: - s = subrepo(ctx, subpath) + s = subrepo(ctx, subpath, True) submatch = matchmod.narrowmatcher(subpath, match) total += s.archive(archiver, prefix + self._path + '/', submatch) return total