[Pkg-bazaar-commits] ./bzr/unstable r143: new common Tree.extras() to support both unknowns
mbp at sourcefrog.net
mbp at sourcefrog.net
Fri Apr 10 07:51:00 UTC 2009
------------------------------------------------------------
revno: 143
committer: mbp at sourcefrog.net
timestamp: Tue 2005-03-29 17:30:54 +1000
message:
new common Tree.extras() to support both unknowns
and ignored
modified:
bzrlib/tree.py
-------------- next part --------------
=== modified file 'bzrlib/tree.py'
--- a/bzrlib/tree.py 2005-03-29 07:29:29 +0000
+++ b/bzrlib/tree.py 2005-03-29 07:30:54 +0000
@@ -235,6 +235,12 @@
def unknowns(self):
+ for subp in self.extras():
+ if not self.is_ignored(subp):
+ yield subp
+
+
+ def extras(self):
"""Yield all unknown files in this WorkingTree.
If there are any unknown directories then only the directory is
@@ -261,8 +267,6 @@
fl.sort()
for subf in fl:
subp = appendpath(path, subf)
- if self.is_ignored(subp):
- continue
yield subp
More information about the Pkg-bazaar-commits
mailing list