Commits

Steve Borho  committed 229b2a7

hggtk/status: more robust commands.table lookup

  • Participants
  • Parent commits e826c15

Comments (0)

Files changed (1)

File hggtk/status.py

             return
 
         # Create new opts,  so nothing unintented gets through.
-        revertopts = self.merge_opts(commands.table['revert'][1], ('include', 'exclude', 'rev'))
+        # commands.table revert key changed after 0.9.5, in change d4ec6d61b3ee
+        key = '^revert' in commands.table and '^revert' or 'revert'
+        revertopts = self.merge_opts(commands.table[key][1], ('include', 'exclude', 'rev'))
         def dohgrevert():
             commands.revert(self.ui, self.repo, *files, **revertopts)