projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
401152d
)
Use 'darcs add --boring' for Darcs > 0.9.10
author
wking
<wking@thialfi>
Tue, 22 Jun 2010 17:09:23 +0000
(13:09 -0400)
committer
wking
<wking@thialfi>
Tue, 22 Jun 2010 17:09:23 +0000
(13:09 -0400)
libbe/storage/vcs/darcs.py
patch
|
blob
|
history
diff --git
a/libbe/storage/vcs/darcs.py
b/libbe/storage/vcs/darcs.py
index 0f23278ae507eea1f4a6e366f1a4a80519d7c02c..483b155eec99a1ac0881576296d15ab5105edd2b 100644
(file)
--- 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)):