硬链接克隆了运行龟1.0 x64的版本一个Win7的X64框。关于乌龟揭示了它的1.0 “以水银-1.5,Python的2.6.4,PyGTK的-2.16.0,GTK-2.18.7”。我还安装了ActivePython 2.6和Mercurial 1.5 x64(通过Mercurial安装程序从安装,我的windows系统上都没有硬链接克隆,我盒子上的驱动器也是NTFS,它支持硬链接)我如何获得在Windows
在契税,当我运行Python解释器,并通过win32file API执行硬链接创建,它成功创建一个链接:
[email protected] C:\temp
> python
ActivePython 2.6.2.2 (ActiveState Software Inc.) based on
Python 2.6.2 (r262:71600, Apr 21 2009, 15:05:37) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from win32file import *
>>> CreateHardLink('C:\\temp\\Mike2.txt','C:\\temp\\Mike.txt')
>>> ^Z
[email protected] C:\temp
> fsutil hardlink list Mike.txt
\temp\Mike.txt
\temp\Mike2.txt
但是,如果我用水银克隆,我没有得到相同的结果:
[email protected] C:\Users\mcaron
> which hg
C:\Program Files (x86)\Mercurial\\hg.EXE
[email protected] C:\temp
> hg status demo
[email protected] C:\temp
> hg log demo
changeset: 0:6db7092740d5
tag: tip
user: Michael Caron <[email protected]>
date: Wed Mar 24 16:08:38 2010 -0500
summary: first
[email protected] C:\temp
> hg clone demo demo2
updating to branch default
5 files updated, 0 files merged, 0 files removed, 0 files unresolved
[email protected] C:\temp
> fsutil hardlink list .\demo\mike.prtprp
\temp\demo\mike.prtprp
[email protected] C:\temp
> fsutil hardlink list .\demo\mike1.prtprp
\temp\demo\mike1.prtprp
[email protected] C:\temp
> fsutil hardlink list .\demo\mike1_2.prtprp
\temp\demo\mike1_2.prtprp
[email protected] C:\temp
> fsutil hardlink list .\demo\mike2.prtprp
\temp\demo\mike2.prtprp
[email protected] C:\temp
> hg --version
Mercurial Distributed SCM (version 1.5)
Copyright (C) 2005-2010 Matt Mackall <[email protected]> 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.
[email protected] C:\temp
> python -V
Python 2.6.2
是否有人正在使用或者是不支持克隆的Windows系统,与硬链接?我注意到TortoiseHg安装程序带有Python 2.6安装。也注意到它有自己的Hg可执行文件(我也试过并得到相同的结果)。 TortoiseHg和Mercurial安装是否会导致问题?
在使用硬链接克隆之前,回购必须是特定大小吗? – 2010-03-26 14:25:05
nope,没有检查大小。 – tonfa 2010-03-26 15:19:57
回答这里:http://kiln.stackexchange.com/questions/986/how-to-get-hardlink-cloning-on-windows – tonfa 2010-03-26 15:25:08