Mercurial > evolve
view docs/tutorial/testlib/common.sh @ 5581:36ccafa69095
discovery: list the new heads like core does when failing a multi-head push
The message was, and still is slightly different from core (which mentions
'remote' heads). But it's probably useful to have slightly different messages
so that we can easily determine the source.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Thu, 17 Sep 2020 14:11:38 -0400 |
parents | aad37ffd7d58 |
children |
line wrap: on
line source
#!/bin/bash . $TESTDIR/testlib/pythonpath.sh mkcommit() { echo "$1" > "$1" hg add "$1" hg ci -m "$1" } getid() { hg log --hidden --template '{node}\n' --rev "$1" } cat >> $HGRCPATH <<EOF [alias] debugobsolete=debugobsolete -d '0 0' EOF html_output() { filepath="$1" touch "$filepath" shift python $TESTDIR/testlib/arguments_printer.py 'hg' "$@" > "$filepath" hg "$@" --color=always 2>&1 | aha -n | tee -a "$filepath" } html_raw_output() { filepath="$1" touch "$filepath" shift # python $TESTDIR/testlib/arguments_printer.py "$@" > "$filepath" echo "" > "$filepath" "$@" | tee -a "$filepath" } graph() { hg docgraph --rankdir LR --arrowhead=true --obsarrowhead=true --sphinx-directive --dot-output "$@" }