[rancid] Renaming devices? (svn backend)
Howard Jones
howie at thingy.com
Thu Apr 18 15:54:58 UTC 2013
On 17/04/2013 15:45, Per-Olof Olsson wrote:
>
> From rancid FAQ:
> % cp -p CVS/<GROUP>/configs/old_device_name,v \
> CVS/<GROUP>/configs/new_device_name,v
[...]
> SVN provides a rename function; but we suggest that you use it's
> copy function instead, and leave the clean-up of the old name
> to rancid. So, you would use the copy function (proper
> substitutions, of course) in place of the cp in the CVS example,
> then commit the new file.
While it's true that this is in the FAQ, it doesn't really make sense. I
guess it depends on how you interpret "proper substitutions", but the
CVS directory in a SVN-backed installation is the opaque svn repository.
So:
cd var/<GROUP>/configs
svn copy oldname newname
svn commit newname -m "Renamed oldname to newname"
looks to be the proper substitution.
Thanks,
Howie
More information about the Rancid-discuss
mailing list