Use 'darcs add --boring' for Darcs > 0.9.10
authorwking <wking@thialfi>
Tue, 22 Jun 2010 17:09:23 +0000 (13:09 -0400)
committerwking <wking@thialfi>
Tue, 22 Jun 2010 17:09:23 +0000 (13:09 -0400)
libbe/storage/vcs/darcs.py

index 0f23278ae507eea1f4a6e366f1a4a80519d7c02c..483b155eec99a1ac0881576296d15ab5105edd2b 100644 (file)
@@ -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)):