Show More
@@ -11,6 +11,12 b' if ! hg update --check -q .; then' | |||||
11 | exit 1 |
|
11 | exit 1 | |
12 | fi |
|
12 | fi | |
13 |
|
13 | |||
|
14 | revset=$1 | |||
|
15 | if [ -z "$revset" ]; then | |||
|
16 | echo "Warning: no revisions specified, checking draft changes up to the current one." | |||
|
17 | revset='draft() and ancestors(.)' | |||
|
18 | fi | |||
|
19 | ||||
14 | venv=$(mktemp -d kallithea-validatecommits-env-XXXXXX) |
|
20 | venv=$(mktemp -d kallithea-validatecommits-env-XXXXXX) | |
15 | resultfile=$(mktemp kallithea-validatecommits-result-XXXXXX) |
|
21 | resultfile=$(mktemp kallithea-validatecommits-result-XXXXXX) | |
16 | echo > "$resultfile" |
|
22 | echo > "$resultfile" | |
@@ -29,7 +35,7 b' finish()' | |||||
29 | } |
|
35 | } | |
30 | trap finish EXIT |
|
36 | trap finish EXIT | |
31 |
|
37 | |||
32 |
for rev in $(hg log -r "$ |
|
38 | for rev in $(hg log -r "$revset" -T '{node}\n'); do | |
33 | hg log -r "$rev" |
|
39 | hg log -r "$rev" | |
34 | hg update "$rev" |
|
40 | hg update "$rev" | |
35 |
|
41 |
General Comments 0
You need to be logged in to leave comments.
Login now