Created
June 18, 2012 15:00
-
-
Save yuja/2948785 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
HGROOT="$HOME/work/hghacks/mercurial" | |
HG="$HGROOT/hg" | |
LANG=C | |
TESTTMP="/tmp/subrepo+mq.d" | |
make -C "$HGROOT" local > /dev/null | |
"$HG" --version -q | |
repo="$(mktemp -d --tmpdir="$TESTTMP")" | |
"$HG" init "$repo" | |
"$HG" init "$repo/sub" | |
echo foo >> "$repo/sub/foo" | |
"$HG" -R "$repo/sub" ci -Am 'add foo to sub' | |
echo 'sub = sub' >> "$repo/.hgsub" | |
"$HG" -R "$repo" ci -Am 'add sub' | |
"$HG" -R "$repo" qnew foo.diff | |
echo foo >> "$repo/sub/foo" | |
"$HG" -R "$repo/sub" ci -Am 'append foo to sub' | |
for i in $(seq 1 2); do | |
echo '----' $i | |
"$HG" -R "$repo" qrefresh | |
cat "$repo/.hg/patches/foo.diff" | |
if ! "$HG" -R "$repo" status --change . | grep '\.hgsubstate'; then | |
echo '**** ouch!' | |
exit 1 | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
リビジョン 16073:b254f827b7a6: bad
最初の bad なリビジョンは:
16073 b254f827b7a6 2012-02-06 15:10 -0600 [email protected]
subrepo: rewrite handling of subrepo state at commit (issue2403)
https://bitbucket.org/mirror/mercurial/changeset/b254f827b7a6