Commits

Martin Geisler committed 9923f6b

repomodel: fix undefined variable in getconv

Comments (0)

Files changed (1)

tortoisehg/hgqt/repomodel.py

 
     def getconv(self, ctx, gnode):
         if ctx.rev() is not None:
-            cvt = ctx.extra().get('convert_revision', '')
+            extra = ctx.extra()
+            cvt = extra.get('convert_revision', '')
             if cvt:
                 if cvt.startswith('svn:'):
                     return cvt.split('@')[-1]