Show More
@@ -365,6 +365,8 b' class dirstate(object):' | |||||
365 | is one of: |
|
365 | is one of: | |
366 | 'f' the file was found in the directory tree |
|
366 | 'f' the file was found in the directory tree | |
367 | 'm' the file was only in the dirstate and not in the tree |
|
367 | 'm' the file was only in the dirstate and not in the tree | |
|
368 | 'b' file was not found and matched badmatch | |||
|
369 | ||||
368 | and st is the stat result if the file was found in the directory. |
|
370 | and st is the stat result if the file was found in the directory. | |
369 | ''' |
|
371 | ''' | |
370 | self.lazyread() |
|
372 | self.lazyread() |
@@ -714,6 +714,18 b' class localrepository(repo.repository):' | |||||
714 | return n |
|
714 | return n | |
715 |
|
715 | |||
716 | def walk(self, node=None, files=[], match=util.always, badmatch=None): |
|
716 | def walk(self, node=None, files=[], match=util.always, badmatch=None): | |
|
717 | ''' | |||
|
718 | walk recursively through the directory tree or a given | |||
|
719 | changeset, finding all files matched by the match | |||
|
720 | function | |||
|
721 | ||||
|
722 | results are yielded in a tuple (src, filename), where src | |||
|
723 | is one of: | |||
|
724 | 'f' the file was found in the directory tree | |||
|
725 | 'm' the file was only in the dirstate and not in the tree | |||
|
726 | 'b' file was not found and matched badmatch | |||
|
727 | ''' | |||
|
728 | ||||
717 | if node: |
|
729 | if node: | |
718 | fdict = dict.fromkeys(files) |
|
730 | fdict = dict.fromkeys(files) | |
719 | for fn in self.manifest.read(self.changelog.read(node)[0]): |
|
731 | for fn in self.manifest.read(self.changelog.read(node)[0]): |
General Comments 0
You need to be logged in to leave comments.
Login now