comparison tests/test-convert-hg-sink @ 5278:70e9a527cc61

convert: avoid dirstate checks; add a test During a conversion, the dirstate contents are not consistent - there are files that may be missing from the dirstate and there may be files that shouldn't be in the dirstate. While this is not fixed, don't mark files as added - put them directly in state 'n'ormal.
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Sat, 01 Sep 2007 02:49:18 -0300
parents
children 2dbd750b3ddd
comparison
equal deleted inserted replaced
5277:a32a8e50d233 5278:70e9a527cc61
1 #!/bin/sh
2
3 echo "[extensions]" >> $HGRCPATH
4 echo "hgext.convert=" >> $HGRCPATH
5
6 hg init orig
7 cd orig
8 echo foo > foo
9 echo bar > bar
10 hg ci -qAm 'add foo and bar' -d '0 0'
11
12 hg rm foo
13 hg ci -m 'remove foo' -d '0 0'
14
15 mkdir foo
16 echo file > foo/file
17 hg ci -qAm 'add foo/file' -d '0 0'
18
19 hg tag -d '0 0' some-tag
20
21 hg log
22 cd ..
23
24 hg convert orig new 2>&1 | grep -v 'subversion python bindings could not be loaded'
25 cd new
26 hg out ../orig
27 true