/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: John Arbash Meinel
  • Date: 2007-04-19 21:04:40 UTC
  • mto: This revision was merged to the branch mainline in revision 195.
  • Revision ID: john@arbash-meinel.com-20070419210440-v5dnea8gbau0a8fm
Use tree.path2id to avoid getting 'Object Not Locked' errors.

Show diffs side-by-side

added added

removed removed

Lines of Context:
181
181
                try:
182
182
                    window.set_file(tree_filename)
183
183
                except NoSuchFile:
184
 
                    if (tree1.inventory.path2id(tree_filename) is None and 
185
 
                        tree2.inventory.path2id(tree_filename) is None):
 
184
                    if (tree1.path2id(tree_filename) is None and 
 
185
                        tree2.path2id(tree_filename) is None):
186
186
                        raise NotVersionedError(filename)
187
187
                    raise BzrCommandError('No changes found for file "%s"' % 
188
188
                                          filename)