Mercurial > hg
annotate tests/test-convert @ 5279:2dbd750b3ddd
convert: clear the dirstate before a conversion, invalidate it afterwards
Clearing it before the conversion protects us from whatever data were
there (file copies in particular).
Invalidating it after the conversion avoids writing a possibly
inconsistent dirstate to disk.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Sat, 01 Sep 2007 02:49:18 -0300 |
parents | 36e8983fe44d |
children | 71e7c86adcb7 |
rev | line source |
---|---|
5015 | 1 #!/bin/sh |
2 | |
3 echo "[extensions]" >> $HGRCPATH | |
4 echo "convert=" >> $HGRCPATH | |
5 | |
6 hg init a | |
7 cd a | |
8 echo a > a | |
9 hg ci -d'0 0' -Ama | |
10 hg cp a b | |
11 hg ci -d'1 0' -mb | |
12 hg rm a | |
13 hg ci -d'2 0' -mc | |
14 hg mv b a | |
15 hg ci -d'3 0' -md | |
16 echo a >> a | |
17 hg ci -d'4 0' -me | |
18 | |
19 cd .. | |
5028
36e8983fe44d
test-convert: Hide warning about missing subversion bindings.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
5015
diff
changeset
|
20 hg convert a 2>&1 | grep -v 'subversion python bindings could not be loaded' |
5015 | 21 hg --cwd a-hg pull ../a |