Mercurial > hg
comparison tests/test-convert-hg-sink.out @ 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 | 70e9a527cc61 |
children | 61fdf2558c0a |
comparison
equal
deleted
inserted
replaced
5278:70e9a527cc61 | 5279:2dbd750b3ddd |
---|---|
29 1 add foo/file | 29 1 add foo/file |
30 0 Added tag some-tag for changeset ad681a868e44 | 30 0 Added tag some-tag for changeset ad681a868e44 |
31 comparing with ../orig | 31 comparing with ../orig |
32 searching for changes | 32 searching for changes |
33 no changes found | 33 no changes found |
34 % dirstate should be empty: | |
35 3 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
36 % put something in the dirstate: | |
37 a 0 -1 unset baz | |
38 copy: bar -> baz | |
39 % add a new revision in the original repo | |
40 destination new is a Mercurial repository | |
41 scanning source... | |
42 sorting... | |
43 converting... | |
44 0 add baz | |
45 comparing with ../orig | |
46 searching for changes | |
47 no changes found | |
48 % dirstate should be the same (no output below): | |
49 % no copies | |
50 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
51 baz not renamed |