Ticket #754 (closed enhancement: fixed)
Plugin for SVN checkout
Reported by: | somekool <[email protected]…> | Owned by: | solj |
---|---|---|---|
Priority: | major | Milestone: | Bcfg2 1.2.0 Release |
Component: | bcfg2-client | Version: | 1.0 |
Keywords: | Cc: | [email protected]…, [email protected]… |
Description
I have this Action various times for multiple svn repository. I need bcfg2 to check out and update SVN repository on my servers. There is some stuff I simply don't need to package as a RPM. and Having BCFG2 check them out for me. is great.
<BoundAction? timing='pre' when='always' name='checkout_mrepo' command='if [ -d /opt/mrepo ]; then (cd /opt/mrepo; svn up -r123); else svn co -r123 https://svn.host.foo/svn_repo/mrepo/trunk /opt/mrepo; fi;' status='ignore'/>
this could be specified with something like
<BoundSvnCheckout? name='checkout_mrepo' svnpath='https://svn.host.foo/svn_repo/mrepo/trunk' svnrev='123' directory='/opt/mrepo'/>
thank you
Attachments
Change History
comment:1 Changed 13 years ago by solj
- Milestone changed from Bcfg2 1.0.0 Release to Bcfg2 1.0.1 Release
comment:2 Changed 13 years ago by dclark
- Cc [email protected]… added
I also would love this functionality, however I think for implementing we should look into using a vcs abstraction layer that would may the plugin work with svn and a bunch of other (distributed) version control systems.
Candidates look like:
- anyvc - http://pypi.python.org/pypi/anyvc
- pysync - http://code.google.com/p/pysync
- pyvcal - http://code.google.com/p/pyvcal
- pyvcs - http://pypi.python.org/pypi/pyvcs
At first glance solj liked anyvc ( irc conversation).
comment:3 Changed 13 years ago by solj
- Milestone changed from Bcfg2 1.0.1 Release to Bcfg2 1.1.0 Release
comment:4 Changed 13 years ago by https://www.google.com/accounts/o8/id?id=AItOawmSAqcanZjC_zUMz6-24nRYFLJWSQtV0vw
- Cc [email protected]… added
comment:5 Changed 12 years ago by solj
- Milestone changed from Bcfg2 1.1.0 Release to Bcfg2 1.2.0 Release
I'm gonna try and get this done in 1.2.0.
comment:6 Changed 12 years ago by solj
- Owner changed from desai to solj
- Status changed from new to accepted
Still need to test the svn side of things but an initial attempt at this is in 41edd7fddc7cb53d0fe3880c7707eb0f58879e59.