Show More
@@ -0,0 +1,17 b'' | |||||
|
1 | #!/bin/sh -x | |||
|
2 | ||||
|
3 | hg init | |||
|
4 | echo This is file a1 > a | |||
|
5 | hg add a | |||
|
6 | hg commit -t "commit #0" -d "0 0" -u user | |||
|
7 | echo This is file b1 > b | |||
|
8 | hg add b | |||
|
9 | hg commit -t "commit #1" -d "0 0" -u user | |||
|
10 | hg update 0 | |||
|
11 | echo This is file c1 > c | |||
|
12 | hg add c | |||
|
13 | hg commit -t "commit #2" -d "0 0" -u user | |||
|
14 | hg update -m 1 | |||
|
15 | rm b | |||
|
16 | echo This is file c22 > c | |||
|
17 | hg commit -t "commit #3" -d "0 0" -u user |
@@ -0,0 +1,15 b'' | |||||
|
1 | + hg init | |||
|
2 | + echo This is file a1 | |||
|
3 | + hg add a | |||
|
4 | + hg commit -t 'commit #0' -d '0 0' -u user | |||
|
5 | + echo This is file b1 | |||
|
6 | + hg add b | |||
|
7 | + hg commit -t 'commit #1' -d '0 0' -u user | |||
|
8 | + hg update 0 | |||
|
9 | + echo This is file c1 | |||
|
10 | + hg add c | |||
|
11 | + hg commit -t 'commit #2' -d '0 0' -u user | |||
|
12 | + hg update -m 1 | |||
|
13 | + rm b | |||
|
14 | + echo This is file c22 | |||
|
15 | + hg commit -t 'commit #3' -d '0 0' -u user |
@@ -588,7 +588,9 b' class localrepository:' | |||||
588 |
|
588 | |||
589 | # update manifest |
|
589 | # update manifest | |
590 | m1.update(new) |
|
590 | m1.update(new) | |
591 |
for f in remove: |
|
591 | for f in remove: | |
|
592 | if f in m1: | |||
|
593 | del m1[f] | |||
592 | mn = self.manifest.add(m1, mf1, tr, linkrev, c1[0], c2[0]) |
|
594 | mn = self.manifest.add(m1, mf1, tr, linkrev, c1[0], c2[0]) | |
593 |
|
595 | |||
594 | # add changeset |
|
596 | # add changeset |
General Comments 0
You need to be logged in to leave comments.
Login now