[issue1153] File URIs aren't handled correctly in windows

Bastian Doetsch mercurial-bugs at selenic.com
Mon Jun 2 13:51:35 CDT 2008


New submission from Bastian Doetsch <bastian.doetsch at gmx.de>:

When adding repositories in MercurialEclipse, we translate entered strings resp.
chosen file system locations to URIs. 

On linux this always worked for me, e.g. the URI file:/home/bastian/blah was
parsed correctly.

On windows this doesn't work for URIs like
file:/C:/Dokumente%20und%20Einstellungen/blah as Mercurial quits e.g. clone with
the message

repository /C:/Dokumente%20und%20Einstellungen/blah not found.

Adding a workaround to our code (currently is uses the java.io.File.toURI()
method) isn't hard, but it would be cleaner if file URIs were parsed the same on
both operation systems.

----------
messages: 6141
nosy: bastiand
priority: bug
status: unread
title: File URIs aren't handled correctly in windows

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1153>
____________________________________________________



More information about the Mercurial-devel mailing list