mercurial/hg.py
changeset 17198 ecde35a1af9e
parent 17194 32a6a33b9a35
child 17248 6ffb35b2284c
--- a/mercurial/hg.py	Mon Jul 16 16:19:53 2012 -0500
+++ b/mercurial/hg.py	Sun Jul 15 12:43:10 2012 -0400
@@ -518,7 +518,7 @@
     ui.status(_('comparing with %s\n') % util.hidepassword(dest))
     revs, checkout = addbranchrevs(repo, repo, branches, opts.get('rev'))
     if revs:
-        revs = [repo.lookup(rev) for rev in revs]
+        revs = [repo.lookup(rev) for rev in scmutil.revrange(repo, revs)]
 
     other = peer(repo, opts, dest)
     outgoing = discovery.findcommonoutgoing(repo, other, revs,