diff git_handler.py @ 245:c6d268886405

fix crash in outgoing if there are new (git) branches
author Abderrahim Kitouni <a.kitouni@gmail.com>
date Mon, 10 Aug 2009 16:05:57 +0100 (2009-08-10)
parents 53b731d2a3e2
children 3c01e07b0252
line wrap: on
line diff
--- a/git_handler.py
+++ b/git_handler.py
@@ -143,7 +143,7 @@
                             if sha != old_refs.get(ref)]
             new = [bin(self.map_hg_get(new_refs[ref])) for ref in changed_refs]
             old = dict( (bin(self.map_hg_get(old_refs[r])), 1)
-                       for r in changed_refs)
+                       for r in changed_refs if r in old_refs)
 
             return old, new
         except HangupException: