[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: PATCH: symlink support for svn_load_dirs.pl

From: Bastiaan Bakker <bastiaan.bakker_at_lifeline.nl>
Date: 2005-02-16 11:21:00 CET

Hi,

After looking at svn_load_dirs.pl some more, I realized that the way it
detects updated files doesn't work for symlinks: rather than comparing
the contents of the old and new revision of the file it should compare
where the old and new symlinks point to.
Attached is version 1.2 of the symlink patch which solves this by
adapting digest_hash_file: for symlinks it returns the link as digest
instead of an MD5 over the contents of the file.
Limitations of the current patch:
1) can't handle dangling symlink. Mainly caused by the fact that the
diff util can't handle them
2) can't handle regularing files becoming symlinks and vice versa.

Regards,

Bastiaan Bakker
E.Novation LifeLine Networks bv

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Thu Feb 17 05:44:52 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.