[Pkg-bazaar-commits] ./bzr/unstable r157: fix test case breakage
mbp at sourcefrog.net
mbp at sourcefrog.net
Fri Apr 10 07:51:16 UTC 2009
------------------------------------------------------------
revno: 157
committer: mbp at sourcefrog.net
timestamp: Fri 2005-04-01 14:38:28 +1000
message:
fix test case breakage
modified:
bzrlib/commands.py
bzrlib/inventory.py
bzrlib/tests.py
bzrlib/tree.py
-------------- next part --------------
=== modified file 'bzrlib/commands.py'
--- a/bzrlib/commands.py 2005-03-31 05:02:20 +0000
+++ b/bzrlib/commands.py 2005-04-01 04:38:28 +0000
@@ -240,6 +240,11 @@
print name
+def cmd_missing():
+ for name, ie in Branch('.').working_tree().missing():
+ print name
+
+
def cmd_init():
# TODO: Check we're not already in a working directory? At the
# moment you'll get an ugly error.
=== modified file 'bzrlib/inventory.py'
--- a/bzrlib/inventory.py 2005-03-31 05:02:20 +0000
+++ b/bzrlib/inventory.py 2005-04-01 04:38:28 +0000
@@ -327,8 +327,6 @@
"""
def descend(parent_ie):
parent_name = parent_ie.name
- if parent_name == '':
- parent_name = '.'
yield parent_name, parent_ie
# directory children in sorted order
=== modified file 'bzrlib/tests.py'
--- a/bzrlib/tests.py 2005-03-31 00:01:25 +0000
+++ b/bzrlib/tests.py 2005-04-01 04:38:28 +0000
@@ -192,4 +192,8 @@
>>> b.add('.bzrignore')
>>> list(b.unknowns())
['doc/configure']
+
+Detection of missing files and directories:
+
+
"""
=== modified file 'bzrlib/tree.py'
--- a/bzrlib/tree.py 2005-03-29 08:01:30 +0000
+++ b/bzrlib/tree.py 2005-04-01 04:38:28 +0000
@@ -20,13 +20,15 @@
from sets import Set
import os.path, os, fnmatch
+from osutils import pumpfile, compare_files, filesize, quotefn, sha_file, \
+ joinpath, splitpath, appendpath, isdir, isfile, file_kind, fingerprint_file
+import errno
+from stat import S_ISREG, S_ISDIR, ST_MODE, ST_SIZE
+
from inventory import Inventory
from trace import mutter, note
-from osutils import pumpfile, compare_files, filesize, quotefn, sha_file, \
- joinpath, splitpath, appendpath, isdir, isfile, file_kind, fingerprint_file
from errors import bailout
import branch
-from stat import S_ISREG, S_ISDIR, ST_MODE, ST_SIZE
import bzrlib
@@ -268,7 +270,7 @@
for subf in fl:
subp = appendpath(path, subf)
yield subp
-
+
def ignored_files(self):
"""Yield list of PATH, IGNORE_PATTERN"""
More information about the Pkg-bazaar-commits
mailing list