hgext/mq.py
branchstable
changeset 17887 0e2846b2482c
parent 17773 434e5bd615fc
child 17888 39b7052b217b
--- a/hgext/mq.py	Tue Oct 30 18:48:44 2012 -0500
+++ b/hgext/mq.py	Wed Oct 17 21:30:08 2012 -0700
@@ -63,7 +63,7 @@
 from mercurial.node import bin, hex, short, nullid, nullrev
 from mercurial.lock import release
 from mercurial import commands, cmdutil, hg, scmutil, util, revset
-from mercurial import repair, extensions, url, error, phases, bookmarks
+from mercurial import repair, extensions, error, phases, bookmarks
 from mercurial import patch as patchmod
 import os, re, errno, shutil
 
@@ -2004,7 +2004,7 @@
                     if filename == '-':
                         text = self.ui.fin.read()
                     else:
-                        fp = url.open(self.ui, filename)
+                        fp = hg.openpath(self.ui, filename)
                         text = fp.read()
                         fp.close()
                 except (OSError, IOError):