Skip to content

Commit

Permalink
[issue5] export HGRCPATH= HGPLAIN
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickFerber committed Jul 17, 2020
1 parent eac81b0 commit 3fac1a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
7 changes: 3 additions & 4 deletions run-cleanup.sh
Expand Up @@ -31,10 +31,11 @@ if ! /bin/bash "${SETUP_MERCURIAL}"; then
exit 2
fi
source "${VIRTUALENV}/bin/activate"

# Disable all extensions.
# (https://stackoverflow.com/questions/46612210/mercurial-disable-all-the-extensions-from-the-command-line)
HGRCPATH= HGPLAIN= \
export HGRCPATH=
export HGPLAIN=

hg \
--config extensions.renaming_mercurial_source="${BASE}/renaming_mercurial_source.py" \
--config extensions.hgext.convert= \
Expand All @@ -47,7 +48,5 @@ hg \
--branchmap "${BASE}/data/downward_branchmap.txt"

cd "${CLEANED_REPOSITORY}"
HGRCPATH= HGPLAIN= \
hg --config extensions.strip= strip "branch(issue323)" --nobackup
HGRCPATH= HGPLAIN= \
hg --config extensions.strip= strip "branch(ipc-2011-fixes)" --nobackup
8 changes: 3 additions & 5 deletions run-order.sh
Expand Up @@ -31,18 +31,16 @@ if ! /bin/bash "${SETUP_MERCURIAL}"; then
exit 2
fi
source "${VIRTUALENV}/bin/activate"

# Disable all extensions.
# (https://stackoverflow.com/questions/46612210/mercurial-disable-all-the-extensions-from-the-command-line)
HGRCPATH= HGPLAIN= \
export HGRCPATH=
export HGPLAIN=

hg clone "http://hg.fast-downward.org" "${ORDERED_REPOSITORY}"
set +e # hg incoming has an non-zero exit code if nothing is incoming
CHANGESETS="$(hg -R "${SRC_REPOSITORY}" incoming --template "{node} " --quiet "${ORDERED_REPOSITORY}")"
set -e
if [[ ! -z "${CHANGESETS}" ]]; then
echo stripping
HGRCPATH= HGPLAIN= \
hg -R "${ORDERED_REPOSITORY}" --config extensions.strip= strip ${CHANGESETS} --nobackup
fi
HGRCPATH= HGPLAIN= \
hg -R "${ORDERED_REPOSITORY}" pull "${SRC_REPOSITORY}"

1 comment on commit 3fac1a2

@FlorianPommerening
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd also do the same for run-conversion.sh for consistency.

Please sign in to comment.