Show More
@@ -21,12 +21,17 b' class darcs_source(converter_source):' | |||
|
21 | 21 | def __init__(self, ui, path, rev=None): |
|
22 | 22 | super(darcs_source, self).__init__(ui, path, rev=rev) |
|
23 | 23 | |
|
24 | if not os.path.exists(os.path.join(path, '_darcs', 'inventory')): | |
|
24 | # check for _darcs, ElementTree, _darcs/inventory so that we can | |
|
25 | # easily skip test-convert-darcs if ElementTree is not around | |
|
26 | if not os.path.exists(os.path.join(path, '_darcs')): | |
|
25 | 27 | raise NoRepo("couldn't open darcs repo %s" % path) |
|
26 | 28 | |
|
27 | 29 | if ElementTree is None: |
|
28 | 30 | raise util.Abort(_("Python ElementTree module is not available")) |
|
29 | 31 | |
|
32 | if not os.path.exists(os.path.join(path, '_darcs', 'inventory')): | |
|
33 | raise NoRepo("couldn't open darcs repo %s" % path) | |
|
34 | ||
|
30 | 35 | self.path = os.path.realpath(path) |
|
31 | 36 | |
|
32 | 37 | self.lastrev = None |
@@ -9,6 +9,14 b" echo 'hgext.graphlog =' >> $HGRCPATH" | |||
|
9 | 9 | DARCS_EMAIL='test@example.org'; export DARCS_EMAIL |
|
10 | 10 | HOME=do_not_use_HOME_darcs; export HOME |
|
11 | 11 | |
|
12 | # skip if we can't import elementtree | |
|
13 | mkdir dummy | |
|
14 | mkdir dummy/_darcs | |
|
15 | if hg convert dummy 2>&1 | grep ElementTree > /dev/null; then | |
|
16 | echo 'hghave: missing feature: elementtree module' | |
|
17 | exit 80 | |
|
18 | fi | |
|
19 | ||
|
12 | 20 | echo % initialize darcs repo |
|
13 | 21 | mkdir darcs-repo |
|
14 | 22 | cd darcs-repo |
General Comments 0
You need to be logged in to leave comments.
Login now