Show More
@@ -1,23 +1,24 b'' | |||
|
1 | 1 | + mkdir t |
|
2 | 2 | + cd t |
|
3 | 3 | + hg init |
|
4 | 4 | + echo a |
|
5 | 5 | + hg add a |
|
6 | 6 | + hg commit -t test -u test -d '0 0' |
|
7 | 7 | + hg history |
|
8 | 8 | changeset: 0:acb14030fe0a21b60322c440ad2d20cf7685a376 |
|
9 | 9 | tag: tip |
|
10 | 10 | user: test |
|
11 | 11 | date: Thu Jan 1 00:00:00 1970 |
|
12 | 12 | summary: test |
|
13 | 13 | |
|
14 | ||
|
14 | 15 | + hg manifest |
|
15 | 16 | b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 644 a |
|
16 | 17 | + hg cat a |
|
17 | 18 | a |
|
18 | 19 | + hg verify |
|
19 | 20 | checking changesets |
|
20 | 21 | checking manifests |
|
21 | 22 | crosschecking files in changesets and manifests |
|
22 | 23 | checking files |
|
23 | 24 | 1 files, 1 changesets, 1 total revisions |
@@ -1,52 +1,55 b'' | |||
|
1 | 1 | + hg init |
|
2 | 2 | + echo a |
|
3 | 3 | + hg add a |
|
4 | 4 | + hg commit -t 1 -u test -d '0 0' |
|
5 | 5 | + hg status |
|
6 | 6 | ? .out |
|
7 | 7 | + cp a b |
|
8 | 8 | + hg copy a b |
|
9 | 9 | + hg status |
|
10 | 10 | A b |
|
11 | 11 | ? .out |
|
12 | 12 | + hg --debug commit -t 2 -u test -d '0 0' |
|
13 | 13 | b |
|
14 | 14 | b: copy a:b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 |
|
15 | 15 | + hg history |
|
16 | 16 | changeset: 1:3b5b84850bbed12e8ff8c1b87b32dc93c59ae6d8 |
|
17 | 17 | tag: tip |
|
18 | 18 | user: test |
|
19 | 19 | date: Thu Jan 1 00:00:00 1970 |
|
20 | 20 | summary: 2 |
|
21 | 21 | |
|
22 | ||
|
22 | 23 | changeset: 0:c19d34741b0a4ced8e4ba74bb834597d5193851e |
|
23 | 24 | user: test |
|
24 | 25 | date: Thu Jan 1 00:00:00 1970 |
|
25 | 26 | summary: 1 |
|
26 | 27 | |
|
28 | ||
|
27 | 29 | + hg log a |
|
28 | 30 | revision: 0:b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 |
|
29 | 31 | changeset: 0:c19d34741b0a4ced8e4ba74bb834597d5193851e |
|
30 | 32 | user: test |
|
31 | 33 | date: Thu Jan 1 00:00:00 1970 |
|
32 | 34 | summary: 1 |
|
33 | 35 | |
|
36 | ||
|
34 | 37 | + hexdump -C .hg/data/b.d |
|
35 | 38 | 00000000 75 01 0a 63 6f 70 79 72 65 76 3a 20 62 37 38 39 |u..copyrev: b789| |
|
36 | 39 | 00000010 66 64 64 39 36 64 63 32 66 33 62 64 32 32 39 63 |fdd96dc2f3bd229c| |
|
37 | 40 | 00000020 31 64 64 38 65 65 64 66 30 66 63 36 30 65 32 62 |1dd8eedf0fc60e2b| |
|
38 | 41 | 00000030 36 38 65 33 0a 63 6f 70 79 3a 20 61 0a 01 0a 61 |68e3.copy: a...a| |
|
39 | 42 | 00000040 0a |.| |
|
40 | 43 | 00000041 |
|
41 | 44 | + hg cat b |
|
42 | 45 | + md5sum bsum |
|
43 | 46 | 60b725f10c9c85c70d97880dfe8191b3 bsum |
|
44 | 47 | + hg cat a |
|
45 | 48 | + md5sum asum |
|
46 | 49 | 60b725f10c9c85c70d97880dfe8191b3 asum |
|
47 | 50 | + hg verify |
|
48 | 51 | checking changesets |
|
49 | 52 | checking manifests |
|
50 | 53 | crosschecking files in changesets and manifests |
|
51 | 54 | checking files |
|
52 | 55 | 2 files, 2 changesets, 2 total revisions |
@@ -1,72 +1,75 b'' | |||
|
1 | 1 | + umask 027 |
|
2 | 2 | + mkdir test1 |
|
3 | 3 | + cd test1 |
|
4 | 4 | + hg init |
|
5 | 5 | + touch a b |
|
6 | 6 | + hg add a b |
|
7 | 7 | + hg ci -t 'added a b' -u test -d '0 0' |
|
8 | 8 | + cd .. |
|
9 | 9 | + mkdir test2 |
|
10 | 10 | + cd test2 |
|
11 | 11 | + hg init |
|
12 | 12 | + hg pull ../test1 |
|
13 | 13 | pulling from ../test1 |
|
14 | 14 | requesting all changes |
|
15 | 15 | adding changesets |
|
16 | 16 | adding manifests |
|
17 | 17 | adding file revisions |
|
18 | 18 | modified 2 files, added 1 changesets and 2 new revisions |
|
19 | 19 | (run 'hg update' to get a working copy) |
|
20 | 20 | + hg co |
|
21 | 21 | + chmod +x a |
|
22 | 22 | + hg ci -t 'chmod +x a' -u test -d '0 0' |
|
23 | 23 | + cd ../test1 |
|
24 | 24 | + echo 123 |
|
25 | 25 | + hg ci -t 'a updated' -u test -d '0 0' |
|
26 | 26 | + hg pull ../test2 |
|
27 | 27 | pulling from ../test2 |
|
28 | 28 | searching for changes |
|
29 | 29 | adding changesets |
|
30 | 30 | adding manifests |
|
31 | 31 | adding file revisions |
|
32 | 32 | modified 1 files, added 1 changesets and 1 new revisions |
|
33 | 33 | (run 'hg update' to get a working copy) |
|
34 | 34 | + hg heads |
|
35 | 35 | changeset: 2:3ef54330565526bebf37a0d9bf540c283fd133a1 |
|
36 | 36 | tag: tip |
|
37 | 37 | parent: 0:22a449e20da501ca558394c083ca470e9c81b9f7 |
|
38 | 38 | user: test |
|
39 | 39 | date: Thu Jan 1 00:00:00 1970 |
|
40 | 40 | summary: chmod +x a |
|
41 | 41 | |
|
42 | 42 | changeset: 1:c6ecefc45368ed556d965f1c1086c6561a8b2ac5 |
|
43 | 43 | user: test |
|
44 | 44 | date: Thu Jan 1 00:00:00 1970 |
|
45 | 45 | summary: a updated |
|
46 | 46 | |
|
47 | 47 | + hg history |
|
48 | 48 | changeset: 2:3ef54330565526bebf37a0d9bf540c283fd133a1 |
|
49 | 49 | tag: tip |
|
50 | 50 | parent: 0:22a449e20da501ca558394c083ca470e9c81b9f7 |
|
51 | 51 | user: test |
|
52 | 52 | date: Thu Jan 1 00:00:00 1970 |
|
53 | 53 | summary: chmod +x a |
|
54 | 54 | |
|
55 | ||
|
55 | 56 | changeset: 1:c6ecefc45368ed556d965f1c1086c6561a8b2ac5 |
|
56 | 57 | user: test |
|
57 | 58 | date: Thu Jan 1 00:00:00 1970 |
|
58 | 59 | summary: a updated |
|
59 | 60 | |
|
61 | ||
|
60 | 62 | changeset: 0:22a449e20da501ca558394c083ca470e9c81b9f7 |
|
61 | 63 | user: test |
|
62 | 64 | date: Thu Jan 1 00:00:00 1970 |
|
63 | 65 | summary: added a b |
|
64 | 66 | |
|
67 | ||
|
65 | 68 | + hg -v co -m |
|
66 | 69 | resolving manifests |
|
67 | 70 | merging a |
|
68 | 71 | resolving a |
|
69 | 72 | + ls -l ../test1/a ../test2/a |
|
70 | 73 | + cut -b 0-10 |
|
71 | 74 | -rwxr-x--- |
|
72 | 75 | -rwxr-x--- |
|
1 | NO CONTENT: modified file chmod 100644 => 100755 |
@@ -1,21 +1,21 b'' | |||
|
1 | 1 | #!/bin/sh |
|
2 | 2 | |
|
3 | 3 | mkdir test |
|
4 | 4 | cd test |
|
5 | 5 | echo foo>foo |
|
6 | 6 | hg init |
|
7 | 7 | hg addremove |
|
8 | 8 | hg commit -t "1" |
|
9 | 9 | hg verify |
|
10 |
hg serve -p 20059 |
|
|
10 | hg serve -p 20059 >/dev/null 2>&1 & | |
|
11 | 11 | cd .. |
|
12 | 12 | |
|
13 | 13 | hg clone http://localhost:20059/ copy |
|
14 | 14 | cd copy |
|
15 | 15 | hg verify |
|
16 | 16 | hg co |
|
17 | 17 | cat foo |
|
18 | 18 | hg manifest |
|
19 | 19 | hg pull |
|
20 | 20 | |
|
21 | 21 | kill $! |
@@ -1,31 +1,34 b'' | |||
|
1 | 1 | + hg init |
|
2 | 2 | + echo a |
|
3 | 3 | + hg add a |
|
4 | 4 | + hg commit -t test -u test -d '0 0' |
|
5 | 5 | + hg history |
|
6 | 6 | changeset: 0:acb14030fe0a21b60322c440ad2d20cf7685a376 |
|
7 | 7 | tag: tip |
|
8 | 8 | user: test |
|
9 | 9 | date: Thu Jan 1 00:00:00 1970 |
|
10 | 10 | summary: test |
|
11 | 11 | |
|
12 | ||
|
12 | 13 | + hg tag -u test -d '0 0' bleah |
|
13 | 14 | + hg history |
|
14 | 15 | changeset: 1:863197ef03781c4fc00276d83eb66c4cb9cd91df |
|
15 | 16 | tag: tip |
|
16 | 17 | user: test |
|
17 | 18 | date: Thu Jan 1 00:00:00 1970 |
|
18 | 19 | summary: Added tag bleah for changeset acb14030fe0a21b60322c440ad2d20cf7685a376 |
|
19 | 20 | |
|
21 | ||
|
20 | 22 | changeset: 0:acb14030fe0a21b60322c440ad2d20cf7685a376 |
|
21 | 23 | tag: bleah |
|
22 | 24 | user: test |
|
23 | 25 | date: Thu Jan 1 00:00:00 1970 |
|
24 | 26 | summary: test |
|
25 | 27 | |
|
28 | ||
|
26 | 29 | + echo foo |
|
27 | 30 | + hg tag -u test -d '0 0' bleah2 |
|
28 | 31 | abort: working copy of .hgtags is changed! |
|
29 | 32 | (please commit .hgtags manually) |
|
30 | 33 | + echo failed |
|
31 | 34 | failed |
@@ -1,74 +1,76 b'' | |||
|
1 | 1 | + mkdir r1 |
|
2 | 2 | + cd r1 |
|
3 | 3 | + hg init |
|
4 | 4 | + echo a |
|
5 | 5 | + hg addremove |
|
6 | 6 | + hg commit -t 1 -u test -d '0 0' |
|
7 | 7 | + hg clone . ../r2 |
|
8 | 8 | + cd ../r2 |
|
9 | 9 | + hg up |
|
10 | 10 | + echo abc |
|
11 | 11 | + hg diff |
|
12 | 12 | + sed 's/\(\(---\|+++\).*\)\t.*/\1/' |
|
13 | 13 | diff -r c19d34741b0a a |
|
14 | 14 | --- a/a |
|
15 | 15 | +++ b/a |
|
16 | 16 | @@ -1,1 +1,1 @@ |
|
17 | 17 | -a |
|
18 | 18 | +abc |
|
19 | 19 | + cd ../r1 |
|
20 | 20 | + echo b |
|
21 | 21 | + echo a2 |
|
22 | 22 | + hg addremove |
|
23 | 23 | + hg commit -t 2 -u test -d '0 0' |
|
24 | 24 | + cd ../r2 |
|
25 | 25 | + hg -q pull ../r1 |
|
26 | 26 | + hg status |
|
27 | 27 | C a |
|
28 | 28 | + hg --debug up |
|
29 | 29 | resolving manifests |
|
30 | 30 | ancestor a0c8bcbbb45c local a0c8bcbbb45c remote 1165e8bd193e |
|
31 | 31 | a versions differ, resolve |
|
32 | 32 | remote created b |
|
33 | 33 | getting b |
|
34 | 34 | merging a |
|
35 | 35 | resolving a |
|
36 | 36 | file a: other d730145abbf9 ancestor b789fdd96dc2 |
|
37 | 37 | + hg --debug up -m |
|
38 | 38 | resolving manifests |
|
39 | 39 | ancestor 1165e8bd193e local 1165e8bd193e remote 1165e8bd193e |
|
40 | 40 | + hg parents |
|
41 | 41 | changeset: 1:1e71731e6fbb5b35fae293120dea6964371c13c6 |
|
42 | 42 | tag: tip |
|
43 | 43 | user: test |
|
44 | 44 | date: Thu Jan 1 00:00:00 1970 |
|
45 | 45 | summary: 2 |
|
46 | 46 | |
|
47 | 47 | + hg -v history |
|
48 | 48 | changeset: 1:1e71731e6fbb5b35fae293120dea6964371c13c6 |
|
49 | 49 | tag: tip |
|
50 | 50 | manifest: 1:1165e8bd193e17ad7d321d846fcf27ff3f412758 |
|
51 | 51 | user: test |
|
52 | 52 | date: Thu Jan 1 00:00:00 1970 |
|
53 | 53 | files: a b |
|
54 | 54 | description: |
|
55 | 55 | 2 |
|
56 | 56 | |
|
57 | 57 | |
|
58 | ||
|
58 | 59 | changeset: 0:c19d34741b0a4ced8e4ba74bb834597d5193851e |
|
59 | 60 | manifest: 0:a0c8bcbbb45c63b90b70ad007bf38961f64f2af0 |
|
60 | 61 | user: test |
|
61 | 62 | date: Thu Jan 1 00:00:00 1970 |
|
62 | 63 | files: a |
|
63 | 64 | description: |
|
64 | 65 | 1 |
|
65 | 66 | |
|
66 | 67 | |
|
68 | ||
|
67 | 69 | + hg diff |
|
68 | 70 | + sed 's/\(\(---\|+++\).*\)\t.*/\1/' |
|
69 | 71 | diff -r 1e71731e6fbb a |
|
70 | 72 | --- a/a |
|
71 | 73 | +++ b/a |
|
72 | 74 | @@ -1,1 +1,1 @@ |
|
73 | 75 | -a2 |
|
74 | 76 | +abc |
General Comments 0
You need to be logged in to leave comments.
Login now