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.
adding a
adding b/a
a
b/a
644 a
644 b/a
b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 644 a
b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 644 b/a
a
a
b/a
a
b/a
% should fail
abort: unknown revision '2'!
abort: please specify just one revision
a
b/a