diff options
author | unknown <unknown@unknown> | 2008-02-13 20:34:57 +0000 |
---|---|---|
committer | unknown <unknown@unknown> | 2008-02-13 20:34:57 +0000 |
commit | b73f299e731fbddae095c0b5eff04717b6dce1af (patch) | |
tree | d8ca33707e5504dfd33714c39900160f3a2598f7 /FAQ | |
parent | ac54243f382e817c08c1f895ccfdc05dcacdb044 (diff) | |
download | rancid-b73f299e731fbddae095c0b5eff04717b6dce1af.tar.gz rancid-b73f299e731fbddae095c0b5eff04717b6dce1af.tar.xz rancid-b73f299e731fbddae095c0b5eff04717b6dce1af.zip |
Imported from rancid-2.3.2a8.tar.gz.HEADrancid-2.3.2a8master
Diffstat (limited to 'FAQ')
-rw-r--r-- | FAQ | 20 |
1 files changed, 14 insertions, 6 deletions
@@ -129,17 +129,25 @@ A. CVS does not provide a way (AFAIK) to rename files or to rename or delete like this (disclaimer: BE VERY CAREFUL mucking around with the repository): % su - rancid_user % cd <LOCALSTATEDIR> - % echo "new_device_name:device_type:up" >> GROUP/router.db - % cp -p CVS/GROUP/configs/old_device_name,v \ - CVS/GROUP/configs/new_device_name,v + % echo "new_device_name:device_type:up" >> <GROUP>/router.db + % cp -p CVS/<GROUP>/configs/old_device_name,v \ + CVS/<GROUP>/configs/new_device_name,v + % cd <GROUP>/configs + % cvs update + where GROUP is the name of the rancid group that the device is a member of. - Rancid will pick-up the new file with a CVS update the next time it runs. Once the renaming is complete, remove the old name from the router.db file and leave the CVS clean-up of the old filename to rancid. If one wanted to move a device to a different group and maintain the - history, the same procedure would work. Substituting the new group name - appropriately. + history, the same procedure would work, substituting the new group name + appropriately, of course. + + 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. Q. I am removing a group and would like to remove all traces of it from the |