Discussion:
[rancid] RANCID with SVN - Deleting Groups
Jason Yates
2013-07-30 07:11:17 UTC
Permalink
Hi All,



Can anybody tell me how to delete a group from RANCID when using SVN?



I've removed the group name from rancid.conf but I can't seem to delete it
from SVN. If I do rm -rf <NAME> the folder still remains in SVN. If I try an
svn delete <NAME> it returns svn: '.' is not a working copy



I can't seem to find any documentation on how to do this with SVN, only with
CVS.



Any help is greatly appreciated.



Thanks
Vincent Hoffman-Kazlauskas
2013-07-30 09:01:54 UTC
Permalink
Post by Jason Yates
Hi All,
Can anybody tell me how to delete a group from RANCID when using SVN?
I've removed the group name from rancid.conf but I can't seem to
delete it from SVN. If I do rm --rf <NAME> the folder still remains in
SVN. If I try an svn delete <NAME> it returns svn: '.' is not a
working copy
I can't seem to find any documentation on how to do this with SVN,
only with CVS.
I'm not totally au fait with rancid but for me (on centos6 rancid from
epel)
[***@rancid]# cd /var/rancid/test
[***@rancid]# svn info | grep 'Repository Root'
Repository Root: file:///var/rancid/CVS
[***@rancid]# svn ls file:///var/rancid/CVS/test
configs/
router.db
[***@rancid]# svn rm -m"remove test group" file:///var/rancid/CVS/test

Committed revision 79.
[***@rancid]#

then just delete the directory.
Hope that's useful.

Vince
Post by Jason Yates
Any help is greatly appreciated.
Thanks
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Jason Yates
2013-07-30 09:39:27 UTC
Permalink
Vince,



That worked perfectly.



Many thanks for the fast reply!



Regards



From: Vincent Hoffman-Kazlauskas [mailto:***@names.co.uk]
Sent: 30 July 2013 10:02
To: Jason Yates
Cc: rancid-***@shrubbery.net
Subject: Re: [rancid] RANCID with SVN - Deleting Groups



On 30/07/2013 08:11, Jason Yates wrote:

Hi All,



Can anybody tell me how to delete a group from RANCID when using SVN?



I've removed the group name from rancid.conf but I can't seem to delete it
from SVN. If I do rm -rf <NAME> the folder still remains in SVN. If I try an
svn delete <NAME> it returns svn: '.' is not a working copy



I can't seem to find any documentation on how to do this with SVN, only with
CVS.

I'm not totally au fait with rancid but for me (on centos6 rancid from epel)

[***@rancid]# cd /var/rancid/test
[***@rancid]# svn info | grep 'Repository Root'
Repository Root: file:///var/rancid/CVS <file:///\\var\rancid\CVS>
[***@rancid]# svn ls file:///var/rancid/CVS/test
<file:///\\var\rancid\CVS\test>
configs/
router.db
[***@rancid]# svn rm -m"remove test group" file:///var/rancid/CVS/test
<file:///\\var\rancid\CVS\test>

Committed revision 79.
[***@rancid]#

then just delete the directory.
Hope that's useful.

Vince






Any help is greatly appreciated.



Thanks
Trix Farrar
2013-07-30 11:42:03 UTC
Permalink
Post by Vincent Hoffman-Kazlauskas
Post by Jason Yates
Can anybody tell me how to delete a group from RANCID when using SVN?
Repository Root: file:///var/rancid/CVS
configs/
router.db
Committed revision 79.
$ cd /var/rancid
$ svn rm test
$ svn commit -m 'remove test group'

Should do the same thing. Either should work.

Source: http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.delete.html
--
John D. "Trix" Farrar __\\|//__ Basement.NET
***@basement.net (` o-o ') http://www.basement.net/
--------------------------------ooO-(_)-Ooo--------------------------
GPG Key Fprint: 525F DBA7 1A62 E4C4 E642 DF95 384B B851 3CEF C10A
Vincent Hoffman-Kazlauskas
2013-07-30 12:40:28 UTC
Permalink
Post by Trix Farrar
Post by Vincent Hoffman-Kazlauskas
Post by Jason Yates
Can anybody tell me how to delete a group from RANCID when using SVN?
Repository Root: file:///var/rancid/CVS
configs/
router.db
Committed revision 79.
$ cd /var/rancid
$ svn rm test
$ svn commit -m 'remove test group'
Should do the same thing. Either should work.
Source: http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.delete.html
oddly it doesnt which is why I jumped though hoops.
[***@ancid ~]$ pwd
/var/rancid/
[***@ancid ~]$ svn info test
Path: test
URL: file:///var/rancid/CVS/test
Repository Root: file:///var/rancid/CVS
Repository UUID: 5b34dc86-8168-4497-a0a8-ff0461a0d52a
Revision: 81
Node Kind: directory
Schedule: normal
Last Changed Author: rancid
Last Changed Rev: 81
Last Changed Date: 2013-07-30 13:33:29 +0100 (Tue, 30 Jul 2013)

[***@rancid ~]$ svn rm test
svn: '.' is not a working copy
[***@rancid ~]$svn commit -m 'remove test group'
svn: '/var/rancid' is not a working copy

the working copies are i assume the group directories.

Vince

Loading...