Mercurial > hg-stable
changeset 16583:146a00c162a0
revert: don't re-create changeset context
author | Kevin Bullock <kbullock@ringworld.org> |
---|---|
date | Fri, 04 May 2012 09:20:28 -0500 |
parents | 48dfd9ae924a |
children | 20cde586ae5a |
files | mercurial/cmdutil.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Fri May 04 14:40:11 2012 +0200 +++ b/mercurial/cmdutil.py Fri May 04 09:20:28 2012 -0500 @@ -1481,7 +1481,7 @@ def badfn(path, msg): if path in names: return - if path in repo[node].substate: + if path in ctx.substate: return path_ = path + '/' for f in names: @@ -1489,14 +1489,14 @@ return ui.warn("%s: %s\n" % (m.rel(path), msg)) - m = scmutil.match(repo[node], pats, opts) + m = scmutil.match(ctx, pats, opts) m.bad = badfn - for abs in repo[node].walk(m): + for abs in ctx.walk(m): if abs not in names: names[abs] = m.rel(abs), m.exact(abs) # get the list of subrepos that must be reverted - targetsubs = [s for s in repo[node].substate if m(s)] + targetsubs = [s for s in ctx.substate if m(s)] m = scmutil.matchfiles(repo, names) changes = repo.status(match=m)[:4] modified, added, removed, deleted = map(set, changes)