[darcs-users] it would be useful for patch-tag to turn off hard linking for darcs storage. can anyone suggest how to do that?

Thomas Hartman thomashartman1 at googlemail.com
Sat Dec 19 17:06:13 UTC 2009


Never mind, I think I found a better way around this problem.

On Fri, Dec 18, 2009 at 9:14 PM, Trent W. Buck <trentbuck at gmail.com> wrote:
> Thomas Hartman <thomashartman1 at googlemail.com> writes:
>
>> it would be useful for patch-tag to turn off hard linking for darcs
>> storage (in pristine.hashed, patches, and so on). can anyone suggest
>> the most straightforward way to do that?
>
> Why would it be useful?
>
> A straightforward way would be to place each repository on its own
> filesystem, to use a filesystem that doesn't support hard links
> (e.g. vfat), or to have a cron job that periodically breaks hard links,
> e.g. (untested)
>
>    find _darcs -type f -exec sed -i {} +
>
> (perl -i and GNU sed -i should do a temporary file dance, which will
> indirectly create a new inode and thus break the hard link.)
>
> _______________________________________________
> darcs-users mailing list
> darcs-users at darcs.net
> http://lists.osuosl.org/mailman/listinfo/darcs-users
>



-- 
Need somewhere to put your code? http://patch-tag.com
Want to build a webapp? http://happstack.com


More information about the darcs-users mailing list