equal
deleted
inserted
replaced
20 >>> import os |
20 >>> import os |
21 >>> regsize = os.stat("repo/.hg/store/00manifest.i").st_size |
21 >>> regsize = os.stat("repo/.hg/store/00manifest.i").st_size |
22 >>> gdsize = os.stat("gdrepo/.hg/store/00manifest.i").st_size |
22 >>> gdsize = os.stat("gdrepo/.hg/store/00manifest.i").st_size |
23 >>> if regsize < gdsize: |
23 >>> if regsize < gdsize: |
24 ... print 'generaldata increased size of manifest' |
24 ... print 'generaldata increased size of manifest' |
|
25 |
|
26 Verify rev reordering doesnt create invalid bundles (issue4462) |
|
27 This requires a commit tree that when pulled will reorder manifest revs such |
|
28 that the second manifest to create a file rev will be ordered before the first |
|
29 manifest to create that file rev. We also need to do a partial pull to ensure |
|
30 reordering happens. At the end we verify the linkrev points at the earliest |
|
31 commit. |
|
32 |
|
33 $ hg init server --config format.generaldelta=True |
|
34 $ cd server |
|
35 $ touch a |
|
36 $ hg commit -Aqm a |
|
37 $ echo x > x |
|
38 $ echo y > y |
|
39 $ hg commit -Aqm xy |
|
40 $ hg up -q '.^' |
|
41 $ echo x > x |
|
42 $ echo z > z |
|
43 $ hg commit -Aqm xz |
|
44 $ hg up -q 1 |
|
45 $ echo b > b |
|
46 $ hg commit -Aqm b |
|
47 $ hg merge -q 2 |
|
48 $ hg commit -Aqm merge |
|
49 $ echo c > c |
|
50 $ hg commit -Aqm c |
|
51 $ hg log -G -T '{rev} {shortest(node)} {desc}' |
|
52 @ 5 ebb8 c |
|
53 | |
|
54 o 4 baf7 merge |
|
55 |\ |
|
56 | o 3 a129 b |
|
57 | | |
|
58 o | 2 958c xz |
|
59 | | |
|
60 | o 1 f00c xy |
|
61 |/ |
|
62 o 0 3903 a |
|
63 |
|
64 $ cd .. |
|
65 $ hg init client |
|
66 $ cd client |
|
67 $ hg pull -q ../server -r 4 |
|
68 $ hg debugindex x |
|
69 rev offset length base linkrev nodeid p1 p2 |
|
70 0 0 3 0 1 1406e7411862 000000000000 000000000000 |
|
71 |