From e63eea186a953a53afbcddfae89ec49d602a1353 Mon Sep 17 00:00:00 2001 From: Jason Kincl Date: Wed, 28 Nov 2012 08:50:26 -0500 Subject: fixing logic so try..except works correctly, bugs --- doc/server/plugins/version/svn.txt | 2 -- src/lib/Bcfg2/Server/Plugins/Svn.py | 11 ++++------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/doc/server/plugins/version/svn.txt b/doc/server/plugins/version/svn.txt index 1c62a0b4e..748dce7c6 100644 --- a/doc/server/plugins/version/svn.txt +++ b/doc/server/plugins/version/svn.txt @@ -48,8 +48,6 @@ adding to ``/etc/bcfg2.conf``:: +=================+ | base | +-----------------+ -| working | -+-----------------+ | mine-conflict | +-----------------+ | theirs-conflict | diff --git a/src/lib/Bcfg2/Server/Plugins/Svn.py b/src/lib/Bcfg2/Server/Plugins/Svn.py index b1f8ef388..a33948526 100644 --- a/src/lib/Bcfg2/Server/Plugins/Svn.py +++ b/src/lib/Bcfg2/Server/Plugins/Svn.py @@ -24,7 +24,6 @@ class Svn(Bcfg2.Server.Plugin.Version): conflict_resolution_map = { "base": pysvn.wc_conflict_choice.base, - "working": pysvn.wc_conflict_choice.working, "mine-conflict": pysvn.wc_conflict_choice.mine_conflict, "theirs-conflict": pysvn.wc_conflict_choice.theirs_conflict, "mine-full": pysvn.wc_conflict_choice.mine_full, @@ -53,11 +52,9 @@ class Svn(Bcfg2.Server.Plugin.Version): else: self.client = pysvn.Client() try: - if self.core.setup.cfg.has_option("Svn", - "conflict_resolution"): - self.svn_resolution = self.core.setup.cfp.get("Svn", - "conflict_resolution") - self.client.callback_conflict_resolver = \ + 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" @@ -67,7 +64,7 @@ class Svn(Bcfg2.Server.Plugin.Version): sys.exc_info()[1] self.logger.warning(msg) - self.logger.debug("Initialized svn plugin with SVN directory %s" % + self.logger.debug("Svn: Initialized svn plugin with SVN directory %s" % self.vcs_path) def get_revision(self): -- cgit v1.2.3-1-g7c22