Mercurial > hg
annotate tests/test-verify @ 7654:816b708f23af
store all heads of a branch in the branch cache
All heads of branches will be stored in a new cache file 'branchheads.cache'
within the .hg directory. The old 'branch.cache' file from older versions
will be ignored.
The new cache contents are formatted line-by-line as '{node} {branchtag}\n'.
This is the same as the previous format. Now, every head is recorded in
an oldest -> tipmost order.
The localrepo.branchheads function is reworked to use the data from the cache.
author | John Mulligan <phlogistonjohn@asynchrono.us> |
---|---|
date | Wed, 14 Jan 2009 21:47:38 -0500 |
parents | 69aeaaaf6e07 |
children | baaa832fd253 |
rev | line source |
---|---|
6893 | 1 #!/bin/sh |
2 | |
3 echo % prepare repo | |
4 hg init | |
5 echo "some text" > FOO.txt | |
6 echo "another text" > bar.txt | |
7 echo "more text" > QUICK.txt | |
8 hg add | |
9 hg ci -d '0 0' -mtest1 | |
10 | |
11 echo | |
12 echo % verify | |
13 hg verify | |
14 | |
15 echo | |
16 echo % introduce some bugs in repo | |
17 cd .hg/store/data | |
18 mv _f_o_o.txt.i X_f_o_o.txt.i | |
19 mv bar.txt.i xbar.txt.i | |
20 rm _q_u_i_c_k.txt.i | |
21 | |
22 echo | |
23 echo % verify | |
24 hg verify | |
25 | |
6898
69aeaaaf6e07
store: simplify class hierarchy
Matt Mackall <mpm@selenic.com>
parents:
6893
diff
changeset
|
26 exit 0 |