Skip to content

Instantly share code, notes, and snippets.

@yuja
Created June 18, 2012 15:00
Show Gist options
  • Save yuja/2948785 to your computer and use it in GitHub Desktop.
Save yuja/2948785 to your computer and use it in GitHub Desktop.
#!/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
@yuja
Copy link
Author

yuja commented Jun 18, 2012

リビジョン 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment