Source

aurum / python / aurum / augit.py

Diff from to

File python/aurum/augit.py

         v.sort()
     return r
 
+cs_vim_defaults = {
+        'phase'     : 'unknown',
+        'branch'    : 'default',
+        'bookmarks' : [],
+}
+
 def set_rev_dict(cs, cs_vim):
     cs_vim['hex']         = str(cs.hex)
     cs_vim['time']        = cs.commit_time
     cs_vim['description'] = cs.message.encode('utf-8')
     cs_vim['user']        = (cs.author.name+u' <'+cs.author.email+u'>').encode('utf-8')
     cs_vim['parents']     = [str(parent.hex) for parent in cs.parents]
-    cs_vim['branch']      = 'default'
+    cs_vim.update(cs_vim_defaults)
     # TODO 'rev', 'tags'
     return cs_vim