[Pkg-bazaar-commits] ./bzr/unstable r91: special handling of root directory for recursive add

mbp at sourcefrog.net mbp at sourcefrog.net
Fri Apr 10 07:44:18 UTC 2009


------------------------------------------------------------
revno: 91
committer: mbp at sourcefrog.net
timestamp: Fri 2005-03-25 14:31:10 +1100
message:
  special handling of root directory for recursive add
modified:
  bzrlib/add.py
-------------- next part --------------
=== modified file 'bzrlib/add.py'
--- a/bzrlib/add.py	2005-03-25 03:18:21 +0000
+++ b/bzrlib/add.py	2005-03-25 03:31:10 +0000
@@ -52,7 +52,9 @@
             
         versioned = (inv.path2id(rf) != None)
 
-        if versioned:
+        if rf == '':
+            mutter("branch root doesn't need to be added")
+        elif versioned:
             mutter("%r is already versioned" % f)
         else:
             file_id = bzrlib.branch.gen_file_id(rf)



More information about the Pkg-bazaar-commits mailing list