aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/storage/vcs
diff options
context:
space:
mode:
authorwking <wking@thialfi>2010-06-22 13:09:23 -0400
committerwking <wking@thialfi>2010-06-22 13:09:23 -0400
commit1fc4f31d28cee02fc137b4997a252e0ddb5ca294 (patch)
treed904ad271100192fea6eda17a33866c502a395b1 /libbe/storage/vcs
parent401152d6eec5167043dedde60c0a64d0affbd120 (diff)
downloadbugseverywhere-1fc4f31d28cee02fc137b4997a252e0ddb5ca294.tar.gz
Use 'darcs add --boring' for Darcs > 0.9.10
Diffstat (limited to 'libbe/storage/vcs')
-rw-r--r--libbe/storage/vcs/darcs.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/libbe/storage/vcs/darcs.py b/libbe/storage/vcs/darcs.py
index 0f23278..483b155 100644
--- a/libbe/storage/vcs/darcs.py
+++ b/libbe/storage/vcs/darcs.py
@@ -153,7 +153,10 @@ class Darcs(base.VCS):
def _vcs_add(self, path):
if os.path.isdir(path):
return
- self._u_invoke_client('add', path)
+ if self.version_cmp(0, 9, 10) == 1:
+ self._u_invoke_client('add', '--boring', path)
+ else: # really old versions <= 0.9.10 lack --boring
+ self._u_invoke_client('add', path)
def _vcs_remove(self, path):
if not os.path.isdir(self._u_abspath(path)):