Show More
@@ -0,0 +1,19 b'' | |||||
|
1 | #!/bin/sh | |||
|
2 | # | |||
|
3 | # test for issue351 | |||
|
4 | ||||
|
5 | # Environement setup for MQ | |||
|
6 | echo "[extensions]" >> $HGRCPATH | |||
|
7 | echo "mq=" >> $HGRCPATH | |||
|
8 | ||||
|
9 | #Repo init | |||
|
10 | hg init | |||
|
11 | hg qinit | |||
|
12 | ||||
|
13 | echo b > b | |||
|
14 | hg ci -A -m foo | |||
|
15 | echo cc > b | |||
|
16 | hg qnew -f foo.diff | |||
|
17 | echo b > b | |||
|
18 | hg qrefresh | |||
|
19 | hg debugindex .hg/store/data/b.i |
@@ -0,0 +1,3 b'' | |||||
|
1 | adding b | |||
|
2 | rev offset length base linkrev nodeid p1 p2 | |||
|
3 | 0 0 3 0 0 1e88685f5dde 000000000000 000000000000 |
@@ -693,9 +693,9 b' class localrepository(repo.repository):' | |||||
693 | elif fpa == fp2: |
|
693 | elif fpa == fp2: | |
694 | fp2 = nullid |
|
694 | fp2 = nullid | |
695 |
|
695 | |||
696 |
|
|
696 | # is the file unmodified from the parent? report existing entry | |
697 |
|
|
697 | if fp2 == nullid and not fl.cmp(fp1, t): | |
698 |
|
|
698 | return fp1 | |
699 |
|
699 | |||
700 | changelist.append(fn) |
|
700 | changelist.append(fn) | |
701 | return fl.add(t, meta, transaction, linkrev, fp1, fp2) |
|
701 | return fl.add(t, meta, transaction, linkrev, fp1, fp2) |
@@ -14,9 +14,9 b' searching for changes' | |||||
14 | adding changesets |
|
14 | adding changesets | |
15 | adding manifests |
|
15 | adding manifests | |
16 | adding file changes |
|
16 | adding file changes | |
17 |
added 1 changesets with |
|
17 | added 1 changesets with 0 changes to 0 files (+1 heads) | |
18 | (run 'hg heads' to see heads, 'hg merge' to merge) |
|
18 | (run 'hg heads' to see heads, 'hg merge' to merge) | |
19 |
changeset: 2: |
|
19 | changeset: 2:37dccb76c058 | |
20 | tag: tip |
|
20 | tag: tip | |
21 | parent: 0:4536b1c2ca69 |
|
21 | parent: 0:4536b1c2ca69 | |
22 | user: test |
|
22 | user: test | |
@@ -28,7 +28,7 b' user: test' | |||||
28 | date: Mon Jan 12 13:46:40 1970 +0000 |
|
28 | date: Mon Jan 12 13:46:40 1970 +0000 | |
29 | summary: a updated |
|
29 | summary: a updated | |
30 |
|
30 | |||
31 |
changeset: 2: |
|
31 | changeset: 2:37dccb76c058 | |
32 | tag: tip |
|
32 | tag: tip | |
33 | parent: 0:4536b1c2ca69 |
|
33 | parent: 0:4536b1c2ca69 | |
34 | user: test |
|
34 | user: test | |
@@ -46,17 +46,16 b' date: Mon Jan 12 13:46:40 1970 +0' | |||||
46 | summary: added a b |
|
46 | summary: added a b | |
47 |
|
47 | |||
48 | resolving manifests |
|
48 | resolving manifests | |
49 | merging a |
|
49 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
50 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
|||
51 | (branch merge, don't forget to commit) |
|
50 | (branch merge, don't forget to commit) | |
52 | pulling from ../test2 |
|
51 | pulling from ../test2 | |
53 | searching for changes |
|
52 | searching for changes | |
54 | adding changesets |
|
53 | adding changesets | |
55 | adding manifests |
|
54 | adding manifests | |
56 | adding file changes |
|
55 | adding file changes | |
57 |
added 1 changesets with |
|
56 | added 1 changesets with 0 changes to 0 files (+1 heads) | |
58 | (run 'hg heads' to see heads, 'hg merge' to merge) |
|
57 | (run 'hg heads' to see heads, 'hg merge' to merge) | |
59 |
changeset: 2: |
|
58 | changeset: 2:37dccb76c058 | |
60 | tag: tip |
|
59 | tag: tip | |
61 | parent: 0:4536b1c2ca69 |
|
60 | parent: 0:4536b1c2ca69 | |
62 | user: test |
|
61 | user: test | |
@@ -68,7 +67,7 b' user: test' | |||||
68 | date: Mon Jan 12 13:46:40 1970 +0000 |
|
67 | date: Mon Jan 12 13:46:40 1970 +0000 | |
69 | summary: b updated |
|
68 | summary: b updated | |
70 |
|
69 | |||
71 |
changeset: 2: |
|
70 | changeset: 2:37dccb76c058 | |
72 | tag: tip |
|
71 | tag: tip | |
73 | parent: 0:4536b1c2ca69 |
|
72 | parent: 0:4536b1c2ca69 | |
74 | user: test |
|
73 | user: test | |
@@ -86,19 +85,15 b' date: Mon Jan 12 13:46:40 1970 +0' | |||||
86 | summary: added a b |
|
85 | summary: added a b | |
87 |
|
86 | |||
88 | resolving manifests |
|
87 | resolving manifests | |
89 | getting a |
|
88 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
90 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
|||
91 | (branch merge, don't forget to commit) |
|
89 | (branch merge, don't forget to commit) | |
92 | -rwxr-x--- |
|
90 | -rwxr-x--- | |
93 | -rwxr-x--- |
|
91 | -rwxr-x--- | |
94 | -rwxr-x--- |
|
92 | -rwxr-x--- | |
95 | rev offset length base linkrev nodeid p1 p2 |
|
93 | rev offset length base linkrev nodeid p1 p2 | |
96 | 0 0 0 0 0 b80de5d13875 000000000000 000000000000 |
|
94 | 0 0 0 0 0 b80de5d13875 000000000000 000000000000 | |
97 | 1 0 0 0 2 37c42bd6cc03 b80de5d13875 000000000000 |
|
|||
98 | rev offset length base linkrev nodeid p1 p2 |
|
95 | rev offset length base linkrev nodeid p1 p2 | |
99 | 0 0 0 0 0 b80de5d13875 000000000000 000000000000 |
|
96 | 0 0 0 0 0 b80de5d13875 000000000000 000000000000 | |
100 | 1 0 0 0 1 37c42bd6cc03 b80de5d13875 000000000000 |
|
|||
101 | rev offset length base linkrev nodeid p1 p2 |
|
97 | rev offset length base linkrev nodeid p1 p2 | |
102 | 0 0 0 0 0 b80de5d13875 000000000000 000000000000 |
|
98 | 0 0 0 0 0 b80de5d13875 000000000000 000000000000 | |
103 | 1 0 5 1 1 7fe919cc0336 b80de5d13875 000000000000 |
|
99 | 1 0 5 1 1 7fe919cc0336 b80de5d13875 000000000000 | |
104 | 2 5 0 2 2 37c42bd6cc03 b80de5d13875 000000000000 |
|
General Comments 0
You need to be logged in to leave comments.
Login now