From 2928afaa547dd8861f0ba9ca2c48c1579c19b48e Mon Sep 17 00:00:00 2001 From: Jason Kincl Date: Tue, 27 Nov 2012 22:23:49 -0500 Subject: adding doc, changing variable names --- doc/server/plugins/version/svn.txt | 27 +++++++++++++++++++++++++++ src/lib/Bcfg2/Server/Plugins/Svn.py | 6 +++--- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/doc/server/plugins/version/svn.txt b/doc/server/plugins/version/svn.txt index 7166ee89d..1c62a0b4e 100644 --- a/doc/server/plugins/version/svn.txt +++ b/doc/server/plugins/version/svn.txt @@ -32,3 +32,30 @@ Simply add Svn to your plugins line in ``/etc/bcfg2.conf``:: [server] plugins = Bundler,Cfg,Metadata,..,Svn + +Resolving conflicts +======================= + +By default, the Svn plugin does not attempt to resolve conflicts +when trying to commit or update the repository. This can be changed by +adding to ``/etc/bcfg2.conf``:: + + [Svn] + conflict_resolution = + ++-----------------+ +| Attribute | ++=================+ +| base | ++-----------------+ +| working | ++-----------------+ +| mine-conflict | ++-----------------+ +| theirs-conflict | ++-----------------+ +| mine-full | ++-----------------+ +| theirs-full | ++-----------------+ + diff --git a/src/lib/Bcfg2/Server/Plugins/Svn.py b/src/lib/Bcfg2/Server/Plugins/Svn.py index 9ec334dd0..b1f8ef388 100644 --- a/src/lib/Bcfg2/Server/Plugins/Svn.py +++ b/src/lib/Bcfg2/Server/Plugins/Svn.py @@ -53,14 +53,14 @@ class Svn(Bcfg2.Server.Plugin.Version): else: self.client = pysvn.Client() try: - if self.core.setup.cfg.has_option("svn", + if self.core.setup.cfg.has_option("Svn", "conflict_resolution"): - self.svn_resolution = self.core.setup.cfp.get("svn", + self.svn_resolution = self.core.setup.cfp.get("Svn", "conflict_resolution") self.client.callback_conflict_resolver = \ self.callback_conflict_resolver except ConfigParser.NoSectionError: - msg = "Svn: No [svn] section found in bcfg2.conf" + msg = "Svn: No [Svn] section found in bcfg2.conf" self.logger.warning(msg) except ConfigParser.NoOptionError: msg = "Svn: Option not found in bcfg2.conf: %s" % \ -- cgit v1.2.3-1-g7c22