converting svn repos with symbolic links

Faheem Mitha faheem at email.unc.edu
Mon Nov 27 13:12:01 CST 2006



On Mon, 27 Nov 2006, Faheem Mitha wrote:

[...]
> Yesterday, I spent some time trying to convert a svn repos to a mercurial 
> repos using tailor. This repository only has 18 commits, but some of the 
> files are relatively large (like 50M or something), so the diffs were 
> relatively big.
>
> The other relevant thing is that I was using symbolic links, since I needed 
> to access some of the big files from different places in the repository, and 
> added symbolic links in order to do so.
>
> For some reason tailor was hanging excessively during various points in this 
> conversion, and took many hours (overnight) to complete, possibly because of 
> the symbolic links issue. I didn't really expect it to, actually.
>
> Anyway, tailor complained during the conversion that symbolic links were not 
> supported, and the resulting repos show the symbolic links thus:
>
> faheem ~/exphome/scratch/corrmodel-sim-hg/allmodels>hg st
> ! allmodels/pair.result
> ! allmodels/tp.result
> ! allmodels/tptt.result
> ! allmodels/trip.result
> ! allmodels/uncorr.result
>
> Doing an update does not accomplish anything, since we get
>
> faheem ~/exphome/scratch/corrmodel-sim-hg/allmodels>hg up
> 5 files updated, 0 files merged, 0 files removed, 0 files unresolved
>
> faheem ~/exphome/scratch/corrmodel-sim-hg/allmodels>hg st
> ! allmodels/pair.result
> ! allmodels/tp.result
> ! allmodels/tptt.result
> ! allmodels/trip.result
> ! allmodels/uncorr.result
>
> My question is, if I do an "hg rm" on the symbolic links, would that take 
> care of any problems, and the repository continue to work correctly? Or not?

"hg rm" does not work (complains about unsupported file types), nor does 
just rm, but "hg forget" does. Go figure.

                                                                   Faheem.

faheem ~/exphome/scratch/corrmodel-sim-hg/allmodels>hg rm pair.result 
tp.result tptt.result trip.result uncorr.result
pair.result: unsupported file type (type is symbolic link)
[...]

faheem ~/exphome/scratch/corrmodel-sim-hg/allmodels>rm pair.result 
tp.result tptt.result trip.result uncorr.result
rm: cannot remove `pair.result': No such file or directory
[...]

faheem ~/exphome/scratch/corrmodel-sim-hg/allmodels>hg forget pair.result 
tp.result tptt.result trip.result uncorr.result
(the forget command is deprecated; use revert instead)
faheem ~/exphome/scratch/corrmodel-sim-hg/allmodels>hg st
R allmodels/pair.result
[...]


More information about the Mercurial mailing list