[Bug 3715] New: _peerlookup function in hg.py wrongly treats URIs with unknown schemes as local file paths

bugzilla-daemon at bz.selenic.com bugzilla-daemon at bz.selenic.com
Thu Nov 29 10:48:59 CST 2012


http://bz.selenic.com/show_bug.cgi?id=3715

          Priority: normal
            Bug ID: 3715
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: _peerlookup function in hg.py wrongly treats URIs with
                    unknown schemes as local file paths
          Severity: bug
    Classification: Unclassified
                OS: All
          Reporter: tschneidereit at gmail.com
          Hardware: All
            Status: UNCONFIRMED
           Version: 2.4
         Component: Mercurial
           Product: Mercurial

This issue is exposed by the change in bug 3624, which broke the qimportbz
extension.

The problem is that _peerlookup both sets the scheme for scheme-less paths to
"file" *and* uses the "file" scheme handler for unknown schemes.

The proposed fix is to remove the latter and rely on the fallbacks present in
_peerlookup and islocal to deal with unknown schemes.

I'll send a proposed fix to the list shortly.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list