Rev 189: Use tree.path2id to avoid getting 'Object Not Locked' errors. in http://bazaar.launchpad.net/%7Ejameinel/bzr-gtk/small-fixes

John Arbash Meinel john at arbash-meinel.com
Thu Apr 19 22:07:59 BST 2007


At http://bazaar.launchpad.net/%7Ejameinel/bzr-gtk/small-fixes

------------------------------------------------------------
revno: 189
revision-id: john at arbash-meinel.com-20070419210440-v5dnea8gbau0a8fm
parent: jelmer at samba.org-20070403200105-nn3xmr553g51r79e
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: gtk
timestamp: Thu 2007-04-19 16:04:40 -0500
message:
  Use tree.path2id to avoid getting 'Object Not Locked' errors.
modified:
  __init__.py                    __init__.py-20060519165329-a1fd52c8a829fcd5
-------------- next part --------------
=== modified file '__init__.py'
--- a/__init__.py	2007-04-03 20:01:05 +0000
+++ b/__init__.py	2007-04-19 21:04:40 +0000
@@ -181,8 +181,8 @@
                 try:
                     window.set_file(tree_filename)
                 except NoSuchFile:
-                    if (tree1.inventory.path2id(tree_filename) is None and 
-                        tree2.inventory.path2id(tree_filename) is None):
+                    if (tree1.path2id(tree_filename) is None and 
+                        tree2.path2id(tree_filename) is None):
                         raise NotVersionedError(filename)
                     raise BzrCommandError('No changes found for file "%s"' % 
                                           filename)



More information about the bazaar-commits mailing list