On 05/23/2012 01:23 PM, Ted Zlatanov wrote:
> On Wed, 23 May 2012 20:21:06 +0200 (CEST) sauer wrote:
>
> n> It's not git, but with subversion I just use a command promise (which
> n> runs "svn update") in combination with a regular CFEngine file copy to
> n> get the top-level directory's .svn directory in place.
>
> Could you share the exact commands you use for the Subversion checkout
> and update? I can add them to the vcs_mirror sketch, which can handle
> Git and Subversion and others.
>
> Ted
> _______________________________________________
> Help-cfengine mailing list
> [email protected]
> https://cfengine.org/mailman/listinfo/help-cfengine
# If there is a checkout present, but it is of the wrong repository
then switch to the right one
"/usr/bin/svn switch --no-auth-cache --non-interactive --username
$(username) --password $(password) $(svn_url)"
# If valid svn co, ensure no unversioned files
"/usr/bin/svn status --no-auth-cache --non-interactive --username
$(username) --password $(password) --no-ignore $(checkout_path) | grep
^? | cut -c 8- | xargs -I '{}' rm -rfv '{}' || exit 1"
# if modified files present then revert them
"/usr/bin/svn revert --no-auth-cache --non-interactive --username
$(username) --password $(password) --recursive $(checkout_path)"
# if svn checkout references the correct repository ensure we are up
to date
/usr/bin/svn update --no-auth-cache --non-interactive --username
$(username) --password $(password) $(checkout_path) --revision $(revision)
/usr/bin/svn checkout --no-auth-cache --non-interactive --username
$(username) --password $(password) --revision $(revision) $(svn_url)
$(checkout_path)"
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine