git.samba.org
/
jelmer
/
etckeeper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e96f3f
)
Test whether required hook is present rather than depending on a specific version...
author
Jelmer Vernooij
<jelmer@samba.org>
Sat, 5 Apr 2008 22:15:34 +0000
(
00:15
+0200)
committer
Jelmer Vernooij
<jelmer@samba.org>
Sat, 5 Apr 2008 22:15:34 +0000
(
00:15
+0200)
etckeeper-bzr/__init__.py
patch
|
blob
|
history
diff --git
a/etckeeper-bzr/__init__.py
b/etckeeper-bzr/__init__.py
index a5381c54ef6448950cb5214ec1705f40d4221354..a656dc5b35f17a96550f1cdbd667ed15634ce1ca 100755
(executable)
--- a/
etckeeper-bzr/__init__.py
+++ b/
etckeeper-bzr/__init__.py
@@
-9,8
+9,8
@@
from bzrlib.errors import BzrError, NotLocalUrl
import os
import subprocess
-if
bzrlib.version_info[:2] < (1,4
):
- raise "Version of Bazaar
to old. Need at least 1.4
."
+if
not (hasattr(MutableTree, "hooks") and "start_commit" in MutableTree.hooks
):
+ raise "Version of Bazaar
installed does not support required hooks
."
def etckeeper_startcommit_hook(tree):
if not os.path.exists(tree.abspath(".etckeeper")):