mercurial/commands.py
changeset 3707 67f44b825784
parent 3706 0d810798acb1
child 3736 ad3d5b4367cb
--- a/mercurial/commands.py	Wed Nov 22 22:33:57 2006 +0100
+++ b/mercurial/commands.py	Wed Nov 22 23:02:28 2006 +0100
@@ -835,7 +835,7 @@
     it detects as binary. With -a, diff will generate a diff anyway,
     probably with undesirable results.
     """
-    node1, node2 = cmdutil.revpair(ui, repo, opts['rev'])
+    node1, node2 = cmdutil.revpair(repo, opts['rev'])
 
     fns, matchfn, anypats = cmdutil.matchpats(repo, pats, opts)
 
@@ -871,7 +871,7 @@
     """
     if not changesets:
         raise util.Abort(_("export requires at least one changeset"))
-    revs = cmdutil.revrange(ui, repo, changesets)
+    revs = cmdutil.revrange(repo, changesets)
     if len(revs) > 1:
         ui.note(_('exporting patches:\n'))
     else:
@@ -1436,7 +1436,7 @@
     count = 0
 
     if opts['copies'] and opts['rev']:
-        endrev = max(cmdutil.revrange(ui, repo, opts['rev'])) + 1
+        endrev = max(cmdutil.revrange(repo, opts['rev'])) + 1
     else:
         endrev = repo.changelog.count()
     rcache = {}
@@ -2120,7 +2120,7 @@
     """
 
     all = opts['all']
-    node1, node2 = cmdutil.revpair(ui, repo, opts.get('rev'))
+    node1, node2 = cmdutil.revpair(repo, opts.get('rev'))
 
     files, matchfn, anypats = cmdutil.matchpats(repo, pats, opts)
     cwd = (pats and repo.getcwd()) or ''