Mercurial > hgsubversion
annotate tools/verify-all-heads.sh @ 389:a8811c84e3ee
tags: Fix an improper parent calculation.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Mon, 01 Jun 2009 11:21:47 -0500 |
parents | 5071b8511572 |
children | 11c4c7242a36 |
rev | line source |
---|---|
210
b81e7f2f7818
Add a shell script to verify the conversion result for all heads in a multi-branch repo.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
1 #!/bin/sh |
213
b1d2ea765516
tools: refactor stuff into common.sh, make verify-all-heads not revert.
Augie Fackler <durin42@gmail.com>
parents:
210
diff
changeset
|
2 . $(dirname $0)/common.sh |
b1d2ea765516
tools: refactor stuff into common.sh, make verify-all-heads not revert.
Augie Fackler <durin42@gmail.com>
parents:
210
diff
changeset
|
3 |
216
3c87de482011
tools: fixes for wc outputting with spaces.
Augie Fackler <durin42@gmail.com>
parents:
213
diff
changeset
|
4 for b in `hg branches -a | cut -f 1 -d ' ' | grep -v closed-branches` ; do |
210
b81e7f2f7818
Add a shell script to verify the conversion result for all heads in a multi-branch repo.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
5 hg co $b || break |
b81e7f2f7818
Add a shell script to verify the conversion result for all heads in a multi-branch repo.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
6 echo Verifying $b |
388
5071b8511572
tools: Fixes for verification that seemed to be needed.
Augie Fackler <durin42@gmail.com>
parents:
216
diff
changeset
|
7 verify_current_revision keep > /dev/null && \ |
5071b8511572
tools: Fixes for verification that seemed to be needed.
Augie Fackler <durin42@gmail.com>
parents:
216
diff
changeset
|
8 echo $b verified. || \ |
5071b8511572
tools: Fixes for verification that seemed to be needed.
Augie Fackler <durin42@gmail.com>
parents:
216
diff
changeset
|
9 (echo $b failed. && /bin/rm -rf * && hg up -C $b) |
210
b81e7f2f7818
Add a shell script to verify the conversion result for all heads in a multi-branch repo.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
10 done |