1. TortoiseHg
  2. TortoiseHg
  3. thg

Commits

Elson Wei  committed a1dd756

revpanel: remove unused item 'patch'

  • Participants
  • Parent commits df98653
  • Branches default

Comments (0)

Files changed (1)

File tortoisehg/hgqt/revpanel.py

View file
         return _('Parent:')
     elif item == 'children':
         return _('Child:')
-    elif item == 'patch':
-        return _('Patch:')
     elif item == 'precursors':
         return _('Precursors:')
     elif item == 'successors':
             return revline_data(tctx)
         except (error.LookupError, error.RepoLookupError, error.RepoError):
             return ts
-    elif item == 'patch':
-        if hasattr(ctx, '_patchname'):
-            desc = ctx.description()
-            return (ctx._patchname, str(ctx), summary_line(desc))
-        return None
     elif item == 'ishead':
         if ctx.rev() is None:
             ctx = ctx.p1()
             if branch:
                 return '%s - %s %s' % (revnum, branch, summary)
             return '%s - %s' % (revnum, summary)
-    if item in ('cset', 'graft', 'transplant', 'patch', 'mqoriginalparent',
+    if item in ('cset', 'graft', 'transplant', 'mqoriginalparent',
                 'p4', 'svn', 'converted'):
         link = item != 'cset'
         if isinstance(value, basestring):