[PATCH] convert: accept subversion Windows syntax 'file:///c:/svnrepo'

Patrick Mézard patrick at mezard.eu
Wed Jun 27 01:31:02 CDT 2012


Le 27/06/12 03:09, Mads Kiilerich a écrit :
> # HG changeset patch
> # User Mads Kiilerich <mads at kiilerich.com>
> # Date 1340759355 -7200
> # Node ID e5808de25577344a2a4dc96386242438be940597
> # Parent  3dd6da761fff59be7dae61588919e80091d29a39
> convert: accept subversion Windows syntax 'file:///c:/svnrepo'
> 
> This 'file:///' syntax with '///' has to be used on Windows but it did
> apparently not work. urllib.url2pathname were given '/c:/svnrepo' and failed.
> 
> Instead we now use ':///' as separator when parsing protocol and path on
> Windows.

It works for me with the configuration below. Can you detail your hg/python/svn versions?


C:\dev\mercurial>hg version
Mercurial Distributed SCM (version 2.2.2+171-3dd6da761fff)
(see http://mercurial.selenic.com for more information)

Copyright (C) 2005-2012 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

C:\dev\mercurial>svn ls file:///c:/dev/mercurial/svnrepo
test/

C:\dev\mercurial>hg convert file:///c:/dev/mercurial/svnrepo
assuming destination svnrepo-hg
initializing destination svnrepo-hg repository
scanning source...
sorting...
converting...
1 tests
0 adda

C:\dev\mercurial>svn --version
svn, version 1.6.13 (r1002816)
   compiled Oct  3 2010, 23:19:41
[...]

C:\dev\mercurial>python --version
Python 2.6.1

--
Patrick Mézard


More information about the Mercurial-devel mailing list