Submitter | Siddharth Agarwal |
---|---|
Date | Feb. 3, 2014, 11:12 p.m. |
Message ID | <a2661fa3b83547321cdd.1391469132@dev998.prn1.facebook.com> |
Download | mbox | patch |
Permalink | /patch/3451/ |
State | Accepted |
Commit | b433b43364e4059797637a5cf298f24e7209f95c |
Headers | show |
Comments
Patch
diff --git a/mercurial/hg.py b/mercurial/hg.py --- a/mercurial/hg.py +++ b/mercurial/hg.py @@ -92,8 +92,9 @@ def openpath(ui, path): '''open path with open if local, url.open if remote''' - if islocal(path): - return util.posixfile(util.urllocalpath(path), 'rb') + pathurl = util.url(path, parsequery=False, parsefragment=False) + if pathurl.islocal(): + return util.posixfile(pathurl.localpath(), 'rb') else: return url.open(ui, path)