Mercurial > hg
diff mercurial/localrepo.py @ 6572:4927cf61bdc1
walk: eliminate some default variables
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 12 May 2008 11:37:07 -0500 |
parents | 2af1b9de62b3 |
children | 69f3e9ac7c56 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Thu May 08 18:36:45 2008 +0200 +++ b/mercurial/localrepo.py Mon May 12 11:37:07 2008 -0500 @@ -931,7 +931,7 @@ self.dirstate.invalidate() del tr, lock, wlock - def walk(self, node=None, files=[], match=util.always, badmatch=None): + def walk(self, node, files, match, badmatch): ''' walk recursively through the directory tree or a given changeset, finding all files matched by the match @@ -970,7 +970,7 @@ self.ui.warn(_('%s: No such file in rev %s\n') % (self.pathto(fn), short(node))) else: - for src, fn in self.dirstate.walk(files, match, badmatch=badmatch): + for src, fn in self.dirstate.walk(files, match, badmatch): yield src, fn def status(self, node1=None, node2=None, files=[], match=util.always,