Show More
@@ -956,7 +956,7 b' def backout(ui, repo, rev, **opts):' | |||
|
956 | 956 | raise util.Abort(_('cannot back out a change with no parents')) |
|
957 | 957 | if p2 != nullid: |
|
958 | 958 | raise util.Abort(_('cannot back out a merge')) |
|
959 | repo.update(node, force=True) | |
|
959 | repo.update(node, force=True, show_stats=False) | |
|
960 | 960 | revert_opts = opts.copy() |
|
961 | 961 | revert_opts['rev'] = hex(parent) |
|
962 | 962 | revert(ui, repo, **revert_opts) |
@@ -2518,7 +2518,8 b' def revert(ui, repo, *pats, **opts):' | |||
|
2518 | 2518 | update[abs] = True |
|
2519 | 2519 | |
|
2520 | 2520 | repo.dirstate.forget(forget[0]) |
|
2521 |
r = repo.update(node, False, True, update.has_key, False, wlock=wlock |
|
|
2521 | r = repo.update(node, False, True, update.has_key, False, wlock=wlock, | |
|
2522 | show_stats=False) | |
|
2522 | 2523 | repo.dirstate.update(add[0], 'a') |
|
2523 | 2524 | repo.dirstate.update(undelete[0], 'n') |
|
2524 | 2525 | repo.dirstate.update(remove[0], 'r') |
@@ -1540,7 +1540,7 b' class localrepository(object):' | |||
|
1540 | 1540 | return newheads - oldheads + 1 |
|
1541 | 1541 | |
|
1542 | 1542 | def update(self, node, allow=False, force=False, choose=None, |
|
1543 | moddirstate=True, forcemerge=False, wlock=None): | |
|
1543 | moddirstate=True, forcemerge=False, wlock=None, show_stats=True): | |
|
1544 | 1544 | pl = self.dirstate.parents() |
|
1545 | 1545 | if not force and pl[1] != nullid: |
|
1546 | 1546 | self.ui.warn(_("aborting: outstanding uncommitted merges\n")) |
@@ -1808,14 +1808,27 b' class localrepository(object):' | |||
|
1808 | 1808 | if moddirstate: |
|
1809 | 1809 | self.dirstate.setparents(p1, p2) |
|
1810 | 1810 | |
|
1811 | stat = ((len(get), _("updated")), | |
|
1812 |
|
|
|
1813 |
(len( |
|
|
1814 |
(len( |
|
|
1815 | note = ", ".join([_("%d files %s") % s for s in stat]) | |
|
1816 | self.ui.note("%s\n" % note) | |
|
1817 | if moddirstate and branch_merge: | |
|
1818 | self.ui.note(_("(branch merge, don't forget to commit)\n")) | |
|
1811 | if show_stats: | |
|
1812 | stats = ((len(get), _("updated")), | |
|
1813 | (len(merge) - len(failedmerge), _("merged")), | |
|
1814 | (len(remove), _("removed")), | |
|
1815 | (len(failedmerge), _("unresolved"))) | |
|
1816 | note = ", ".join([_("%d files %s") % s for s in stats]) | |
|
1817 | self.ui.status("%s\n" % note) | |
|
1818 | if moddirstate: | |
|
1819 | if branch_merge: | |
|
1820 | if failedmerge: | |
|
1821 | self.ui.status(_("There are unresolved merges," | |
|
1822 | " you can redo the full merge using:\n" | |
|
1823 | " hg update -C %s\n" | |
|
1824 | " hg merge %s\n" | |
|
1825 | % (self.changelog.rev(p1), | |
|
1826 | self.changelog.rev(p2)))) | |
|
1827 | else: | |
|
1828 | self.ui.status(_("(branch merge, don't forget to commit)\n")) | |
|
1829 | elif failedmerge: | |
|
1830 | self.ui.status(_("There are unresolved merges with" | |
|
1831 | " locally modified files.\n")) | |
|
1819 | 1832 | |
|
1820 | 1833 | return err |
|
1821 | 1834 |
@@ -16,4 +16,6 b' adding a' | |||
|
16 | 16 | changeset 3:6c77ecc28460 backs out changeset 1:314f55b1bf23 |
|
17 | 17 | merging with changeset 2:b66ea5b77abb |
|
18 | 18 | merging a |
|
19 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
|
20 | (branch merge, don't forget to commit) | |
|
19 | 21 | line 1 |
@@ -1,3 +1,4 b'' | |||
|
1 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
1 | 2 | pulling from ../source |
|
2 | 3 | abort: pretxncommit hook exited with status 1 |
|
3 | 4 | transaction abort! |
@@ -1,3 +1,5 b'' | |||
|
1 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
2 | 1 files updated, 0 files merged, 2 files removed, 0 files unresolved | |
|
1 | 3 | rev offset length base linkrev nodeid p1 p2 |
|
2 | 4 | 0 0 3 0 0 362fef284ce2 000000000000 000000000000 |
|
3 | 5 | 1 3 5 1 1 125144f7e028 362fef284ce2 000000000000 |
@@ -27,6 +29,7 b' adding changesets' | |||
|
27 | 29 | adding manifests |
|
28 | 30 | adding file changes |
|
29 | 31 | added 1 changesets with 1 changes to 1 files |
|
32 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
30 | 33 | checking changesets |
|
31 | 34 | checking manifests |
|
32 | 35 | crosschecking files in changesets and manifests |
@@ -37,6 +40,7 b' adding changesets' | |||
|
37 | 40 | adding manifests |
|
38 | 41 | adding file changes |
|
39 | 42 | added 2 changesets with 2 changes to 1 files |
|
43 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
40 | 44 | checking changesets |
|
41 | 45 | checking manifests |
|
42 | 46 | crosschecking files in changesets and manifests |
@@ -47,6 +51,7 b' adding changesets' | |||
|
47 | 51 | adding manifests |
|
48 | 52 | adding file changes |
|
49 | 53 | added 3 changesets with 3 changes to 1 files |
|
54 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
50 | 55 | checking changesets |
|
51 | 56 | checking manifests |
|
52 | 57 | crosschecking files in changesets and manifests |
@@ -57,6 +62,7 b' adding changesets' | |||
|
57 | 62 | adding manifests |
|
58 | 63 | adding file changes |
|
59 | 64 | added 4 changesets with 4 changes to 1 files |
|
65 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
60 | 66 | checking changesets |
|
61 | 67 | checking manifests |
|
62 | 68 | crosschecking files in changesets and manifests |
@@ -67,6 +73,7 b' adding changesets' | |||
|
67 | 73 | adding manifests |
|
68 | 74 | adding file changes |
|
69 | 75 | added 2 changesets with 2 changes to 1 files |
|
76 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
70 | 77 | checking changesets |
|
71 | 78 | checking manifests |
|
72 | 79 | crosschecking files in changesets and manifests |
@@ -77,6 +84,7 b' adding changesets' | |||
|
77 | 84 | adding manifests |
|
78 | 85 | adding file changes |
|
79 | 86 | added 3 changesets with 3 changes to 1 files |
|
87 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
80 | 88 | checking changesets |
|
81 | 89 | checking manifests |
|
82 | 90 | crosschecking files in changesets and manifests |
@@ -87,6 +95,7 b' adding changesets' | |||
|
87 | 95 | adding manifests |
|
88 | 96 | adding file changes |
|
89 | 97 | added 4 changesets with 5 changes to 2 files |
|
98 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
90 | 99 | checking changesets |
|
91 | 100 | checking manifests |
|
92 | 101 | crosschecking files in changesets and manifests |
@@ -97,6 +106,7 b' adding changesets' | |||
|
97 | 106 | adding manifests |
|
98 | 107 | adding file changes |
|
99 | 108 | added 5 changesets with 6 changes to 3 files |
|
109 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
100 | 110 | checking changesets |
|
101 | 111 | checking manifests |
|
102 | 112 | crosschecking files in changesets and manifests |
@@ -107,6 +117,7 b' adding changesets' | |||
|
107 | 117 | adding manifests |
|
108 | 118 | adding file changes |
|
109 | 119 | added 5 changesets with 5 changes to 2 files |
|
120 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
110 | 121 | checking changesets |
|
111 | 122 | checking manifests |
|
112 | 123 | crosschecking files in changesets and manifests |
@@ -1,3 +1,4 b'' | |||
|
1 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
1 | 2 | a |
|
2 | 3 | checking changesets |
|
3 | 4 | checking manifests |
@@ -10,4 +11,5 b' checking manifests' | |||
|
10 | 11 | crosschecking files in changesets and manifests |
|
11 | 12 | checking files |
|
12 | 13 | 1 files, 1 changesets, 1 total revisions |
|
14 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
13 | 15 | a |
@@ -1,6 +1,11 b'' | |||
|
1 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
1 | 2 | merge: warning: conflicts during merge |
|
2 | 3 | merging a |
|
3 | 4 | merging a failed! |
|
5 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
|
6 | There are unresolved merges, you can redo the full merge using: | |
|
7 | hg update -C 2 | |
|
8 | hg merge 1 | |
|
4 | 9 | e7fe8eb3e180+0d24b7662d3e+ tip |
|
5 | 10 | something else |
|
6 | 11 | ======= |
@@ -6,7 +6,11 b' undeleting a' | |||
|
6 | 6 | forgetting b |
|
7 | 7 | %%% should show b unknown and a back to normal |
|
8 | 8 | ? b |
|
9 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
10 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
9 | 11 | merging a |
|
12 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
|
13 | (branch merge, don't forget to commit) | |
|
10 | 14 | %%% should show foo-b |
|
11 | 15 | foo-b |
|
12 | 16 | %%% should show a removed and b added |
@@ -1,3 +1,4 b'' | |||
|
1 | 1 | 321 |
|
2 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
|
2 | 3 | sub/b not present |
|
3 | 4 | sub not present |
@@ -4,5 +4,6 b'' | |||
|
4 | 4 | this is a test |
|
5 | 5 | %% uncompress our working dir copy |
|
6 | 6 | this is a test |
|
7 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
7 | 8 | %% uncompress our new working dir copy |
|
8 | 9 | this is a test |
@@ -1,3 +1,9 b'' | |||
|
1 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
2 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
3 | (branch merge, don't forget to commit) | |
|
4 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
5 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
6 | (branch merge, don't forget to commit) | |
|
1 | 7 | changeset: 4:f6c172c6198c |
|
2 | 8 | tag: tip |
|
3 | 9 | parent: 1:448a8c5e42f1 |
@@ -1,4 +1,5 b'' | |||
|
1 | 1 | creating base |
|
2 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
2 | 3 | creating branch a |
|
3 | 4 | creating branch b |
|
4 | 5 | we shouldn't have anything but n state here |
@@ -5,6 +5,7 b' adding manifests' | |||
|
5 | 5 | adding file changes |
|
6 | 6 | added 1 changesets with 2 changes to 2 files |
|
7 | 7 | (run 'hg update' to get a working copy) |
|
8 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
8 | 9 | pulling from ../test2 |
|
9 | 10 | searching for changes |
|
10 | 11 | adding changesets |
@@ -3,16 +3,20 b' pretxncommit hook: n=29b62aeb769fdf78d8d' | |||
|
3 | 3 | 0:29b62aeb769f |
|
4 | 4 | commit hook: n=29b62aeb769fdf78d8d9c5f28b017f76d7ef824b p1=0000000000000000000000000000000000000000 p2= |
|
5 | 5 | commit hook b |
|
6 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
6 | 7 | precommit hook: p1=29b62aeb769fdf78d8d9c5f28b017f76d7ef824b p2= |
|
7 | 8 | pretxncommit hook: n=b702efe9688826e3a91283852b328b84dbf37bc2 p1=29b62aeb769fdf78d8d9c5f28b017f76d7ef824b p2= |
|
8 | 9 | 1:b702efe96888 |
|
9 | 10 | commit hook: n=b702efe9688826e3a91283852b328b84dbf37bc2 p1=29b62aeb769fdf78d8d9c5f28b017f76d7ef824b p2= |
|
10 | 11 | commit hook b |
|
12 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
11 | 13 | precommit hook: p1=29b62aeb769fdf78d8d9c5f28b017f76d7ef824b p2= |
|
12 | 14 | pretxncommit hook: n=1324a5531bac09b329c3845d35ae6a7526874edb p1=29b62aeb769fdf78d8d9c5f28b017f76d7ef824b p2= |
|
13 | 15 | 2:1324a5531bac |
|
14 | 16 | commit hook: n=1324a5531bac09b329c3845d35ae6a7526874edb p1=29b62aeb769fdf78d8d9c5f28b017f76d7ef824b p2= |
|
15 | 17 | commit hook b |
|
18 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
19 | (branch merge, don't forget to commit) | |
|
16 | 20 | precommit hook: p1=1324a5531bac09b329c3845d35ae6a7526874edb p2=b702efe9688826e3a91283852b328b84dbf37bc2 |
|
17 | 21 | pretxncommit hook: n=4c52fb2e402287dd5dc052090682536c8406c321 p1=1324a5531bac09b329c3845d35ae6a7526874edb p2=b702efe9688826e3a91283852b328b84dbf37bc2 |
|
18 | 22 | 3:4c52fb2e4022 |
@@ -1,4 +1,5 b'' | |||
|
1 | 1 | adding a |
|
2 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
2 | 3 | adding b |
|
3 | 4 | pushing to ../a |
|
4 | 5 | abort: could not lock repository ../a: Permission denied |
@@ -1,19 +1,24 b'' | |||
|
1 | 1 | 1:016807e6fdaf |
|
2 | 2 | 0:eb43f19ff115 |
|
3 | 3 | 016807e6fdaf tip |
|
4 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
4 | 5 | eb43f19ff115 |
|
5 | 6 | eb43f19ff115+ |
|
6 | 7 | reverting file1 |
|
7 | 8 | ? file1.orig |
|
8 | 9 | eb43f19ff115 |
|
10 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
9 | 11 | ? file1.orig |
|
10 | 12 | 016807e6fdaf tip |
|
13 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
11 | 14 | merging file1 |
|
15 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
|
12 | 16 | ? file1.orig |
|
13 | 17 | 016807e6fdaf tip |
|
14 | 18 | ? file1.orig |
|
15 | 19 | 016807e6fdaf tip |
|
16 | 20 | ? file1.orig |
|
17 | 21 | 016807e6fdaf tip |
|
22 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
18 | 23 | ? file1.orig |
|
19 | 24 | 016807e6fdaf tip |
@@ -1,14 +1,19 b'' | |||
|
1 | 1 | 1:f248da0d4c3e |
|
2 | 2 | 0:9eca13a34789 |
|
3 | 3 | f248da0d4c3e tip |
|
4 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
4 | 5 | 9eca13a34789 |
|
5 | 6 | 9eca13a34789+ |
|
6 | 7 | reverting file1 |
|
7 | 8 | 9eca13a34789 |
|
9 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
8 | 10 | f248da0d4c3e tip |
|
11 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
9 | 12 | merge: warning: conflicts during merge |
|
10 | 13 | merging file1 |
|
11 | 14 | merging file1 failed! |
|
15 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
|
16 | There are unresolved merges with locally modified files. | |
|
12 | 17 | diff -r f248da0d4c3e file1 |
|
13 | 18 | --- a/file1 |
|
14 | 19 | +++ b/file1 |
@@ -25,4 +30,5 b' f248da0d4c3e+ tip' | |||
|
25 | 30 | reverting file1 |
|
26 | 31 | f248da0d4c3e tip |
|
27 | 32 | f248da0d4c3e tip |
|
33 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
28 | 34 | f248da0d4c3e tip |
@@ -1,10 +1,17 b'' | |||
|
1 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
|
1 | 2 | %% no merges expected |
|
3 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
4 | (branch merge, don't forget to commit) | |
|
5 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
|
2 | 6 | %% merge should fail |
|
3 | 7 | abort: 'b' already exists in the working dir and differs from remote |
|
4 | 8 | %% merge of b expected |
|
5 | 9 | merging for b |
|
6 | 10 | merging b |
|
11 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
|
12 | (branch merge, don't forget to commit) | |
|
7 | 13 | %% |
|
14 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
8 | 15 | Contents of b should be "this is file b1" |
|
9 | 16 | This is file b1 |
|
10 | 17 | %% merge fails |
@@ -12,8 +19,13 b' abort: outstanding uncommitted changes' | |||
|
12 | 19 | %% merge expected! |
|
13 | 20 | merging for b |
|
14 | 21 | merging b |
|
22 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
|
23 | (branch merge, don't forget to commit) | |
|
24 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
15 | 25 | %% merge of b should fail |
|
16 | 26 | abort: outstanding uncommitted changes |
|
17 | 27 | %% merge of b expected |
|
18 | 28 | merging for b |
|
19 | 29 | merging b |
|
30 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
|
31 | (branch merge, don't forget to commit) |
@@ -1,2 +1,5 b'' | |||
|
1 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
2 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
1 | 3 | adding b |
|
4 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
2 | 5 | adding b |
@@ -0,0 +1,3 b'' | |||
|
1 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
|
2 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
3 | (branch merge, don't forget to commit) |
@@ -1,3 +1,4 b'' | |||
|
1 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
1 | 2 | removing b |
|
2 | 3 | this update spans a branch affecting the following files: |
|
3 | 4 | b |
@@ -1,3 +1,6 b'' | |||
|
1 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
2 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
3 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
1 | 4 | pulling from ../B1 |
|
2 | 5 | searching for changes |
|
3 | 6 | adding changesets |
@@ -5,6 +8,8 b' adding manifests' | |||
|
5 | 8 | adding file changes |
|
6 | 9 | added 1 changesets with 1 changes to 1 files (+1 heads) |
|
7 | 10 | (run 'hg heads' to see heads, 'hg merge' to merge) |
|
11 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
12 | (branch merge, don't forget to commit) | |
|
8 | 13 | bar should remain deleted. |
|
9 | 14 | f9b0e817f6a48de3564c6b2957687c5e7297c5a0 644 foo |
|
10 | 15 | pulling from ../A2 |
@@ -14,5 +19,7 b' adding manifests' | |||
|
14 | 19 | adding file changes |
|
15 | 20 | added 1 changesets with 0 changes to 0 files (+1 heads) |
|
16 | 21 | (run 'hg heads' to see heads, 'hg merge' to merge) |
|
22 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
|
23 | (branch merge, don't forget to commit) | |
|
17 | 24 | bar should remain deleted. |
|
18 | 25 | f9b0e817f6a48de3564c6b2957687c5e7297c5a0 644 foo |
@@ -1,3 +1,4 b'' | |||
|
1 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
1 | 2 | pulling from ../test-a |
|
2 | 3 | searching for changes |
|
3 | 4 | adding changesets |
@@ -8,6 +9,10 b' added 1 changesets with 1 changes to 1 f' | |||
|
8 | 9 | merge: warning: conflicts during merge |
|
9 | 10 | merging test.txt |
|
10 | 11 | merging test.txt failed! |
|
12 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
|
13 | There are unresolved merges, you can redo the full merge using: | |
|
14 | hg update -C 1 | |
|
15 | hg merge 2 | |
|
11 | 16 | pulling from ../test-a |
|
12 | 17 | searching for changes |
|
13 | 18 | adding changesets |
@@ -25,7 +30,9 b' resolving test.txt' | |||
|
25 | 30 | file test.txt: my fc3148072371 other d40249267ae3 ancestor 8fe46a3eb557 |
|
26 | 31 | merging test.txt failed! |
|
27 | 32 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
28 | (branch merge, don't forget to commit) | |
|
33 | There are unresolved merges, you can redo the full merge using: | |
|
34 | hg update -C 3 | |
|
35 | hg merge 4 | |
|
29 | 36 | one |
|
30 | 37 | <<<<<<< |
|
31 | 38 | two-point-five |
@@ -3,6 +3,7 b' adding changesets' | |||
|
3 | 3 | adding manifests |
|
4 | 4 | adding file changes |
|
5 | 5 | added 1 changesets with 1 changes to 1 files |
|
6 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
6 | 7 | checking changesets |
|
7 | 8 | checking manifests |
|
8 | 9 | crosschecking files in changesets and manifests |
@@ -3,6 +3,7 b' adding changesets' | |||
|
3 | 3 | adding manifests |
|
4 | 4 | adding file changes |
|
5 | 5 | added 1 changesets with 1 changes to 1 files |
|
6 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
6 | 7 | pulling from ../source2 |
|
7 | 8 | pulling from ../source1 |
|
8 | 9 | requesting all changes |
@@ -9,11 +9,13 b' adding changesets' | |||
|
9 | 9 | adding manifests |
|
10 | 10 | adding file changes |
|
11 | 11 | added 1 changesets with 1 changes to 1 files |
|
12 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
12 | 13 | checking changesets |
|
13 | 14 | checking manifests |
|
14 | 15 | crosschecking files in changesets and manifests |
|
15 | 16 | checking files |
|
16 | 17 | 1 files, 1 changesets, 1 total revisions |
|
18 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
17 | 19 | foo |
|
18 | 20 | 2ed2a3912a0b24502043eae84ee4b279c18b90dd 644 foo |
|
19 | 21 | pulling from http://localhost:20059/ |
@@ -1,4 +1,6 b'' | |||
|
1 | 1 | adding foo |
|
2 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
3 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
2 | 4 | pushing to ../2 |
|
3 | 5 | searching for changes |
|
4 | 6 | adding changesets |
@@ -1,3 +1,5 b'' | |||
|
1 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
2 | 1 files updated, 0 files merged, 2 files removed, 0 files unresolved | |
|
1 | 3 | rev offset length base linkrev nodeid p1 p2 |
|
2 | 4 | 0 0 3 0 0 362fef284ce2 000000000000 000000000000 |
|
3 | 5 | 1 3 5 1 1 125144f7e028 362fef284ce2 000000000000 |
@@ -1,3 +1,4 b'' | |||
|
1 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
1 | 2 | pushing to ../a |
|
2 | 3 | searching for changes |
|
3 | 4 | abort: unsynced remote changes! |
@@ -13,6 +14,8 b' pushing to ../a' | |||
|
13 | 14 | searching for changes |
|
14 | 15 | abort: push creates new remote branches! |
|
15 | 16 | (did you forget to merge? use push -f to force) |
|
17 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
18 | (branch merge, don't forget to commit) | |
|
16 | 19 | pushing to ../a |
|
17 | 20 | searching for changes |
|
18 | 21 | adding changesets |
@@ -20,7 +23,12 b' adding manifests' | |||
|
20 | 23 | adding file changes |
|
21 | 24 | added 2 changesets with 1 changes to 1 files |
|
22 | 25 | adding foo |
|
26 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
27 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
28 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
23 | 29 | merging foo |
|
30 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
|
31 | (branch merge, don't forget to commit) | |
|
24 | 32 | pushing to ../c |
|
25 | 33 | searching for changes |
|
26 | 34 | abort: push creates new remote branches! |
@@ -45,3 +45,4 b' diff -r 8ba83d44753d -r a1fce69c50d9 foo' | |||
|
45 | 45 | -a |
|
46 | 46 | |
|
47 | 47 | |
|
48 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
@@ -1,21 +1,27 b'' | |||
|
1 | 1 | # rename a single file |
|
2 | 2 | A d2/c |
|
3 | 3 | R d1/d11/a1 |
|
4 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
|
4 | 5 | # rename --after a single file |
|
5 | 6 | A d2/c |
|
6 | 7 | R d1/d11/a1 |
|
8 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
|
7 | 9 | # move a single file to an existing directory |
|
8 | 10 | A d2/a1 |
|
9 | 11 | R d1/d11/a1 |
|
12 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
|
10 | 13 | # move --after a single file to an existing directory |
|
11 | 14 | A d2/a1 |
|
12 | 15 | R d1/d11/a1 |
|
16 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
|
13 | 17 | # rename a file using a relative path |
|
14 | 18 | A d1/d11/e |
|
15 | 19 | R d2/b |
|
20 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
|
16 | 21 | # rename --after a file using a relative path |
|
17 | 22 | A d1/d11/e |
|
18 | 23 | R d2/b |
|
24 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
|
19 | 25 | # rename directory d1 as d3 |
|
20 | 26 | copying d1/a to d3/a |
|
21 | 27 | copying d1/b to d3/b |
@@ -33,6 +39,7 b' R d1/a' | |||
|
33 | 39 | R d1/b |
|
34 | 40 | R d1/ba |
|
35 | 41 | R d1/d11/a1 |
|
42 | 4 files updated, 0 files merged, 4 files removed, 0 files unresolved | |
|
36 | 43 | # rename --after directory d1 as d3 |
|
37 | 44 | copying d1/a to d3/a |
|
38 | 45 | copying d1/b to d3/b |
@@ -50,21 +57,25 b' R d1/a' | |||
|
50 | 57 | R d1/b |
|
51 | 58 | R d1/ba |
|
52 | 59 | R d1/d11/a1 |
|
60 | 4 files updated, 0 files merged, 4 files removed, 0 files unresolved | |
|
53 | 61 | # move a directory using a relative path |
|
54 | 62 | copying ../d1/d11/a1 to d3/d11/a1 |
|
55 | 63 | removing ../d1/d11/a1 |
|
56 | 64 | A d2/d3/d11/a1 |
|
57 | 65 | R d1/d11/a1 |
|
66 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
|
58 | 67 | # move --after a directory using a relative path |
|
59 | 68 | copying ../d1/d11/a1 to d3/d11/a1 |
|
60 | 69 | removing ../d1/d11/a1 |
|
61 | 70 | A d2/d3/d11/a1 |
|
62 | 71 | R d1/d11/a1 |
|
72 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
|
63 | 73 | # move directory d1/d11 to an existing directory d2 (removes empty d1) |
|
64 | 74 | copying d1/d11/a1 to d2/d11/a1 |
|
65 | 75 | removing d1/d11/a1 |
|
66 | 76 | A d2/d11/a1 |
|
67 | 77 | R d1/d11/a1 |
|
78 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
|
68 | 79 | # move directories d1 and d2 to a new directory d3 |
|
69 | 80 | copying d1/a to d3/d1/a |
|
70 | 81 | copying d1/b to d3/d1/b |
@@ -86,6 +97,7 b' R d1/b' | |||
|
86 | 97 | R d1/ba |
|
87 | 98 | R d1/d11/a1 |
|
88 | 99 | R d2/b |
|
100 | 5 files updated, 0 files merged, 5 files removed, 0 files unresolved | |
|
89 | 101 | # move --after directories d1 and d2 to a new directory d3 |
|
90 | 102 | copying d1/a to d3/d1/a |
|
91 | 103 | copying d1/b to d3/d1/b |
@@ -107,6 +119,7 b' R d1/b' | |||
|
107 | 119 | R d1/ba |
|
108 | 120 | R d1/d11/a1 |
|
109 | 121 | R d2/b |
|
122 | 5 files updated, 0 files merged, 5 files removed, 0 files unresolved | |
|
110 | 123 | # move everything under directory d1 to existing directory d2, do not |
|
111 | 124 | # overwrite existing files (d2/b) |
|
112 | 125 | d2/b: not overwriting - file exists |
@@ -122,6 +135,7 b' 1c1' | |||
|
122 | 135 | < d1/b |
|
123 | 136 | --- |
|
124 | 137 | > d2/b |
|
138 | 3 files updated, 0 files merged, 3 files removed, 0 files unresolved | |
|
125 | 139 | # attempt to move potentially more than one file into a non-existent |
|
126 | 140 | # directory |
|
127 | 141 | abort: with multiple sources, destination must be an existing directory |
@@ -142,6 +156,7 b' R d1/a' | |||
|
142 | 156 | R d1/b |
|
143 | 157 | R d1/ba |
|
144 | 158 | R d1/d11/a1 |
|
159 | 4 files updated, 0 files merged, 4 files removed, 0 files unresolved | |
|
145 | 160 | # move --after some files under d1 to d2/d21 (glob) |
|
146 | 161 | copying d1/a to d2/d21/a |
|
147 | 162 | copying d1/d11/a1 to d2/d21/a1 |
@@ -151,6 +166,7 b' A d2/d21/a' | |||
|
151 | 166 | A d2/d21/a1 |
|
152 | 167 | R d1/a |
|
153 | 168 | R d1/d11/a1 |
|
169 | 2 files updated, 0 files merged, 2 files removed, 0 files unresolved | |
|
154 | 170 | # move every file under d1 starting with an 'a' to d2/d21 (regexp) |
|
155 | 171 | copying d1/a to d2/d21/a |
|
156 | 172 | copying d1/d11/a1 to d2/d21/a1 |
@@ -160,15 +176,19 b' A d2/d21/a' | |||
|
160 | 176 | A d2/d21/a1 |
|
161 | 177 | R d1/a |
|
162 | 178 | R d1/d11/a1 |
|
179 | 2 files updated, 0 files merged, 2 files removed, 0 files unresolved | |
|
163 | 180 | # attempt to overwrite an existing file |
|
164 | 181 | d1/ca: not overwriting - file exists |
|
165 | 182 | ? d1/ca |
|
183 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
166 | 184 | # forced overwrite of an existing file |
|
167 | 185 | A d1/ca |
|
168 | 186 | R d1/ba |
|
187 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
|
169 | 188 | # replace a symlink with a file |
|
170 | 189 | A d1/ca |
|
171 | 190 | R d1/ba |
|
191 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
|
172 | 192 | # do not copy more than one source file to the same destination file |
|
173 | 193 | copying d1/d11/a1 to d3/d11/a1 |
|
174 | 194 | d3/b: not overwriting - d2/b collides with d1/b |
@@ -181,6 +201,7 b' R d1/a' | |||
|
181 | 201 | R d1/b |
|
182 | 202 | R d1/ba |
|
183 | 203 | R d1/d11/a1 |
|
204 | 4 files updated, 0 files merged, 4 files removed, 0 files unresolved | |
|
184 | 205 | # move a whole subtree with "hg rename ." |
|
185 | 206 | copying a to ../d3/d1/a |
|
186 | 207 | copying b to ../d3/d1/b |
@@ -198,6 +219,7 b' R d1/a' | |||
|
198 | 219 | R d1/b |
|
199 | 220 | R d1/ba |
|
200 | 221 | R d1/d11/a1 |
|
222 | 4 files updated, 0 files merged, 4 files removed, 0 files unresolved | |
|
201 | 223 | # move a whole subtree with "hg rename --after ." |
|
202 | 224 | copying a to ../d3/a |
|
203 | 225 | copying b to ../d3/b |
@@ -215,6 +237,7 b' R d1/a' | |||
|
215 | 237 | R d1/b |
|
216 | 238 | R d1/ba |
|
217 | 239 | R d1/d11/a1 |
|
240 | 4 files updated, 0 files merged, 4 files removed, 0 files unresolved | |
|
218 | 241 | # move the parent tree with "hg rename .." |
|
219 | 242 | copying ../a to ../../d3/a |
|
220 | 243 | copying ../b to ../../d3/b |
@@ -232,6 +255,7 b' R d1/a' | |||
|
232 | 255 | R d1/b |
|
233 | 256 | R d1/ba |
|
234 | 257 | R d1/d11/a1 |
|
258 | 4 files updated, 0 files merged, 4 files removed, 0 files unresolved | |
|
235 | 259 | # skip removed files |
|
236 | 260 | copying d1/a to d3/a |
|
237 | 261 | copying d1/ba to d3/ba |
@@ -246,14 +270,18 b' R d1/a' | |||
|
246 | 270 | R d1/b |
|
247 | 271 | R d1/ba |
|
248 | 272 | R d1/d11/a1 |
|
273 | 4 files updated, 0 files merged, 3 files removed, 0 files unresolved | |
|
249 | 274 | # transitive rename |
|
250 | 275 | A d1/bc |
|
251 | 276 | R d1/b |
|
277 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
|
252 | 278 | # transitive rename --after |
|
253 | 279 | A d1/bc |
|
254 | 280 | R d1/b |
|
281 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
|
255 | 282 | # idempotent renames (d1/b -> d1/bb followed by d1/bb -> d1/b) |
|
256 | 283 | M d1/b |
|
284 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
257 | 285 | # check illegal path components |
|
258 | 286 | abort: path contains illegal component: .hg/foo |
|
259 | 287 | |
@@ -261,12 +289,14 b' abort: ../foo not under root' | |||
|
261 | 289 | abort: path contains illegal component: .hg/foo |
|
262 | 290 | |
|
263 | 291 | ! d1/d11/a1 |
|
292 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
264 | 293 | abort: path contains illegal component: .hg/a1 |
|
265 | 294 | |
|
266 | 295 | abort: ../a1 not under root |
|
267 | 296 | abort: path contains illegal component: .hg/a1 |
|
268 | 297 | |
|
269 | 298 | ! d1/d11/a1 |
|
299 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
270 | 300 | abort: path contains illegal component: .hg/foo |
|
271 | 301 | |
|
272 | 302 | abort: ../../../foo not under root |
@@ -28,7 +28,6 b' saving current version of e as e.orig' | |||
|
28 | 28 | reverting e |
|
29 | 29 | resolving manifests |
|
30 | 30 | getting e |
|
31 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
32 | 31 | %% should say no changes needed |
|
33 | 32 | no changes needed to a |
|
34 | 33 | %% should say file not managed |
@@ -45,6 +44,7 b' forgetting z' | |||
|
45 | 44 | forgetting a |
|
46 | 45 | %% should silently add a |
|
47 | 46 | A a |
|
47 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
|
48 | 48 | reverting c |
|
49 | 49 | %% should print non-executable |
|
50 | 50 | non-executable |
@@ -1,1 +1,3 b'' | |||
|
1 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
2 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
1 | 3 | abort: Permission denied - test-ro-message/b/vehicle |
@@ -4,6 +4,8 b' checking manifests' | |||
|
4 | 4 | crosschecking files in changesets and manifests |
|
5 | 5 | checking files |
|
6 | 6 | 1 files, 1 changesets, 1 total revisions |
|
7 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
8 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
7 | 9 | pulling from ../branch |
|
8 | 10 | searching for changes |
|
9 | 11 | adding changesets |
@@ -16,6 +18,7 b' checking manifests' | |||
|
16 | 18 | crosschecking files in changesets and manifests |
|
17 | 19 | checking files |
|
18 | 20 | 1 files, 2 changesets, 2 total revisions |
|
21 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
19 | 22 | foo |
|
20 | 23 | bar |
|
21 | 24 | 6f4310b00b9a147241b071a60c28a650827fb03d 644 foo |
@@ -5,6 +5,7 b' adding changesets' | |||
|
5 | 5 | adding manifests |
|
6 | 6 | adding file changes |
|
7 | 7 | added 1 changesets with 1 changes to 1 files |
|
8 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
8 | 9 | # verify |
|
9 | 10 | checking changesets |
|
10 | 11 | checking manifests |
@@ -12,6 +12,7 b' adding changesets' | |||
|
12 | 12 | adding manifests |
|
13 | 13 | adding file changes |
|
14 | 14 | added 1 changesets with 1 changes to 1 files |
|
15 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
15 | 16 | checking changesets |
|
16 | 17 | checking manifests |
|
17 | 18 | crosschecking files in changesets and manifests |
@@ -1,4 +1,5 b'' | |||
|
1 | 1 | unknown |
|
2 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
2 | 3 | 0acdaf898367 tip |
|
3 | 4 | 0acdaf8983679e0aac16e811534eb49d7ee1f2b4 first |
|
4 | 5 | tip 1:8a3ca90d111dc784e6575d373105be12570e8776 |
@@ -6,10 +7,13 b' first 0:0ac' | |||
|
6 | 7 | 8a3ca90d111d tip |
|
7 | 8 | M a |
|
8 | 9 | 8a3ca90d111d+ tip |
|
10 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
|
9 | 11 | 0acdaf898367+ first |
|
10 | 12 | 0acdaf8983679e0aac16e811534eb49d7ee1f2b4+ first |
|
11 | 13 | M a |
|
12 | 14 | 8216907a933d tip |
|
15 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
16 | (branch merge, don't forget to commit) | |
|
13 | 17 | 8216907a933d+8a3ca90d111d+ tip |
|
14 | 18 | M .hgtags |
|
15 | 19 | .hgtags:2: ignoring invalid tag |
@@ -1,4 +1,6 b'' | |||
|
1 | 1 | adding a |
|
2 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
3 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
2 | 4 | diff -r 33aaa84a386b a |
|
3 | 5 | --- a/a |
|
4 | 6 | +++ b/a |
@@ -85,6 +87,7 b' diff -r 802f095af299 a' | |||
|
85 | 87 | @@ -1,1 +1,1 @@ a2 |
|
86 | 88 | -a2 |
|
87 | 89 | +abc |
|
90 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
|
88 | 91 | adding b |
|
89 | 92 | M a |
|
90 | 93 | changeset: 1:802f095af299 |
@@ -143,3 +146,4 b' adding changesets' | |||
|
143 | 146 | adding manifests |
|
144 | 147 | adding file changes |
|
145 | 148 | added 1 changesets with 1 changes to 1 files |
|
149 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
General Comments 0
You need to be logged in to leave comments.
Login now