Rev 512: Fix use of smart_add. in file:///data/jelmer/bzr-gtk/trunk/
Jelmer Vernooij
jelmer at samba.org
Sun Jun 29 19:31:30 BST 2008
At file:///data/jelmer/bzr-gtk/trunk/
------------------------------------------------------------
revno: 512
revision-id: jelmer at samba.org-20080629183129-syqvz3xm5gqagzsx
parent: jelmer at samba.org-20080628154539-l5lkvs5qwuf2zx1m
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: trunk
timestamp: Sun 2008-06-29 20:31:29 +0200
message:
Fix use of smart_add.
modified:
NEWS news-20070325173539-3va57o99cz3o57xe-1
olive/menu.py menu.py-20060803101046-9idg5lu81o53za8y-1
=== modified file 'NEWS'
--- a/NEWS 2008-06-06 18:04:45 +0000
+++ b/NEWS 2008-06-29 18:31:29 +0000
@@ -10,6 +10,8 @@
* Fixed adding tags. (Javier Derderian, #228709)
+ * Avoid use of removed smart_add. (Jelmer Vernooij, #244025)
+
INTERNALS
* All i18n calls should now go through _i18n which must be imported from
=== modified file 'olive/menu.py'
--- a/olive/menu.py 2008-05-05 18:18:08 +0000
+++ b/olive/menu.py 2008-06-29 18:31:29 +0000
@@ -179,7 +179,8 @@
_i18n('Please select a file from the list,\nor choose the other option.'))
return
- bzrlib.add.smart_add([os.path.join(directory, filename)])
+ wt, path = WorkingTree.open_containing(os.path.join(directory, filename))
+ wt.add([path])
@show_bzr_error
def annotate(self, action):
More information about the bazaar-commits
mailing list