diff hgext/mq.py @ 17887:0e2846b2482c stable

url: use open and not url.open for local files (issue3624)
author Siddharth Agarwal <sid0@fb.com>
date Wed, 17 Oct 2012 21:30:08 -0700
parents 434e5bd615fc
children 39b7052b217b
line wrap: on
line diff
--- 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):