Commits

Jared Bunting  committed d710fea

Fixing hg api incompatibility with revrange moving to scmutil.

  • Participants
  • Parent commits a1c31d3

Comments (0)

Files changed (1)

File commitsigs.py

 
 import os, tempfile, subprocess, binascii, shlex, re
 
-from mercurial import (util, cmdutil, extensions, revlog, error,
+from mercurial import (util, cmdutil, scmutil, extensions, revlog, error,
                        encoding, changelog)
 from mercurial.node import short, hex, nullid
 from mercurial.i18n import _
-
+try:
+    revrange_func = cmdutil.revrange
+except:
+	revrange_func = scmutil.revrange
 
 CONFIG = {
     'scheme': 'gnupg',
     elif not revrange:
         revs = xrange(len(repo))
     else:
-        revs = cmdutil.revrange(repo, revrange)
+        revs = revrange_func(repo, revrange)
 
     retcode = 0
     for rev in revs: