添加 hgsubversion 扩展并使用相应的 URL 克隆存储库的任何部分。
从未尝试使用 file:// 协议,但看不到与 svn|http 不同行为的原因
样本
z:\>dir /B
svn-repo
hg-repo
wc
z:\>svn ls -v file:///Z:/svn-repo
3 Badger окт 20 01:47 ./
3 Badger 42 окт 20 01:47 data.txt
z:\>hg help subversion
Working with Subversion Repositories
...
z:\>hg clone --verbose -- file:///Z:/svn-repo Z:\hg-repo
using single layout
[r1] Badger: Ininial data
A data.txt
substituting author "Badger" for default "Badger@7b881c4c-2bda-1f48-a8b3-d2b14f06ee49"
data.txt
committed to "default" as 7965fdc9055d
[r2] Badger: Change 1
M data.txt
data.txt
committed to "default" as c266778f29c0
[r3] Badger: Add-on
M data.txt
data.txt
committed to "default" as 2aa45237e3b3
pulled 3 revisions
updating to branch default
resolving manifests
getting data.txt
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
z:\>cd hg-repo
z:\hg-repo>hg log
changeset: 2:2aa45237e3b3
tag: tip
user: Badger@7b881c4c-2bda-1f48-a8b3-d2b14f06ee49
date: Fri Oct 19 19:47:54 2012 +0000
summary: Add-on
changeset: 1:c266778f29c0
user: Badger@7b881c4c-2bda-1f48-a8b3-d2b14f06ee49
date: Fri Oct 19 19:47:00 2012 +0000
summary: Change 1
changeset: 0:7965fdc9055d
user: Badger@7b881c4c-2bda-1f48-a8b3-d2b14f06ee49
date: Fri Oct 19 19:46:09 2012 +0000
summary: Ininial data