Show More
@@ -32,8 +32,10 b' class mercurial_sink(converter_sink):' | |||||
32 | def before(self): |
|
32 | def before(self): | |
33 | self.wlock = self.repo.wlock() |
|
33 | self.wlock = self.repo.wlock() | |
34 | self.lock = self.repo.lock() |
|
34 | self.lock = self.repo.lock() | |
|
35 | self.repo.dirstate.clear() | |||
35 |
|
36 | |||
36 | def after(self): |
|
37 | def after(self): | |
|
38 | self.repo.dirstate.invalidate() | |||
37 | self.lock = None |
|
39 | self.lock = None | |
38 | self.wlock = None |
|
40 | self.wlock = None | |
39 |
|
41 |
@@ -24,4 +24,30 b' cd ..' | |||||
24 | hg convert orig new 2>&1 | grep -v 'subversion python bindings could not be loaded' |
|
24 | hg convert orig new 2>&1 | grep -v 'subversion python bindings could not be loaded' | |
25 | cd new |
|
25 | cd new | |
26 | hg out ../orig |
|
26 | hg out ../orig | |
27 | true |
|
27 | ||
|
28 | echo '% dirstate should be empty:' | |||
|
29 | hg debugstate | |||
|
30 | hg parents -q | |||
|
31 | ||||
|
32 | hg up -C | |||
|
33 | hg copy bar baz | |||
|
34 | echo '% put something in the dirstate:' | |||
|
35 | hg debugstate > debugstate | |||
|
36 | grep baz debugstate | |||
|
37 | ||||
|
38 | echo '% add a new revision in the original repo' | |||
|
39 | cd ../orig | |||
|
40 | echo baz > baz | |||
|
41 | hg ci -qAm 'add baz' | |||
|
42 | ||||
|
43 | cd .. | |||
|
44 | hg convert orig new 2>&1 | grep -v 'subversion python bindings could not be loaded' | |||
|
45 | cd new | |||
|
46 | hg out ../orig | |||
|
47 | echo '% dirstate should be the same (no output below):' | |||
|
48 | hg debugstate > new-debugstate | |||
|
49 | diff debugstate new-debugstate | |||
|
50 | ||||
|
51 | echo '% no copies' | |||
|
52 | hg up -C | |||
|
53 | hg debugrename baz |
@@ -31,3 +31,21 b' 0 Added tag some-tag for changeset ad681' | |||||
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 |
General Comments 0
You need to be logged in to leave comments.
Login now