Multihead Questions (branches)
Andrew Thompson
andrewkt at aktzero.com
Wed Jun 8 20:34:52 UTC 2005
Matt Mackall wrote:
>>>I'll probably replace branch <x> with init <x> later today.
I haven't looked at init, but I didn't realize how braindeadedly simple
branch currently is.
>>Will init <x> be able to accept a local file path as <x> in order to do
>>hardlinks?
>
> Provided I can figure out how to detect "same filesystem".
After testing that they didn't enter a url(http://blah/hg), try:
import os, stat
s = os.stat('/')
print s[stat.ST_DEV]
s = os.stat('/usr/lib')
print s[stat.ST_DEV]
Provided your / and /usr/lib are on different filesystems, you should
get different answers for that stat field.
(No guarantees, I just read it in the python book and tested it on my
system. Couldn't figure out how to test it on Windows though.)
--
Andrew Thompson
http://aktzero.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: andrewkt.vcf
Type: text/x-vcard
Size: 153 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20050608/4eddb973/attachment-0001.vcf>
More information about the Mercurial
mailing list