[issue995] hg copy -A incorrectly handles symbolic links

Jason DiCioccio mercurial-bugs at selenic.com
Sun Feb 17 09:32:46 UTC 2008


New submission from Jason DiCioccio <jd at bluenugget.net>:

Given the following directory structure in the repository:

dir1/test/
dir1/test/main.c
dir1/testlink -> test
dir2

If you wanted to move test and testlink out of dir1 and into dir2, you might do
something like this:

mv dir1/test dir2
mv dir1/testlink dir2
hg copy -A dir1/test/main.c dir2/test/main.c
hg copy -A dir1/testlink dir2/testlink

What is happening though, is the last command will trigger the following error:

abort: path 'dir2/testlink/testlink' traverses symbolic link 'dir2/testlink'

This is despite you never referencing a 'dir2/testlink/testlink'.  Seems like
this is something that should work.  FYI, I tickled this bug when using
hgimportsvn/hgpullsvn.

----------
messages: 5315
nosy: geniusj
priority: bug
status: unread
title: hg copy -A incorrectly handles symbolic links

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue995>
____________________________________________________




More information about the Mercurial-devel mailing list