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