Question about storing symlinks in a branch
Alexander Belchenko
bialix at ukr.net
Wed Aug 19 08:47:16 BST 2009
Russel Winder пишет:
> In a project managed with Bazaar, there is a proposal to use symlinks to
> directories to work around a bug in a tool. Clearly the proposal is
> being made in the context of a Posix-compliant platform. I assume
> Bazaar would store the symlink as a symlink, and that any branch on a
> Posix-compliant system would see a symlink in the working tree.
>
> What happens if someone branches this on a Windows platform?
Operation fails during phase "create working tree". You can create
treeless branch though and "use" it (e.g. run [q]log on it).
> I am told
> there are things called Junctions, do these get used? Is the transform
> to symlink made if a Junction is used on a Windows platform?
Junction points (aka symlinks to directories) supported on NTFS file
system (Windows 2000 and higher) but Python interpreter does not provide
any API for this. So no support exists in core bzr. Long time ago I
wrote plugin win32symlinks that emulates symlinks via plain files in
cygwin-compliant format, and it kinda worked. But it's not ideal, and
this idea never was supported by core devs.
You can use cygwin though. It will be slow but you'll get good emulation
of symlinks.
More information about the bazaar
mailing list