Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cmdutil.py @ 6586:d3463007d368
walk: return a single value
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 12 May 2008 11:37:08 -0500 |
parents | d3d1d39da2fa |
children | 371415a2b959 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Mon May 12 11:37:08 2008 -0500 +++ b/mercurial/cmdutil.py Mon May 12 11:37:08 2008 -0500 @@ -271,11 +271,11 @@ add, remove = [], [] mapping = {} m = match(repo, pats, opts) - for src, abs in repo.walk(m): + for abs in repo.walk(m): target = repo.wjoin(abs) rel = m.rel(abs) exact = m.exact(abs) - if src == 'f' and abs not in repo.dirstate: + if abs not in repo.dirstate: add.append(abs) mapping[abs] = rel, m.exact(abs) if repo.ui.verbose or not exact: @@ -313,7 +313,7 @@ def walkpat(pat): srcs = [] m = match(repo, [pat], opts, globbed=True) - for tag, abs in repo.walk(m): + for abs in repo.walk(m): state = repo.dirstate[abs] rel = m.rel(abs) exact = m.exact(abs)