How to treat a symbolic link as a directory in Mercurial?

前端 未结 4 1952
夕颜
夕颜 2020-12-29 04:32

As of 0.9.4, when adding a symbolic link Mercurial keeps track of the link itself, and not the file or directories it points to. However, there are cases when it is desirabl

4条回答
  •  一个人的身影
    2020-12-29 04:42

    Under linux you can use

    mount --bind sourcepath targetpath
    

    instead of symbolic links and mercurial will treat target as usual directory (tested on openSUSE 11.2 with Mercurial 1.3.1, and on RHEL6).

    The alternative syntax, amenable for inclusion in /etc/fstab, is

    mount -o bind sourcepath targetpath
    

    The fstab entry is, then

    sourcepath targetpath none defaults,bind 0 0
    

提交回复
热议问题