[Pkg-bazaar-commits] ./bzr/unstable r66: add command uses the path of the first named file

mbp at sourcefrog.net mbp at sourcefrog.net
Fri Apr 10 07:27:21 UTC 2009


------------------------------------------------------------
revno: 66
committer: mbp at sourcefrog.net
timestamp: Tue 2005-03-22 18:25:50 +1100
message:
  add command uses the path of the first named file
modified:
  bzrlib/commands.py
-------------- next part --------------
=== modified file 'bzrlib/commands.py'
--- a/bzrlib/commands.py	2005-03-22 07:12:18 +0000
+++ b/bzrlib/commands.py	2005-03-22 07:25:50 +0000
@@ -170,7 +170,9 @@
     
     Fails if the files are already added.
     """
-    Branch('.').add(file_list, verbose=verbose)
+    assert file_list
+    b = Branch(file_list[0], find_root=True)
+    b.add(file_list, verbose=verbose)
 
 
 def cmd_inventory(revision=None):



More information about the Pkg-bazaar-commits mailing list