[Pkg-bazaar-commits] ./bzr/unstable r123: check: directories must not have any text

mbp at sourcefrog.net mbp at sourcefrog.net
Fri Apr 10 07:51:11 UTC 2009


------------------------------------------------------------
revno: 123
committer: mbp at sourcefrog.net
timestamp: Tue 2005-03-29 10:10:32 +1000
message:
  check: directories must not have any text
modified:
  bzrlib/check.py
-------------- next part --------------
=== modified file 'bzrlib/check.py'
--- a/bzrlib/check.py	2005-03-29 00:07:23 +0000
+++ b/bzrlib/check.py	2005-03-29 00:10:32 +0000
@@ -83,6 +83,7 @@
                     % (file_id, revid))
         seen_ids.add(file_id)
         
+
     for file_id in inv:
         ie = inv[file_id]
         
@@ -94,7 +95,10 @@
         if ie.kind == 'file':
             if not ie.text_id in branch.text_store:
                 bailout('text {%s} not in text_store' % ie.text_id)
-
+        elif ie.kind == 'directory':
+            if ie.text_sha1 != None or ie.text_size != None or ie.text_id != None:
+                bailout('directory {%s} has text in revision {%s}'
+                        % (file_id, revid))
                 
             
     for path, ie in inv.iter_entries():



More information about the Pkg-bazaar-commits mailing list