[Pkg-bazaar-commits] ./bzr-gtk/unstable r564: Merge of check if file is versioned before opening gannotate in olive

Jasper Groenewegen colbrac at xs4all.nl
Fri Apr 10 07:50:42 UTC 2009


------------------------------------------------------------
revno: 564
committer: Jasper Groenewegen <colbrac at xs4all.nl>
branch nick: trunk
timestamp: Wed 2008-07-23 00:25:30 +0200
message:
  Merge of check if file is versioned before opening gannotate in olive
modified:
  NEWS
  olive/menu.py
    ------------------------------------------------------------
    revno: 560.4.1
    committer: Jasper Groenewegen <colbrac at xs4all.nl>
    branch nick: gannotate-unknown
    timestamp: Tue 2008-07-22 12:23:20 +0200
    message:
      Add test to contextmenu->annotate to raise error if selected file is unversioned as gannotate expects it.
    modified:
      olive/menu.py
-------------- next part --------------
=== modified file 'NEWS'
--- a/NEWS	2008-07-22 21:40:52 +0000
+++ b/NEWS	2008-07-22 22:25:30 +0000
@@ -56,6 +56,8 @@
 
   * Automatically change to history mode on selecting a revision from the list. (Jasper Groenewegen, #144963)
 
+  * Check if file is versioned before opening gannotate window from olive. (Jasper Groenewegen, #115358)
+
  CHANGES
 
   * Moved notify icon code to separate script. (Jelmer Vernooij)

=== modified file 'olive/menu.py'
--- a/olive/menu.py	2008-07-18 10:40:23 +0000
+++ b/olive/menu.py	2008-07-22 10:23:20 +0000
@@ -198,7 +198,8 @@
         
         branch = wt.branch
         file_id = wt.path2id(wt.relpath(os.path.join(directory, filename)))
-        
+        if file_id is None:
+            raise errors.NotVersionedError(filename)
         window = GAnnotateWindow(all=False, plain=False, parent=self.app)
         window.set_title(os.path.join(directory, filename) + " - Annotate")
         config = GAnnotateConfig(window)



More information about the Pkg-bazaar-commits mailing list