hgext/patchbomb.py
changeset 14319 b33f3e35efb0
parent 14309 37e80214badf
child 14397 0368ad7963be
--- a/hgext/patchbomb.py	Fri May 13 12:57:27 2011 -0500
+++ b/hgext/patchbomb.py	Fri May 13 14:06:28 2011 -0500
@@ -49,6 +49,7 @@
 import email.MIMEMultipart, email.MIMEBase
 import email.Utils, email.Encoders, email.Generator
 from mercurial import cmdutil, commands, hg, mail, patch, util, discovery
+from mercurial import scmutil
 from mercurial.i18n import _
 from mercurial.node import bin
 
@@ -286,7 +287,7 @@
         return [str(repo.changelog.rev(r)) for r in o]
 
     def getpatches(revs):
-        for r in cmdutil.revrange(repo, revs):
+        for r in scmutil.revrange(repo, revs):
             output = cStringIO.StringIO()
             cmdutil.export(repo, [r], fp=output,
                          opts=patch.diffopts(ui, opts))