tests/test-strict
author Stefano Tortarolo <stefano.tortarolo@gmail.com>
Tue, 08 Jun 2010 18:01:07 +0200
changeset 11316 7fa3968004c1
parent 8167 6c82beaaa11a
permissions -rwxr-xr-x
rebase: --abort doesn't strip away the target changeset (issue2220) When a changeset is skipped, rebase keeps the previous target as next target and if the skipped cset is the first one, the recorded target is actually the original target. --abort did not detect this situation but simply stripped away the cset.

#!/bin/sh

hg init

echo a > a
hg ci -Ama

hg an a

echo "[ui]" >> $HGRCPATH
echo "strict=True" >> $HGRCPATH

hg an a
hg annotate a

echo % should succeed - up is an alias, not an abbreviation

hg up