aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/arch.py
diff options
context:
space:
mode:
authorJames Rowe <jnrowe@ukfsn.org>2009-06-19 15:10:34 -0400
committerW. Trevor King <wking@drexel.edu>2009-06-19 15:10:34 -0400
commit6215862d89ed606c18df896feafbecb31bbe8ec6 (patch)
treeab079bf07f301117af8c8e5de203bc07fccde10a /libbe/arch.py
parent89b2ba997492895328203c3d80cfd8a66dd17363 (diff)
downloadbugseverywhere-6215862d89ed606c18df896feafbecb31bbe8ec6.tar.gz
Merged James Rowe's arch-shouldn't-create-userwide-config-file patch.
From his email to the be-devel list: From: James Rowe <jnrowe@ukfsn.org> Date: Tue, 3 May 2009 11:44:41 +0000 Subject: [PATCH] Don't create config file unless we're using arch. Hi, I find the current behaviour of creating a config file simply to set a default for a revision control system I'm never going to use to be a little annoying, the attached patch changes this behaviour to only set the default in the config file if you're actually using arch. Thanks, James
Diffstat (limited to 'libbe/arch.py')
-rw-r--r--libbe/arch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbe/arch.py b/libbe/arch.py
index 1173535..b6d01e1 100644
--- a/libbe/arch.py
+++ b/libbe/arch.py
@@ -29,7 +29,6 @@ from rcs import RCS, RCStestCase, CommandError
client = config.get_val("arch_client")
if client is None:
client = "tla"
- config.set_val("arch_client", client)
def new():
return Arch()
@@ -50,6 +49,7 @@ class Arch(RCS):
def _rcs_detect(self, path):
"""Detect whether a directory is revision-controlled using Arch"""
if self._u_search_parent_directories(path, "{arch}") != None :
+ config.set_val("arch_client", client)
return True
return False
def _rcs_init(self, path):