annotate tools/verify-all-heads.sh @ 990:def2144c0a8c

push: rebase one at a time before push Previously when pushing n commits, push would rebase n, commit 1, rebase n-1, commit 1, rebase n-2, etc. This caused push to be very slow on large repositories. Pushing 10 commits on our repo took 75 seconds per commit, and that grew at n^2 with the number of commits being pushed. This changes push to rebase each commit individually. Now pushing 10 commits on our repo takes 25 seconds per commit, and is constant relative to the number of commits being pushed.
author Durham Goode <durham@fb.com>
date Wed, 02 Jan 2013 17:51:07 -0800
parents 11c4c7242a36
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
396
11c4c7242a36 tools: use new svn verify command instead of svn export incantations
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 388
diff changeset
4 for b in `hg branches -aq` ; 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
396
11c4c7242a36 tools: use new svn verify command instead of svn export incantations
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 388
diff changeset
6 echo verifying $b
11c4c7242a36 tools: use new svn verify command instead of svn export incantations
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 388
diff changeset
7 hg svn verify
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
8 done