hgext/mq.py
changeset 3707 67f44b825784
parent 3700 4c158de5f245
child 3708 1debe70db9d7
--- a/hgext/mq.py	Wed Nov 22 22:33:57 2006 +0100
+++ b/hgext/mq.py	Wed Nov 22 23:02:28 2006 +0100
@@ -33,7 +33,7 @@
 from mercurial.i18n import gettext as _
 from mercurial import commands
 demandload(globals(), "os sys re struct traceback errno bz2")
-demandload(globals(), "mercurial:cmdutil,hg,patch,revlog,ui,util")
+demandload(globals(), "mercurial:cmdutil,hg,patch,revlog,util")
 
 commands.norepo += " qclone qversion"
 
@@ -502,7 +502,7 @@
         if opts.get('rev'):
             if not self.applied:
                 raise util.Abort(_('no patches applied'))
-            revs = cmdutil.revrange(ui, repo, opts['rev'])
+            revs = cmdutil.revrange(repo, opts['rev'])
             if len(revs) > 1 and revs[0] > revs[1]:
                 revs.reverse()
             for rev in revs:
@@ -1315,7 +1315,7 @@
             if files:
                 raise util.Abort(_('option "-r" not valid when importing '
                                    'files'))
-            rev = cmdutil.revrange(self.ui, repo, rev)
+            rev = cmdutil.revrange(repo, rev)
             rev.sort(lambda x, y: cmp(y, x))
         if (len(files) > 1 or len(rev) > 1) and patchname:
             raise util.Abort(_('option "-n" not valid when importing multiple '