##// END OF EJS Templates
run-tests: remove '+ hg' trick...
mpm@selenic.com -
r925:5a034646 default
parent child Browse files
Show More
@@ -1,131 +1,124 b''
1 #!/bin/sh -e
1 #!/bin/sh -e
2
2
3 LANG="C"; export LANG
3 LANG="C"; export LANG
4 LC_CTYPE="C"; export LC_CTYPE
4 LC_CTYPE="C"; export LC_CTYPE
5 LC_NUMERIC="C"; export LC_NUMERIC
5 LC_NUMERIC="C"; export LC_NUMERIC
6 LC_TIME="C"; export LC_TIME
6 LC_TIME="C"; export LC_TIME
7 LC_COLLATE="C"; export LC_COLLATE
7 LC_COLLATE="C"; export LC_COLLATE
8 LC_MONETARY="C"; export LC_MONETARY
8 LC_MONETARY="C"; export LC_MONETARY
9 LC_MESSAGES="C"; export LC_MESSAGES
9 LC_MESSAGES="C"; export LC_MESSAGES
10 LC_PAPER="C"; export LC_PAPER
10 LC_PAPER="C"; export LC_PAPER
11 LC_NAME="C"; export LC_NAME
11 LC_NAME="C"; export LC_NAME
12 LC_ADDRESS="C"; export LC_ADDRESS
12 LC_ADDRESS="C"; export LC_ADDRESS
13 LC_TELEPHONE="C"; export LC_TELEPHONE
13 LC_TELEPHONE="C"; export LC_TELEPHONE
14 LC_MEASUREMENT="C"; export LC_MEASUREMENT
14 LC_MEASUREMENT="C"; export LC_MEASUREMENT
15 LC_IDENTIFICATION="C"; export LC_IDENTIFICATION
15 LC_IDENTIFICATION="C"; export LC_IDENTIFICATION
16 LC_ALL=""; export LC_ALL
16 LC_ALL=""; export LC_ALL
17 TZ=GMT; export TZ
17 TZ=GMT; export TZ
18 HGEDITOR=true; export HGEDITOR
18 HGEDITOR=true; export HGEDITOR
19 HGMERGE=true; export HGMERGE
19 HGMERGE=true; export HGMERGE
20 HGUSER="test"; export HGUSER
20 HGUSER="test"; export HGUSER
21
21
22 umask 022
22 umask 022
23
23
24 tests=0
24 tests=0
25 failed=0
25 failed=0
26
26
27 HGTMP=""
27 HGTMP=""
28 cleanup_exit() {
28 cleanup_exit() {
29 rm -rf "$HGTMP"
29 rm -rf "$HGTMP"
30 }
30 }
31
31
32 # Remove temporary files even if we get interrupted
32 # Remove temporary files even if we get interrupted
33 trap "cleanup_exit" 0 # normal exit
33 trap "cleanup_exit" 0 # normal exit
34 trap "exit 255" 1 2 3 6 15 # HUP INT QUIT ABRT TERM
34 trap "exit 255" 1 2 3 6 15 # HUP INT QUIT ABRT TERM
35
35
36 HGTMP="${TMPDIR-/tmp}/hgtests.$RANDOM.$RANDOM.$RANDOM.$$"
36 HGTMP="${TMPDIR-/tmp}/hgtests.$RANDOM.$RANDOM.$RANDOM.$$"
37 (umask 077 && mkdir "$HGTMP") || {
37 (umask 077 && mkdir "$HGTMP") || {
38 echo "Could not create temporary directory! Exiting." 1>&2
38 echo "Could not create temporary directory! Exiting." 1>&2
39 exit 1
39 exit 1
40 }
40 }
41
41
42 TESTDIR="$PWD"
42 TESTDIR="$PWD"
43
43
44 if [ -d /usr/lib64 ]; then
44 if [ -d /usr/lib64 ]; then
45 lib=lib64
45 lib=lib64
46 else
46 else
47 lib=lib
47 lib=lib
48 fi
48 fi
49
49
50 INST="$HGTMP/install"
50 INST="$HGTMP/install"
51 cd ..
51 cd ..
52 if ${PYTHON-python} setup.py install --home="$INST" > tests/install.err 2>&1
52 if ${PYTHON-python} setup.py install --home="$INST" > tests/install.err 2>&1
53 then
53 then
54 rm tests/install.err
54 rm tests/install.err
55 mv "$INST/bin/hg" "$INST/bin/hg.real"
56 (
57 echo '#!/bin/sh'
58 echo 'echo "+ hg $@"'
59 echo 'exec hg.real "$@"'
60 ) > "$INST/bin/hg"
61 chmod 755 "$INST/bin/hg"
62 else
55 else
63 cat tests/install.err
56 cat tests/install.err
64 exit 1
57 exit 1
65 fi
58 fi
66 cd "$TESTDIR"
59 cd "$TESTDIR"
67
60
68 PATH="$INST/bin:$PATH"; export PATH
61 PATH="$INST/bin:$PATH"; export PATH
69 PYTHONPATH="$INST/$lib/python"; export PYTHONPATH
62 PYTHONPATH="$INST/$lib/python"; export PYTHONPATH
70
63
71
64
72 run_one() {
65 run_one() {
73 rm -f "$1.err"
66 rm -f "$1.err"
74
67
75 mkdir "$HGTMP/$1"
68 mkdir "$HGTMP/$1"
76 cd "$HGTMP/$1"
69 cd "$HGTMP/$1"
77 fail=0
70 fail=0
78 HOME="$HGTMP/$1"; export HOME
71 HOME="$HGTMP/$1"; export HOME
79 OUT="$HGTMP/$1.out"
72 OUT="$HGTMP/$1.out"
80 OUTOK="$TESTDIR/$1.out"
73 OUTOK="$TESTDIR/$1.out"
81 ERR="$TESTDIR/$1.err"
74 ERR="$TESTDIR/$1.err"
82
75
83 if "$TESTDIR/$1" > "$OUT" 2>&1; then
76 if "$TESTDIR/$1" > "$OUT" 2>&1; then
84 : no error
77 : no error
85 else
78 else
86 echo "$1 failed with error code $?"
79 echo "$1 failed with error code $?"
87 fail=1
80 fail=1
88 fi
81 fi
89
82
90 if [ -s "$OUT" -a ! -s "$OUTOK" ] ; then
83 if [ -s "$OUT" -a ! -s "$OUTOK" ] ; then
91 cp "$OUT" "$ERR"
84 cp "$OUT" "$ERR"
92 echo
85 echo
93 echo "$1 generated unexpected output:"
86 echo "$1 generated unexpected output:"
94 cat "$ERR"
87 cat "$ERR"
95 fail=1
88 fail=1
96 elif [ -r "$OUTOK" ]; then
89 elif [ -r "$OUTOK" ]; then
97 if diff -u "$OUTOK" "$OUT" > /dev/null; then
90 if diff -u "$OUTOK" "$OUT" > /dev/null; then
98 : no differences
91 : no differences
99 else
92 else
100 cp "$OUT" "$ERR"
93 cp "$OUT" "$ERR"
101 echo
94 echo
102 echo "$1 output changed:"
95 echo "$1 output changed:"
103 diff -u "$OUTOK" "$ERR" || true
96 diff -u "$OUTOK" "$ERR" || true
104 fail=1
97 fail=1
105 fi
98 fi
106 fi
99 fi
107
100
108 cd "$TESTDIR"
101 cd "$TESTDIR"
109 rm -f "$HGTMP/$1.out"
102 rm -f "$HGTMP/$1.out"
110 rm -rf "$HGTMP/$1"
103 rm -rf "$HGTMP/$1"
111 return $fail
104 return $fail
112 }
105 }
113
106
114 TESTS="$*"
107 TESTS="$*"
115 if [ -z "$TESTS" ] ; then
108 if [ -z "$TESTS" ] ; then
116 TESTS=`ls test-* | grep -v "[.~]"`
109 TESTS=`ls test-* | grep -v "[.~]"`
117 fi
110 fi
118
111
119 for f in $TESTS ; do
112 for f in $TESTS ; do
120 echo -n "."
113 echo -n "."
121 run_one $f || failed=`expr $failed + 1`
114 run_one $f || failed=`expr $failed + 1`
122 tests=`expr $tests + 1`
115 tests=`expr $tests + 1`
123 done
116 done
124
117
125 echo
118 echo
126 echo "Ran $tests tests, $failed failed."
119 echo "Ran $tests tests, $failed failed."
127
120
128 if [ $failed -gt 0 ] ; then
121 if [ $failed -gt 0 ] ; then
129 exit 1
122 exit 1
130 fi
123 fi
131 exit 0
124 exit 0
@@ -1,8 +1,2 b''
1 + hg init
2 + hg add a
3 + hg commit -m commit #0 -d 0 0
4 a
1 a
5 + hg add b
6 + hg commit -m commit #1 -d 0 0
7 + hg co 0
8 a
2 a
@@ -1,9 +1,7 b''
1 + hg clone http://localhost:20059/ copy
2 requesting all changes
1 requesting all changes
3 abort: error: Connection refused
2 abort: error: Connection refused
4 255
3 255
5 ls: copy: No such file or directory
4 ls: copy: No such file or directory
6 + hg clone http://localhost:20059/foo copy2
7 requesting all changes
5 requesting all changes
8 abort: HTTP Error 404: File not found
6 abort: HTTP Error 404: File not found
9 255
7 255
@@ -1,20 +1,13 b''
1 + hg init
2 + hg add a
3 + hg commit -m test -d 0 0
4 + hg history
5 changeset: 0:acb14030fe0a
1 changeset: 0:acb14030fe0a
6 tag: tip
2 tag: tip
7 user: test
3 user: test
8 date: Thu Jan 1 00:00:00 1970
4 date: Thu Jan 1 00:00:00 1970
9 summary: test
5 summary: test
10
6
11 + hg manifest
12 b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 644 a
7 b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 644 a
13 + hg cat a
14 a
8 a
15 + hg verify
16 checking changesets
9 checking changesets
17 checking manifests
10 checking manifests
18 crosschecking files in changesets and manifests
11 crosschecking files in changesets and manifests
19 checking files
12 checking files
20 1 files, 1 changesets, 1 total revisions
13 1 files, 1 changesets, 1 total revisions
@@ -1,20 +1,12 b''
1 + hg clone a b
2 abort: repository a/.hg not found!
1 abort: repository a/.hg not found!
3 255
2 255
4 + hg clone http://127.0.0.1:3121/a b
5 requesting all changes
3 requesting all changes
6 abort: error: Connection refused
4 abort: error: Connection refused
7 255
5 255
8 + hg clone a b
9 abort: repository a/.hg not found!
6 abort: repository a/.hg not found!
10 255
7 255
11 + hg init
12 + hg clone . ../a
13 abort: destination '../a' already exists
8 abort: destination '../a' already exists
14 1
9 1
15 + hg clone a b
16 abort: repository a/.hg not found!
10 abort: repository a/.hg not found!
17 255
11 255
18 + hg init
19 + hg clone q
20 abort: destination 'q' already exists
12 abort: destination 'q' already exists
@@ -1,22 +1,13 b''
1 + hg init
2 + hg add a
3 + hg commit -m test -d 0 0
4 + hg clone . ../b
5 a
1 a
6 + hg verify
7 checking changesets
2 checking changesets
8 checking manifests
3 checking manifests
9 crosschecking files in changesets and manifests
4 crosschecking files in changesets and manifests
10 checking files
5 checking files
11 1 files, 1 changesets, 1 total revisions
6 1 files, 1 changesets, 1 total revisions
12 + hg clone -U . ../c
13 cat: a: No such file or directory
7 cat: a: No such file or directory
14 + hg verify
15 checking changesets
8 checking changesets
16 checking manifests
9 checking manifests
17 crosschecking files in changesets and manifests
10 crosschecking files in changesets and manifests
18 checking files
11 checking files
19 1 files, 1 changesets, 1 total revisions
12 1 files, 1 changesets, 1 total revisions
20 + hg clone ../a
21 + hg cat a
22 a
13 a
@@ -1,17 +1,8 b''
1 + hg init
2 + hg add a
3 + hg commit -m ancestor -d 0 0
4 + hg commit -m branch1 -d 0 0
5 + hg co 0
6 + hg commit -m branch2 -d 0 0
7 + hg up -m 1
8 merge: warning: conflicts during merge
1 merge: warning: conflicts during merge
9 merging a
2 merging a
10 merging a failed!
3 merging a failed!
11 + hg id
12 32e80765d7fe+75234512624c+ tip
4 32e80765d7fe+75234512624c+ tip
13 something else
5 something else
14 =======
6 =======
15 something
7 something
16 + hg status
17 M a
8 M a
@@ -1,37 +1,27 b''
1 + hg init
2 + hg add a
3 + hg commit -m 1 -d 0 0
4 + hg status
5 + hg copy a b
6 + hg status
7 A b
1 A b
8 + hg --debug commit -m 2 -d 0 0
9 b
2 b
10 b: copy a:b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3
3 b: copy a:b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3
11 + hg history
12 changeset: 1:3b5b84850bbe
4 changeset: 1:3b5b84850bbe
13 tag: tip
5 tag: tip
14 user: test
6 user: test
15 date: Thu Jan 1 00:00:00 1970
7 date: Thu Jan 1 00:00:00 1970
16 summary: 2
8 summary: 2
17
9
18 changeset: 0:c19d34741b0a
10 changeset: 0:c19d34741b0a
19 user: test
11 user: test
20 date: Thu Jan 1 00:00:00 1970
12 date: Thu Jan 1 00:00:00 1970
21 summary: 1
13 summary: 1
22
14
23 + hg log a
24 changeset: 0:c19d34741b0a
15 changeset: 0:c19d34741b0a
25 user: test
16 user: test
26 date: Thu Jan 1 00:00:00 1970
17 date: Thu Jan 1 00:00:00 1970
27 summary: 1
18 summary: 1
28
19
29 566e338d09a089ba737c21e0d3759980 .hg/data/b.d
20 566e338d09a089ba737c21e0d3759980 .hg/data/b.d
30 3268d2f51b2d2d423ff01b59eb6fbb14 bsum
21 60b725f10c9c85c70d97880dfe8191b3 bsum
31 70909ca2ecf494c71e9184b445e040ee asum
22 60b725f10c9c85c70d97880dfe8191b3 asum
32 + hg verify
33 checking changesets
23 checking changesets
34 checking manifests
24 checking manifests
35 crosschecking files in changesets and manifests
25 crosschecking files in changesets and manifests
36 checking files
26 checking files
37 2 files, 2 changesets, 2 total revisions
27 2 files, 2 changesets, 2 total revisions
@@ -1,16 +1,10 b''
1 + hg init
2 + hg add a
3 + hg ci -m a -d 0 0
4 + hg add b
5 + hg diff
6 diff -r 3903775176ed b
1 diff -r 3903775176ed b
7 --- /dev/null
2 --- /dev/null
8 +++ b/b
3 +++ b/b
9 @@ -0,0 +1,1 @@
4 @@ -0,0 +1,1 @@
10 +123
5 +123
11 + hg diff -r tip
12 diff -r 3903775176ed b
6 diff -r 3903775176ed b
13 --- /dev/null
7 --- /dev/null
14 +++ b/b
8 +++ b/b
15 @@ -0,0 +1,1 @@
9 @@ -0,0 +1,1 @@
16 +123
10 +123
@@ -1,9 +1,3 b''
1 + hg init
2 + hg add a
3 + hg commit -m first -d 0 0 a
4 + hg add sub/b
5 + hg commit -m second -d 0 0 sub/b
6 321
1 321
7 + hg co 0
8 cat: sub/b: No such file or directory
2 cat: sub/b: No such file or directory
9 ls: sub: No such file or directory
3 ls: sub: No such file or directory
@@ -1,60 +1,48 b''
1 + hg init
2 + hg add a b
3 + hg ci -m added a b -d 0 0
4 + hg init
5 + hg pull ../test1
6 pulling from ../test1
1 pulling from ../test1
7 requesting all changes
2 requesting all changes
8 adding changesets
3 adding changesets
9 adding manifests
4 adding manifests
10 adding file changes
5 adding file changes
11 added 1 changesets with 2 changes to 2 files
6 added 1 changesets with 2 changes to 2 files
12 (run 'hg update' to get a working copy)
7 (run 'hg update' to get a working copy)
13 + hg co
14 + hg ci -m chmod +x a -d 0 0
15 + hg ci -m a updated -d 0 0
16 + hg pull ../test2
17 pulling from ../test2
8 pulling from ../test2
18 searching for changes
9 searching for changes
19 adding changesets
10 adding changesets
20 adding manifests
11 adding manifests
21 adding file changes
12 adding file changes
22 added 1 changesets with 1 changes to 1 files
13 added 1 changesets with 1 changes to 1 files
23 (run 'hg update' to get a working copy)
14 (run 'hg update' to get a working copy)
24 + hg heads
25 changeset: 2:3ef543305655
15 changeset: 2:3ef543305655
26 tag: tip
16 tag: tip
27 parent: 0:22a449e20da5
17 parent: 0:22a449e20da5
28 user: test
18 user: test
29 date: Thu Jan 1 00:00:00 1970
19 date: Thu Jan 1 00:00:00 1970
30 summary: chmod +x a
20 summary: chmod +x a
31
21
32 changeset: 1:c6ecefc45368
22 changeset: 1:c6ecefc45368
33 user: test
23 user: test
34 date: Thu Jan 1 00:00:00 1970
24 date: Thu Jan 1 00:00:00 1970
35 summary: a updated
25 summary: a updated
36
26
37 + hg history
38 changeset: 2:3ef543305655
27 changeset: 2:3ef543305655
39 tag: tip
28 tag: tip
40 parent: 0:22a449e20da5
29 parent: 0:22a449e20da5
41 user: test
30 user: test
42 date: Thu Jan 1 00:00:00 1970
31 date: Thu Jan 1 00:00:00 1970
43 summary: chmod +x a
32 summary: chmod +x a
44
33
45 changeset: 1:c6ecefc45368
34 changeset: 1:c6ecefc45368
46 user: test
35 user: test
47 date: Thu Jan 1 00:00:00 1970
36 date: Thu Jan 1 00:00:00 1970
48 summary: a updated
37 summary: a updated
49
38
50 changeset: 0:22a449e20da5
39 changeset: 0:22a449e20da5
51 user: test
40 user: test
52 date: Thu Jan 1 00:00:00 1970
41 date: Thu Jan 1 00:00:00 1970
53 summary: added a b
42 summary: added a b
54
43
55 + hg -v co -m
56 resolving manifests
44 resolving manifests
57 merging a
45 merging a
58 resolving a
46 resolving a
59 -rwxr-x---
47 -rwxr-x---
60 -rwxr-x---
48 -rwxr-x---
@@ -1,221 +1,212 b''
1 + hg
2 Mercurial Distributed SCM
1 Mercurial Distributed SCM
3
2
4 basic commands (use "hg help" for the full list or option "-v" for details):
3 basic commands (use "hg help" for the full list or option "-v" for details):
5
4
6 add add the specified files on the next commit
5 add add the specified files on the next commit
7 annotate show changeset information per file line
6 annotate show changeset information per file line
8 clone make a copy of an existing repository
7 clone make a copy of an existing repository
9 commit commit the specified files or all outstanding changes
8 commit commit the specified files or all outstanding changes
10 diff diff working directory (or selected files)
9 diff diff working directory (or selected files)
11 export dump the header and diffs for one or more changesets
10 export dump the header and diffs for one or more changesets
12 init create a new repository in the given directory
11 init create a new repository in the given directory
13 log show the revision history of the repository or a single file
12 log show the revision history of the repository or a single file
14 pull pull changes from the specified source
13 pull pull changes from the specified source
15 push push changes to the specified destination
14 push push changes to the specified destination
16 remove remove the specified files on the next commit
15 remove remove the specified files on the next commit
17 revert revert modified files or dirs back to their unmodified states
16 revert revert modified files or dirs back to their unmodified states
18 serve export the repository via HTTP
17 serve export the repository via HTTP
19 status show changed files in the working directory
18 status show changed files in the working directory
20 update update or merge working directory
19 update update or merge working directory
21 + hg -q
22 add add the specified files on the next commit
20 add add the specified files on the next commit
23 annotate show changeset information per file line
21 annotate show changeset information per file line
24 clone make a copy of an existing repository
22 clone make a copy of an existing repository
25 commit commit the specified files or all outstanding changes
23 commit commit the specified files or all outstanding changes
26 diff diff working directory (or selected files)
24 diff diff working directory (or selected files)
27 export dump the header and diffs for one or more changesets
25 export dump the header and diffs for one or more changesets
28 init create a new repository in the given directory
26 init create a new repository in the given directory
29 log show the revision history of the repository or a single file
27 log show the revision history of the repository or a single file
30 pull pull changes from the specified source
28 pull pull changes from the specified source
31 push push changes to the specified destination
29 push push changes to the specified destination
32 remove remove the specified files on the next commit
30 remove remove the specified files on the next commit
33 revert revert modified files or dirs back to their unmodified states
31 revert revert modified files or dirs back to their unmodified states
34 serve export the repository via HTTP
32 serve export the repository via HTTP
35 status show changed files in the working directory
33 status show changed files in the working directory
36 update update or merge working directory
34 update update or merge working directory
37 + hg help
38 Mercurial Distributed SCM
35 Mercurial Distributed SCM
39
36
40 list of commands (use "hg help -v" to show aliases and global options):
37 list of commands (use "hg help -v" to show aliases and global options):
41
38
42 add add the specified files on the next commit
39 add add the specified files on the next commit
43 addremove add all new files, delete all missing files
40 addremove add all new files, delete all missing files
44 annotate show changeset information per file line
41 annotate show changeset information per file line
45 cat output the latest or given revision of a file
42 cat output the latest or given revision of a file
46 clone make a copy of an existing repository
43 clone make a copy of an existing repository
47 commit commit the specified files or all outstanding changes
44 commit commit the specified files or all outstanding changes
48 copy mark a file as copied or renamed for the next commit
45 copy mark a file as copied or renamed for the next commit
49 diff diff working directory (or selected files)
46 diff diff working directory (or selected files)
50 export dump the header and diffs for one or more changesets
47 export dump the header and diffs for one or more changesets
51 forget don't add the specified files on the next commit
48 forget don't add the specified files on the next commit
52 heads show current repository heads
49 heads show current repository heads
53 help show help for a given command or all commands
50 help show help for a given command or all commands
54 identify print information about the working copy
51 identify print information about the working copy
55 import import an ordered set of patches
52 import import an ordered set of patches
56 init create a new repository in the given directory
53 init create a new repository in the given directory
57 locate locate files matching specific patterns
54 locate locate files matching specific patterns
58 log show the revision history of the repository or a single file
55 log show the revision history of the repository or a single file
59 manifest output the latest or given revision of the project manifest
56 manifest output the latest or given revision of the project manifest
57 outgoing show changesets not found in destination
60 parents show the parents of the working dir or revision
58 parents show the parents of the working dir or revision
61 paths show path or list of available paths
59 paths show definition of symbolic path names
62 pull pull changes from the specified source
60 pull pull changes from the specified source
63 push push changes to the specified destination
61 push push changes to the specified destination
64 rawcommit raw commit interface
62 rawcommit raw commit interface
65 recover roll back an interrupted transaction
63 recover roll back an interrupted transaction
66 remove remove the specified files on the next commit
64 remove remove the specified files on the next commit
67 revert revert modified files or dirs back to their unmodified states
65 revert revert modified files or dirs back to their unmodified states
68 root print the root (top) of the current working dir
66 root print the root (top) of the current working dir
69 serve export the repository via HTTP
67 serve export the repository via HTTP
70 status show changed files in the working directory
68 status show changed files in the working directory
71 tag add a tag for the current tip or a given revision
69 tag add a tag for the current tip or a given revision
72 tags list repository tags
70 tags list repository tags
73 tip show the tip revision
71 tip show the tip revision
74 undo undo the last commit or pull
72 undo undo the last commit or pull
75 update update or merge working directory
73 update update or merge working directory
76 verify verify the integrity of the repository
74 verify verify the integrity of the repository
77 version output version and copyright information
75 version output version and copyright information
78 + hg -q help
79 add add the specified files on the next commit
76 add add the specified files on the next commit
80 addremove add all new files, delete all missing files
77 addremove add all new files, delete all missing files
81 annotate show changeset information per file line
78 annotate show changeset information per file line
82 cat output the latest or given revision of a file
79 cat output the latest or given revision of a file
83 clone make a copy of an existing repository
80 clone make a copy of an existing repository
84 commit commit the specified files or all outstanding changes
81 commit commit the specified files or all outstanding changes
85 copy mark a file as copied or renamed for the next commit
82 copy mark a file as copied or renamed for the next commit
86 diff diff working directory (or selected files)
83 diff diff working directory (or selected files)
87 export dump the header and diffs for one or more changesets
84 export dump the header and diffs for one or more changesets
88 forget don't add the specified files on the next commit
85 forget don't add the specified files on the next commit
89 heads show current repository heads
86 heads show current repository heads
90 help show help for a given command or all commands
87 help show help for a given command or all commands
91 identify print information about the working copy
88 identify print information about the working copy
92 import import an ordered set of patches
89 import import an ordered set of patches
93 init create a new repository in the given directory
90 init create a new repository in the given directory
94 locate locate files matching specific patterns
91 locate locate files matching specific patterns
95 log show the revision history of the repository or a single file
92 log show the revision history of the repository or a single file
96 manifest output the latest or given revision of the project manifest
93 manifest output the latest or given revision of the project manifest
94 outgoing show changesets not found in destination
97 parents show the parents of the working dir or revision
95 parents show the parents of the working dir or revision
98 paths show path or list of available paths
96 paths show definition of symbolic path names
99 pull pull changes from the specified source
97 pull pull changes from the specified source
100 push push changes to the specified destination
98 push push changes to the specified destination
101 rawcommit raw commit interface
99 rawcommit raw commit interface
102 recover roll back an interrupted transaction
100 recover roll back an interrupted transaction
103 remove remove the specified files on the next commit
101 remove remove the specified files on the next commit
104 revert revert modified files or dirs back to their unmodified states
102 revert revert modified files or dirs back to their unmodified states
105 root print the root (top) of the current working dir
103 root print the root (top) of the current working dir
106 serve export the repository via HTTP
104 serve export the repository via HTTP
107 status show changed files in the working directory
105 status show changed files in the working directory
108 tag add a tag for the current tip or a given revision
106 tag add a tag for the current tip or a given revision
109 tags list repository tags
107 tags list repository tags
110 tip show the tip revision
108 tip show the tip revision
111 undo undo the last commit or pull
109 undo undo the last commit or pull
112 update update or merge working directory
110 update update or merge working directory
113 verify verify the integrity of the repository
111 verify verify the integrity of the repository
114 version output version and copyright information
112 version output version and copyright information
115 + hg add -h
116 hg add: option -h not recognized
113 hg add: option -h not recognized
117 hg add [OPTION]... [FILE]...
114 hg add [OPTION]... [FILE]...
118
115
119 add the specified files on the next commit
116 add the specified files on the next commit
120
117
121 options:
118 options:
122
119
123 -I --include
120 -I --include
124 include path in search
121 include path in search
125 -X --exclude
122 -X --exclude
126 exclude path from search
123 exclude path from search
127 + hg add --skjdfks
128 hg add: option --skjdfks not recognized
124 hg add: option --skjdfks not recognized
129 hg add [OPTION]... [FILE]...
125 hg add [OPTION]... [FILE]...
130
126
131 add the specified files on the next commit
127 add the specified files on the next commit
132
128
133 options:
129 options:
134
130
135 -I --include
131 -I --include
136 include path in search
132 include path in search
137 -X --exclude
133 -X --exclude
138 exclude path from search
134 exclude path from search
139 + hg help diff
140 hg diff [-I] [-X] [-r REV1 [-r REV2]] [FILE]...
135 hg diff [-I] [-X] [-r REV1 [-r REV2]] [FILE]...
141
136
142 diff working directory (or selected files)
137 diff working directory (or selected files)
143
138
144 options:
139 options:
145
140
146 -r --rev
141 -r --rev
147 revision
142 revision
148 -I --include
143 -I --include
149 include path in search
144 include path in search
150 -X --exclude
145 -X --exclude
151 exclude path from search
146 exclude path from search
152 + hg help status
153 hg status [OPTION]... [FILE]...
147 hg status [OPTION]... [FILE]...
154
148
155 show changed files in the working directory
149 show changed files in the working directory
156
150
157 M = modified
151 M = modified
158 A = added
152 A = added
159 R = removed
153 R = removed
160 ? = not tracked
154 ? = not tracked
161
155
162 options:
156 options:
163
157
164 -m --modified
158 -m --modified
165 show only modified files
159 show only modified files
166 -a --added
160 -a --added
167 show only added files
161 show only added files
168 -r --removed
162 -r --removed
169 show only removed files
163 show only removed files
170 -u --unknown
164 -u --unknown
171 show only unknown (not tracked) files
165 show only unknown (not tracked) files
172 -I --include
166 -I --include
173 include path in search
167 include path in search
174 -X --exclude
168 -X --exclude
175 exclude path from search
169 exclude path from search
176 + hg -q help status
177 hg status [OPTION]... [FILE]...
170 hg status [OPTION]... [FILE]...
178
171
179 show changed files in the working directory
172 show changed files in the working directory
180 + hg help foo
181 hg: unknown command 'foo'
173 hg: unknown command 'foo'
182 Mercurial Distributed SCM
174 Mercurial Distributed SCM
183
175
184 basic commands (use "hg help" for the full list or option "-v" for details):
176 basic commands (use "hg help" for the full list or option "-v" for details):
185
177
186 add add the specified files on the next commit
178 add add the specified files on the next commit
187 annotate show changeset information per file line
179 annotate show changeset information per file line
188 clone make a copy of an existing repository
180 clone make a copy of an existing repository
189 commit commit the specified files or all outstanding changes
181 commit commit the specified files or all outstanding changes
190 diff diff working directory (or selected files)
182 diff diff working directory (or selected files)
191 export dump the header and diffs for one or more changesets
183 export dump the header and diffs for one or more changesets
192 init create a new repository in the given directory
184 init create a new repository in the given directory
193 log show the revision history of the repository or a single file
185 log show the revision history of the repository or a single file
194 pull pull changes from the specified source
186 pull pull changes from the specified source
195 push push changes to the specified destination
187 push push changes to the specified destination
196 remove remove the specified files on the next commit
188 remove remove the specified files on the next commit
197 revert revert modified files or dirs back to their unmodified states
189 revert revert modified files or dirs back to their unmodified states
198 serve export the repository via HTTP
190 serve export the repository via HTTP
199 status show changed files in the working directory
191 status show changed files in the working directory
200 update update or merge working directory
192 update update or merge working directory
201 + hg skjdfks
202 hg: unknown command 'skjdfks'
193 hg: unknown command 'skjdfks'
203 Mercurial Distributed SCM
194 Mercurial Distributed SCM
204
195
205 basic commands (use "hg help" for the full list or option "-v" for details):
196 basic commands (use "hg help" for the full list or option "-v" for details):
206
197
207 add add the specified files on the next commit
198 add add the specified files on the next commit
208 annotate show changeset information per file line
199 annotate show changeset information per file line
209 clone make a copy of an existing repository
200 clone make a copy of an existing repository
210 commit commit the specified files or all outstanding changes
201 commit commit the specified files or all outstanding changes
211 diff diff working directory (or selected files)
202 diff diff working directory (or selected files)
212 export dump the header and diffs for one or more changesets
203 export dump the header and diffs for one or more changesets
213 init create a new repository in the given directory
204 init create a new repository in the given directory
214 log show the revision history of the repository or a single file
205 log show the revision history of the repository or a single file
215 pull pull changes from the specified source
206 pull pull changes from the specified source
216 push push changes to the specified destination
207 push push changes to the specified destination
217 remove remove the specified files on the next commit
208 remove remove the specified files on the next commit
218 revert revert modified files or dirs back to their unmodified states
209 revert revert modified files or dirs back to their unmodified states
219 serve export the repository via HTTP
210 serve export the repository via HTTP
220 status show changed files in the working directory
211 status show changed files in the working directory
221 update update or merge working directory
212 update update or merge working directory
@@ -1,5 +1,2 b''
1 + hg init
2 + hg add a
3 + hg commit -m test -d 0 0
4 precommit hook
1 precommit hook
5 commit hook: acb14030fe0a21b60322c440ad2d20cf7685a376
2 commit hook: acb14030fe0a21b60322c440ad2d20cf7685a376
@@ -1,12 +1,10 b''
1 + hg init
2 + hg serve --stdio
3 0
1 0
4 0
2 0
5 adding changesets
3 adding changesets
6 killed!
4 killed!
7 transaction abort!
5 transaction abort!
8 rollback completed
6 rollback completed
9 00changelog.d
7 00changelog.d
10 00changelog.i
8 00changelog.i
11 data
9 data
12 journal.dirstate
10 journal.dirstate
@@ -1,46 +1,12 b''
1 + hg init
1 1:3aa14bbc23d9
2 + hg add file1 file2
2 0:8633637036c1
3 + hg commit -m added file1 and file2 -d 0 0 -u user
4 + hg commit -m changed file1 -d 0 0 -u user
5 + hg -q log
6 1:3aa14bbc23d90e3f8b5b639b4a43d76509bae76c
7 0:8633637036c18f021d771208e16ae3508ab81d28
8 + hg id
9 3aa14bbc23d9 tip
3 3aa14bbc23d9 tip
10 + hg update -C 0
11 + hg id
12 8633637036c1
4 8633637036c1
13 + hg id
14 8633637036c1+
5 8633637036c1+
15 + hg revert
16 + hg diff
17 + hg status
18 + hg id
19 8633637036c1
6 8633637036c1
20 + hg update
21 + hg diff
22 + hg status
23 + hg id
24 3aa14bbc23d9 tip
7 3aa14bbc23d9 tip
25 + hg update -C 0
26 + hg update
27 merging file1
8 merging file1
28 + hg diff
29 + hg status
30 + hg id
31 3aa14bbc23d9 tip
9 3aa14bbc23d9 tip
32 + hg revert
10 3aa14bbc23d9 tip
33 + hg diff
34 + hg status
35 + hg id
36 3aa14bbc23d9 tip
11 3aa14bbc23d9 tip
37 + hg revert -r tip
38 + hg diff
39 + hg status
40 + hg id
41 3aa14bbc23d9 tip
12 3aa14bbc23d9 tip
42 + hg update -C
43 + hg diff
44 + hg status
45 + hg id
46 3aa14bbc23d9 tip
@@ -1,60 +1,26 b''
1 + hg init
1 1:f4d7a8c73d23
2 + hg add file1 file2
2 0:232e179b3f29
3 + hg commit -m added file1 and file2 -d 0 0 -u user
4 + hg commit -m changed file1 -d 0 0 -u user
5 + hg -q log
6 1:f4d7a8c73d231bc078e2a5e791325e55e8a4c252
7 0:232e179b3f294d467cfa66e1439bc5b0d44e4a93
8 + hg id
9 f4d7a8c73d23 tip
3 f4d7a8c73d23 tip
10 + hg update -C 0
11 + hg id
12 232e179b3f29
4 232e179b3f29
13 + hg id
14 232e179b3f29+
5 232e179b3f29+
15 + hg revert
16 + hg diff
17 + hg status
18 + hg id
19 232e179b3f29
6 232e179b3f29
20 + hg update
21 + hg diff
22 + hg status
23 + hg id
24 f4d7a8c73d23 tip
7 f4d7a8c73d23 tip
25 + hg update -C 0
26 + hg update
27 merge: warning: conflicts during merge
8 merge: warning: conflicts during merge
28 merging file1
9 merging file1
29 merging file1 failed!
10 merging file1 failed!
30 + hg diff
31 diff -r f4d7a8c73d23 file1
11 diff -r f4d7a8c73d23 file1
32 --- a/file1
12 --- a/file1
33 +++ b/file1
13 +++ b/file1
34 @@ -1,3 +1,7 @@
14 @@ -1,3 +1,7 @@
35 added file1
15 added file1
36 another line of text
16 another line of text
37 +<<<<<<<
17 +<<<<<<<
38 +changed file1 different
18 +changed file1 different
39 +=======
19 +=======
40 changed file1
20 changed file1
41 +>>>>>>>
21 +>>>>>>>
42 + hg status
43 M file1
22 M file1
44 + hg id
45 f4d7a8c73d23+ tip
23 f4d7a8c73d23+ tip
46 + hg revert
47 + hg diff
48 + hg status
49 + hg id
50 f4d7a8c73d23 tip
24 f4d7a8c73d23 tip
51 + hg revert -r tip
52 + hg diff
53 + hg status
54 + hg id
55 f4d7a8c73d23 tip
25 f4d7a8c73d23 tip
56 + hg update -C
57 + hg diff
58 + hg status
59 + hg id
60 f4d7a8c73d23 tip
26 f4d7a8c73d23 tip
@@ -1,45 +1,7 b''
1 + hg init
2 + hg add a
3 + hg commit -m commit #0 -d 0 0
4 + hg add b
5 + hg commit -m commit #1 -d 0 0
6 + hg update 0
7 + hg add c
8 + hg commit -m commit #2 -d 0 0
9 + hg update -m 1
10 + hg init
11 + hg add a
12 + hg commit -m commit #0 -d 0 0
13 + hg add b
14 + hg commit -m commit #1 -d 0 0
15 + hg update 0
16 + hg add c
17 + hg commit -m commit #2 -d 0 0
18 + hg update -m 1
19 merging for b
1 merging for b
20 merging b
2 merging b
21 + hg init
22 + hg add a
23 + hg commit -m commit #0 -d 0 0
24 + hg add b
25 + hg commit -m commit #1 -d 0 0
26 + hg commit -m commit #2 -d 0 0
27 + hg update 1
28 + hg add c
29 + hg commit -m commit #3 -d 0 0
30 This is file b1
3 This is file b1
31 + hg update -m 2
32 merging for b
4 merging for b
33 merging b
5 merging b
34 + hg init
35 + hg add a
36 + hg commit -m commit #0 -d 0 0
37 + hg add b
38 + hg commit -m commit #1 -d 0 0
39 + hg commit -m commit #2 -d 0 0
40 + hg update 1
41 + hg add c
42 + hg commit -m commit #3 -d 0 0
43 + hg update -m 2
44 merging for b
6 merging for b
45 merging b
7 merging b
@@ -1,25 +1,2 b''
1 + hg init
2 + hg add a
3 + hg commit -m commit #0 -d 0 0
4 + hg add b
5 + hg commit -m commit #1 -d 0 0
6 + hg update 0
7 + hg add b
8 + hg commit -m commit #2 -d 0 0
9 + hg init
10 + hg add a
11 + hg commit -m commit #0 -d 0 0
12 + hg add b
13 + hg commit -m commit #1 -d 0 0
14 + hg update 0
15 + hg commit -A -m commit #2 -d 0 0
16 adding b
1 adding b
17 + hg init
18 + hg add a
19 + hg commit -m commit #0 -d 0 0
20 + hg add b
21 + hg commit -m commit #1 -d 0 0
22 + hg remove b
23 + hg update 0
24 + hg commit -A -m commit #2 -d 0 0
25 adding b
2 adding b
@@ -1,8 +1,3 b''
1 + hg init
2 + hg add a
3 + hg commit -m commit #0 -d 0 0
4 + hg add b
5 + hg commit -A -mcomment #1 -d 0 0
6 removing b
1 removing b
7 b never committed!
2 b never committed!
8 nothing changed
3 nothing changed
@@ -1,10 +0,0 b''
1 + hg init
2 + hg add a
3 + hg commit -m commit #0 -d 0 0
4 + hg add b
5 + hg commit -m commit #1 -d 0 0
6 + hg update 0
7 + hg add c
8 + hg commit -m commit #2 -d 0 0
9 + hg update -m 1
10 + hg commit -m commit #3 -d 0 0
@@ -1,12 +1,5 b''
1 + hg init
2 + hg add a b
3 + hg commit -m commit #0 -d 0 0
4 + hg commit -mcomment #1 -d 0 0
5 + hg update 0
6 + hg commit -A -mcomment #2 -d 0 0
7 removing b
1 removing b
8 + hg update 1
9 this update spans a branch affecting the following files:
2 this update spans a branch affecting the following files:
10 b
3 b
11 aborting update spanning branches!
4 aborting update spanning branches!
12 (use update -m to merge across branches or -C to lose changes)
5 (use update -m to merge across branches or -C to lose changes)
@@ -1,35 +1,18 b''
1 + hg init
2 + hg add foo bar
3 + hg commit -m commit text -d 0 0
4 + hg clone A1 B1
5 + hg remove bar
6 + hg commit -m commit test -d 0 0
7 + hg commit -m commit test -d 0 0
8 + hg clone A1 A2
9 + hg clone B1 B2
10 + hg pull ../B1
11 pulling from ../B1
1 pulling from ../B1
12 searching for changes
2 searching for changes
13 adding changesets
3 adding changesets
14 adding manifests
4 adding manifests
15 adding file changes
5 adding file changes
16 added 1 changesets with 1 changes to 1 files
6 added 1 changesets with 1 changes to 1 files
17 (run 'hg update' to get a working copy)
7 (run 'hg update' to get a working copy)
18 + hg update -m
19 + hg commit -m commit test -d 0 0
20 bar should remain deleted.
8 bar should remain deleted.
21 + hg manifest
22 6b70e9e451a5a33faad7bbebe627e46b937b7364 644 foo
9 6b70e9e451a5a33faad7bbebe627e46b937b7364 644 foo
23 + hg pull ../A2
24 pulling from ../A2
10 pulling from ../A2
25 searching for changes
11 searching for changes
26 adding changesets
12 adding changesets
27 adding manifests
13 adding manifests
28 adding file changes
14 adding file changes
29 added 1 changesets with 0 changes to 0 files
15 added 1 changesets with 0 changes to 0 files
30 (run 'hg update' to get a working copy)
16 (run 'hg update' to get a working copy)
31 + hg update -m
32 + hg commit -m commit test -d 0 0
33 bar should remain deleted.
17 bar should remain deleted.
34 + hg manifest
35 6b70e9e451a5a33faad7bbebe627e46b937b7364 644 foo
18 6b70e9e451a5a33faad7bbebe627e46b937b7364 644 foo
@@ -1,9 +1,6 b''
1 + hg init
2 Is there an error message when trying to diff non-existing files?
1 Is there an error message when trying to diff non-existing files?
3 + hg diff not found
4 not: No such file or directory
2 not: No such file or directory
5 found: No such file or directory
3 found: No such file or directory
6 Is there an error message when trying to add non-existing files?
4 Is there an error message when trying to add non-existing files?
7 + hg add not found
8 not: No such file or directory
5 not: No such file or directory
9 found: No such file or directory
6 found: No such file or directory
@@ -1,31 +1,22 b''
1 + hg init
2 + hg addremove
3 adding foo
1 adding foo
4 + hg commit -m 1
5 + hg verify
6 checking changesets
2 checking changesets
7 checking manifests
3 checking manifests
8 crosschecking files in changesets and manifests
4 crosschecking files in changesets and manifests
9 checking files
5 checking files
10 1 files, 1 changesets, 1 total revisions
6 1 files, 1 changesets, 1 total revisions
11 + hg clone http://localhost:20059/ copy
12 requesting all changes
7 requesting all changes
13 adding changesets
8 adding changesets
14 adding manifests
9 adding manifests
15 adding file changes
10 adding file changes
16 added 1 changesets with 1 changes to 1 files
11 added 1 changesets with 1 changes to 1 files
17 + hg verify
18 checking changesets
12 checking changesets
19 checking manifests
13 checking manifests
20 crosschecking files in changesets and manifests
14 crosschecking files in changesets and manifests
21 checking files
15 checking files
22 1 files, 1 changesets, 1 total revisions
16 1 files, 1 changesets, 1 total revisions
23 + hg co
24 foo
17 foo
25 + hg manifest
26 2ed2a3912a0b24502043eae84ee4b279c18b90dd 644 foo
18 2ed2a3912a0b24502043eae84ee4b279c18b90dd 644 foo
27 + hg pull
28 pulling from http://localhost:20059/
19 pulling from http://localhost:20059/
29 searching for changes
20 searching for changes
30 no changes found
21 no changes found
31 killed!
22 killed!
@@ -1,35 +1,21 b''
1 + hg init
2 + hg add t1
3 + hg commit -m 1 -d 0 0
4 + hg clone a b
5 + hg add t2
6 + hg commit -m 2 -d 0 0
7 + hg add t3
8 + hg commit -m 3 -d 0 0
9 + hg push ../a
10 pushing to ../a
1 pushing to ../a
11 searching for changes
2 searching for changes
12 abort: unsynced remote changes!
3 abort: unsynced remote changes!
13 (did you forget to sync? use push -f to force)
4 (did you forget to sync? use push -f to force)
14 + hg pull ../a
15 pulling from ../a
5 pulling from ../a
16 searching for changes
6 searching for changes
17 adding changesets
7 adding changesets
18 adding manifests
8 adding manifests
19 adding file changes
9 adding file changes
20 added 1 changesets with 1 changes to 1 files
10 added 1 changesets with 1 changes to 1 files
21 (run 'hg update' to get a working copy)
11 (run 'hg update' to get a working copy)
22 + hg push ../a
23 pushing to ../a
12 pushing to ../a
24 searching for changes
13 searching for changes
25 abort: push creates new remote branches!
14 abort: push creates new remote branches!
26 (did you forget to merge? use push -f to force)
15 (did you forget to merge? use push -f to force)
27 + hg up -m
28 + hg commit -m 4 -d 0 0
29 + hg push ../a
30 pushing to ../a
16 pushing to ../a
31 searching for changes
17 searching for changes
32 adding changesets
18 adding changesets
33 adding manifests
19 adding manifests
34 adding file changes
20 adding file changes
35 added 2 changesets with 2 changes to 2 files
21 added 2 changesets with 2 changes to 2 files
@@ -1,77 +1,53 b''
1 + hg --debug init
2 + hg add a
3 + hg commit -m0 -d 0 0
4 + hg add b
5 + hg commit -m1 -d 0 0
6 + hg manifest 1
7 05f9e54f4c9b86b09099803d8b49a50edcb4eaab 644 a
1 05f9e54f4c9b86b09099803d8b49a50edcb4eaab 644 a
8 54837d97f2932a8194e69745a280a2c11e61ff9c 644 b
2 54837d97f2932a8194e69745a280a2c11e61ff9c 644 b
9 + hg rawcommit -p 1 -d 0 0 -m2 c
10 + hg manifest 2
11 05f9e54f4c9b86b09099803d8b49a50edcb4eaab 644 a
3 05f9e54f4c9b86b09099803d8b49a50edcb4eaab 644 a
12 54837d97f2932a8194e69745a280a2c11e61ff9c 644 b
4 54837d97f2932a8194e69745a280a2c11e61ff9c 644 b
13 76d5e637cbec1bcc04a5a3fa4bcc7d13f6847c00 644 c
5 76d5e637cbec1bcc04a5a3fa4bcc7d13f6847c00 644 c
14 + hg parents
15 changeset: 2:9f827976dae4
6 changeset: 2:9f827976dae4
16 tag: tip
7 tag: tip
17 user: test
8 user: test
18 date: Thu Jan 1 00:00:00 1970
9 date: Thu Jan 1 00:00:00 1970
19 summary: 2
10 summary: 2
20
11
21 + hg rawcommit -p 2 -d 0 0 -m3 b
22 + hg manifest 3
23 05f9e54f4c9b86b09099803d8b49a50edcb4eaab 644 a
12 05f9e54f4c9b86b09099803d8b49a50edcb4eaab 644 a
24 76d5e637cbec1bcc04a5a3fa4bcc7d13f6847c00 644 c
13 76d5e637cbec1bcc04a5a3fa4bcc7d13f6847c00 644 c
25 + hg parents
26 changeset: 3:c8225a106186
14 changeset: 3:c8225a106186
27 tag: tip
15 tag: tip
28 user: test
16 user: test
29 date: Thu Jan 1 00:00:00 1970
17 date: Thu Jan 1 00:00:00 1970
30 summary: 3
18 summary: 3
31
19
32 + hg rawcommit -p 3 -d 0 0 -m4 a
33 + hg manifest 4
34 d6e3c4976c13feb1728cd3ac851abaf7256a5c23 644 a
20 d6e3c4976c13feb1728cd3ac851abaf7256a5c23 644 a
35 76d5e637cbec1bcc04a5a3fa4bcc7d13f6847c00 644 c
21 76d5e637cbec1bcc04a5a3fa4bcc7d13f6847c00 644 c
36 + hg parents
37 changeset: 4:8dfeee82a94b
22 changeset: 4:8dfeee82a94b
38 tag: tip
23 tag: tip
39 user: test
24 user: test
40 date: Thu Jan 1 00:00:00 1970
25 date: Thu Jan 1 00:00:00 1970
41 summary: 4
26 summary: 4
42
27
43 + hg rawcommit -p 1 -d 0 0 -m5 c
44 + hg manifest 5
45 05f9e54f4c9b86b09099803d8b49a50edcb4eaab 644 a
28 05f9e54f4c9b86b09099803d8b49a50edcb4eaab 644 a
46 54837d97f2932a8194e69745a280a2c11e61ff9c 644 b
29 54837d97f2932a8194e69745a280a2c11e61ff9c 644 b
47 3570202ceac2b52517df64ebd0a062cb0d8fe33a 644 c
30 3570202ceac2b52517df64ebd0a062cb0d8fe33a 644 c
48 + hg parents
49 changeset: 4:8dfeee82a94b
31 changeset: 4:8dfeee82a94b
50 user: test
32 user: test
51 date: Thu Jan 1 00:00:00 1970
33 date: Thu Jan 1 00:00:00 1970
52 summary: 4
34 summary: 4
53
35
54 + hg rawcommit -p 4 -p 5 -d 0 0 -m6
55 + hg manifest 6
56 d6e3c4976c13feb1728cd3ac851abaf7256a5c23 644 a
36 d6e3c4976c13feb1728cd3ac851abaf7256a5c23 644 a
57 76d5e637cbec1bcc04a5a3fa4bcc7d13f6847c00 644 c
37 76d5e637cbec1bcc04a5a3fa4bcc7d13f6847c00 644 c
58 + hg parents
59 changeset: 6:c0e932ecae5e
38 changeset: 6:c0e932ecae5e
60 tag: tip
39 tag: tip
61 parent: 4:8dfeee82a94b
40 parent: 4:8dfeee82a94b
62 parent: 5:a7925a42d0df
41 parent: 5:a7925a42d0df
63 user: test
42 user: test
64 date: Thu Jan 1 00:00:00 1970
43 date: Thu Jan 1 00:00:00 1970
65 summary: 6
44 summary: 6
66
45
67 + hg rawcommit -p 6 -d 0 0 -m7
68 + hg manifest 7
69 d6e3c4976c13feb1728cd3ac851abaf7256a5c23 644 a
46 d6e3c4976c13feb1728cd3ac851abaf7256a5c23 644 a
70 76d5e637cbec1bcc04a5a3fa4bcc7d13f6847c00 644 c
47 76d5e637cbec1bcc04a5a3fa4bcc7d13f6847c00 644 c
71 + hg parents
72 changeset: 7:3a157da4365d
48 changeset: 7:3a157da4365d
73 tag: tip
49 tag: tip
74 user: test
50 user: test
75 date: Thu Jan 1 00:00:00 1970
51 date: Thu Jan 1 00:00:00 1970
76 summary: 7
52 summary: 7
77
53
@@ -1,32 +1,21 b''
1 + hg init
2 + hg addremove
3 adding foo
1 adding foo
4 + hg commit -m 1
5 + hg verify
6 checking changesets
2 checking changesets
7 checking manifests
3 checking manifests
8 crosschecking files in changesets and manifests
4 crosschecking files in changesets and manifests
9 checking files
5 checking files
10 1 files, 1 changesets, 1 total revisions
6 1 files, 1 changesets, 1 total revisions
11 + hg clone . ../branch
12 + hg co
13 + hg commit -m 2
14 + hg pull ../branch
15 pulling from ../branch
7 pulling from ../branch
16 searching for changes
8 searching for changes
17 adding changesets
9 adding changesets
18 adding manifests
10 adding manifests
19 adding file changes
11 adding file changes
20 added 1 changesets with 1 changes to 1 files
12 added 1 changesets with 1 changes to 1 files
21 (run 'hg update' to get a working copy)
13 (run 'hg update' to get a working copy)
22 + hg verify
23 checking changesets
14 checking changesets
24 checking manifests
15 checking manifests
25 crosschecking files in changesets and manifests
16 crosschecking files in changesets and manifests
26 checking files
17 checking files
27 1 files, 2 changesets, 2 total revisions
18 1 files, 2 changesets, 2 total revisions
28 + hg co
29 foo
19 foo
30 bar
20 bar
31 + hg manifest
32 6f4310b00b9a147241b071a60c28a650827fb03d 644 foo
21 6f4310b00b9a147241b071a60c28a650827fb03d 644 foo
@@ -1,28 +1,21 b''
1 + hg init
2 + hg add a
3 + hg commit -m test -d 0 0
4 + hg history
5 changeset: 0:acb14030fe0a
1 changeset: 0:acb14030fe0a
6 tag: tip
2 tag: tip
7 user: test
3 user: test
8 date: Thu Jan 1 00:00:00 1970
4 date: Thu Jan 1 00:00:00 1970
9 summary: test
5 summary: test
10
6
11 + hg tag -d 0 0 bleah
12 + hg history
13 changeset: 1:863197ef0378
7 changeset: 1:863197ef0378
14 tag: tip
8 tag: tip
15 user: test
9 user: test
16 date: Thu Jan 1 00:00:00 1970
10 date: Thu Jan 1 00:00:00 1970
17 summary: Added tag bleah for changeset acb14030fe0a21b60322c440ad2d20cf7685a376
11 summary: Added tag bleah for changeset acb14030fe0a21b60322c440ad2d20cf7685a376
18
12
19 changeset: 0:acb14030fe0a
13 changeset: 0:acb14030fe0a
20 tag: bleah
14 tag: bleah
21 user: test
15 user: test
22 date: Thu Jan 1 00:00:00 1970
16 date: Thu Jan 1 00:00:00 1970
23 summary: test
17 summary: test
24
18
25 + hg tag -d 0 0 bleah2
26 abort: working copy of .hgtags is changed!
19 abort: working copy of .hgtags is changed!
27 (please commit .hgtags manually)
20 (please commit .hgtags manually)
28 failed
21 failed
@@ -1,33 +1,33 b''
1 #!/bin/sh
1 #!/bin/sh
2
2
3 mkdir t
3 mkdir t
4 cd t
4 cd t
5 hg init
5 hg init
6 hg id
6 hg id
7 echo a > a
7 echo a > a
8 hg add a
8 hg add a
9 hg commit -m "test" -d "0 0"
9 hg commit -m "test" -d "0 0"
10 hg co
10 hg co
11 hg identify
11 hg identify
12 T=`hg -q tip | cut -d : -f 2`
12 T=`hg tip -v | head -n 1 | cut -d : -f 3`
13 echo "$T first" > .hgtags
13 echo "$T first" > .hgtags
14 cat .hgtags
14 cat .hgtags
15 hg add .hgtags
15 hg add .hgtags
16 hg commit -m "add tags" -d "0 0"
16 hg commit -m "add tags" -d "0 0"
17 hg tags
17 hg tags
18 hg identify
18 hg identify
19 echo bb > a
19 echo bb > a
20 hg status
20 hg status
21 hg identify
21 hg identify
22 hg co first
22 hg co first
23 hg id
23 hg id
24 hg -v id
24 hg -v id
25 hg status
25 hg status
26 echo 1 > b
26 echo 1 > b
27 hg add b
27 hg add b
28 hg commit -m "branch" -d "0 0"
28 hg commit -m "branch" -d "0 0"
29 hg id
29 hg id
30 hg co -m 1
30 hg co -m 1
31 hg id
31 hg id
32 hg status
32 hg status
33
33
@@ -1,39 +1,15 b''
1 + hg init
2 + hg id
3 unknown
1 unknown
4 + hg add a
5 + hg commit -m test -d 0 0
6 + hg co
7 + hg identify
8 acb14030fe0a tip
2 acb14030fe0a tip
9 + hg -q tip
10 acb14030fe0a21b60322c440ad2d20cf7685a376 first
3 acb14030fe0a21b60322c440ad2d20cf7685a376 first
11 + hg add .hgtags
4 tip 1:b9154636be938d3d431e75a7c906504a079bfe07
12 + hg commit -m add tags -d 0 0
13 + hg tags
14 tip 1:b53d0e1f3043ecbccf1b9ad2cea562c1b50462b2
15 first 0:acb14030fe0a21b60322c440ad2d20cf7685a376
5 first 0:acb14030fe0a21b60322c440ad2d20cf7685a376
16 hg -q tip ?:?
6 b9154636be93 tip
17 + hg identify
18 b53d0e1f3043 tip
19 + hg status
20 M a
7 M a
21 + hg identify
8 b9154636be93+ tip
22 b53d0e1f3043+ tip
23 + hg co first
24 + hg id
25 acb14030fe0a+ first
9 acb14030fe0a+ first
26 + hg -v id
27 acb14030fe0a21b60322c440ad2d20cf7685a376+ first
10 acb14030fe0a21b60322c440ad2d20cf7685a376+ first
28 + hg status
29 M a
11 M a
30 + hg add b
31 + hg commit -m branch -d 0 0
32 + hg id
33 c8edf04160c7 tip
12 c8edf04160c7 tip
34 + hg co -m 1
13 c8edf04160c7+b9154636be93+ tip
35 + hg id
36 c8edf04160c7+b53d0e1f3043+ tip
37 + hg status
38 M .hgtags
14 M .hgtags
39 M a
15 M a
@@ -1,28 +1,18 b''
1 + hg init
2 + hg add a
3 + hg commit -m test -d 0 0
4 + hg verify
5 checking changesets
1 checking changesets
6 checking manifests
2 checking manifests
7 crosschecking files in changesets and manifests
3 crosschecking files in changesets and manifests
8 checking files
4 checking files
9 1 files, 1 changesets, 1 total revisions
5 1 files, 1 changesets, 1 total revisions
10 + hg parents
11 changeset: 0:acb14030fe0a
6 changeset: 0:acb14030fe0a
12 tag: tip
7 tag: tip
13 user: test
8 user: test
14 date: Thu Jan 1 00:00:00 1970
9 date: Thu Jan 1 00:00:00 1970
15 summary: test
10 summary: test
16
11
17 + hg status
18 + hg undo
19 rolling back last transaction
12 rolling back last transaction
20 + hg verify
21 checking changesets
13 checking changesets
22 checking manifests
14 checking manifests
23 crosschecking files in changesets and manifests
15 crosschecking files in changesets and manifests
24 checking files
16 checking files
25 0 files, 0 changesets, 0 total revisions
17 0 files, 0 changesets, 0 total revisions
26 + hg parents
27 + hg status
28 A a
18 A a
@@ -1,27 +1,19 b''
1 + hg init
2 + hg add a
3 + hg commit -m a -u a -d 0 0
4 + hg init
5 + hg add b
6 + hg commit -m b -u b -d 0 0
7 + hg pull ../a
8 pulling from ../a
1 pulling from ../a
9 searching for changes
2 searching for changes
10 warning: pulling from an unrelated repository!
3 warning: pulling from an unrelated repository!
11 adding changesets
4 adding changesets
12 adding manifests
5 adding manifests
13 adding file changes
6 adding file changes
14 added 1 changesets with 1 changes to 1 files
7 added 1 changesets with 1 changes to 1 files
15 (run 'hg update' to get a working copy)
8 (run 'hg update' to get a working copy)
16 + hg heads
17 changeset: 1:9a79c33a9db3
9 changeset: 1:9a79c33a9db3
18 tag: tip
10 tag: tip
19 user: a
11 user: a
20 date: Thu Jan 1 00:00:00 1970
12 date: Thu Jan 1 00:00:00 1970
21 summary: a
13 summary: a
22
14
23 changeset: 0:01f8062b2de5
15 changeset: 0:01f8062b2de5
24 user: b
16 user: b
25 date: Thu Jan 1 00:00:00 1970
17 date: Thu Jan 1 00:00:00 1970
26 summary: b
18 summary: b
27
19
@@ -1,65 +1,50 b''
1 + hg init
2 + hg addremove
3 adding a
1 adding a
4 + hg commit -m 1 -d 0 0
5 + hg clone . ../r2
6 + hg up
7 + hg diff
8 diff -r c19d34741b0a a
2 diff -r c19d34741b0a a
9 --- a/a
3 --- a/a
10 +++ b/a
4 +++ b/a
11 @@ -1,1 +1,1 @@
5 @@ -1,1 +1,1 @@
12 -a
6 -a
13 +abc
7 +abc
14 + hg addremove
15 adding b
8 adding b
16 + hg commit -m 2 -d 0 0
17 + hg -q pull ../r1
18 + hg status
19 M a
9 M a
20 + hg --debug up
21 resolving manifests
10 resolving manifests
22 force None allow None moddirstate True linear True
11 force None allow None moddirstate True linear True
23 ancestor a0c8bcbbb45c local a0c8bcbbb45c remote 1165e8bd193e
12 ancestor a0c8bcbbb45c local a0c8bcbbb45c remote 1165e8bd193e
24 a versions differ, resolve
13 a versions differ, resolve
25 remote created b
14 remote created b
26 getting b
15 getting b
27 merging a
16 merging a
28 resolving a
17 resolving a
29 file a: other d730145abbf9 ancestor b789fdd96dc2
18 file a: other d730145abbf9 ancestor b789fdd96dc2
30 + hg --debug up -m
31 resolving manifests
19 resolving manifests
32 force None allow 1 moddirstate True linear True
20 force None allow 1 moddirstate True linear True
33 ancestor 1165e8bd193e local 1165e8bd193e remote 1165e8bd193e
21 ancestor 1165e8bd193e local 1165e8bd193e remote 1165e8bd193e
34 + hg parents
35 changeset: 1:1e71731e6fbb
22 changeset: 1:1e71731e6fbb
36 tag: tip
23 tag: tip
37 user: test
24 user: test
38 date: Thu Jan 1 00:00:00 1970
25 date: Thu Jan 1 00:00:00 1970
39 summary: 2
26 summary: 2
40
27
41 + hg -v history
42 changeset: 1:1e71731e6fbb5b35fae293120dea6964371c13c6
28 changeset: 1:1e71731e6fbb5b35fae293120dea6964371c13c6
43 tag: tip
29 tag: tip
44 user: test
30 user: test
45 date: Thu Jan 1 00:00:00 1970
31 date: Thu Jan 1 00:00:00 1970
46 files: a b
32 files: a b
47 description:
33 description:
48 2
34 2
49
35
50
36
51 changeset: 0:c19d34741b0a4ced8e4ba74bb834597d5193851e
37 changeset: 0:c19d34741b0a4ced8e4ba74bb834597d5193851e
52 user: test
38 user: test
53 date: Thu Jan 1 00:00:00 1970
39 date: Thu Jan 1 00:00:00 1970
54 files: a
40 files: a
55 description:
41 description:
56 1
42 1
57
43
58
44
59 + hg diff
60 diff -r 1e71731e6fbb a
45 diff -r 1e71731e6fbb a
61 --- a/a
46 --- a/a
62 +++ b/a
47 +++ b/a
63 @@ -1,1 +1,1 @@
48 @@ -1,1 +1,1 @@
64 -a2
49 -a2
65 +abc
50 +abc
@@ -1,114 +1,87 b''
1 + hg init
2 + hg addremove
3 adding fennel
1 adding fennel
4 adding fenugreek
2 adding fenugreek
5 adding fiddlehead
3 adding fiddlehead
6 adding glob:glob
4 adding glob:glob
7 adding beans/black
5 adding beans/black
8 adding beans/borlotti
6 adding beans/borlotti
9 adding beans/kidney
7 adding beans/kidney
10 adding beans/navy
8 adding beans/navy
11 adding beans/pinto
9 adding beans/pinto
12 adding beans/turtle
10 adding beans/turtle
13 adding mammals/skunk
11 adding mammals/skunk
14 adding mammals/Procyonidae/cacomistle
12 adding mammals/Procyonidae/cacomistle
15 adding mammals/Procyonidae/coatimundi
13 adding mammals/Procyonidae/coatimundi
16 adding mammals/Procyonidae/raccoon
14 adding mammals/Procyonidae/raccoon
17 + hg commit -m commit #0 -d 0 0
18 + hg debugwalk
19 f fennel fennel
15 f fennel fennel
20 f fenugreek fenugreek
16 f fenugreek fenugreek
21 f fiddlehead fiddlehead
17 f fiddlehead fiddlehead
22 f glob:glob glob:glob
18 f glob:glob glob:glob
23 f beans/black beans/black
19 f beans/black beans/black
24 f beans/borlotti beans/borlotti
20 f beans/borlotti beans/borlotti
25 f beans/kidney beans/kidney
21 f beans/kidney beans/kidney
26 f beans/navy beans/navy
22 f beans/navy beans/navy
27 f beans/pinto beans/pinto
23 f beans/pinto beans/pinto
28 f beans/turtle beans/turtle
24 f beans/turtle beans/turtle
29 f mammals/skunk mammals/skunk
25 f mammals/skunk mammals/skunk
30 f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle
26 f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle
31 f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi
27 f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi
32 f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon
28 f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon
33 + hg debugwalk
34 f mammals/skunk skunk
29 f mammals/skunk skunk
35 f mammals/Procyonidae/cacomistle Procyonidae/cacomistle
30 f mammals/Procyonidae/cacomistle Procyonidae/cacomistle
36 f mammals/Procyonidae/coatimundi Procyonidae/coatimundi
31 f mammals/Procyonidae/coatimundi Procyonidae/coatimundi
37 f mammals/Procyonidae/raccoon Procyonidae/raccoon
32 f mammals/Procyonidae/raccoon Procyonidae/raccoon
38 + hg debugwalk Procyonidae
39 f mammals/Procyonidae/cacomistle Procyonidae/cacomistle
33 f mammals/Procyonidae/cacomistle Procyonidae/cacomistle
40 f mammals/Procyonidae/coatimundi Procyonidae/coatimundi
34 f mammals/Procyonidae/coatimundi Procyonidae/coatimundi
41 f mammals/Procyonidae/raccoon Procyonidae/raccoon
35 f mammals/Procyonidae/raccoon Procyonidae/raccoon
42 + hg debugwalk
43 f mammals/Procyonidae/cacomistle cacomistle
36 f mammals/Procyonidae/cacomistle cacomistle
44 f mammals/Procyonidae/coatimundi coatimundi
37 f mammals/Procyonidae/coatimundi coatimundi
45 f mammals/Procyonidae/raccoon raccoon
38 f mammals/Procyonidae/raccoon raccoon
46 + hg debugwalk ..
47 f mammals/skunk ../skunk
39 f mammals/skunk ../skunk
48 f mammals/Procyonidae/cacomistle cacomistle
40 f mammals/Procyonidae/cacomistle cacomistle
49 f mammals/Procyonidae/coatimundi coatimundi
41 f mammals/Procyonidae/coatimundi coatimundi
50 f mammals/Procyonidae/raccoon raccoon
42 f mammals/Procyonidae/raccoon raccoon
51 + hg debugwalk ../beans
52 f beans/black ../beans/black
43 f beans/black ../beans/black
53 f beans/borlotti ../beans/borlotti
44 f beans/borlotti ../beans/borlotti
54 f beans/kidney ../beans/kidney
45 f beans/kidney ../beans/kidney
55 f beans/navy ../beans/navy
46 f beans/navy ../beans/navy
56 f beans/pinto ../beans/pinto
47 f beans/pinto ../beans/pinto
57 f beans/turtle ../beans/turtle
48 f beans/turtle ../beans/turtle
58 + hg debugwalk
59 f mammals/skunk skunk
49 f mammals/skunk skunk
60 f mammals/Procyonidae/cacomistle Procyonidae/cacomistle
50 f mammals/Procyonidae/cacomistle Procyonidae/cacomistle
61 f mammals/Procyonidae/coatimundi Procyonidae/coatimundi
51 f mammals/Procyonidae/coatimundi Procyonidae/coatimundi
62 f mammals/Procyonidae/raccoon Procyonidae/raccoon
52 f mammals/Procyonidae/raccoon Procyonidae/raccoon
63 + hg debugwalk -Ibeans
64 f beans/black beans/black
53 f beans/black beans/black
65 f beans/borlotti beans/borlotti
54 f beans/borlotti beans/borlotti
66 f beans/kidney beans/kidney
55 f beans/kidney beans/kidney
67 f beans/navy beans/navy
56 f beans/navy beans/navy
68 f beans/pinto beans/pinto
57 f beans/pinto beans/pinto
69 f beans/turtle beans/turtle
58 f beans/turtle beans/turtle
70 + hg debugwalk mammals/../beans/b*
71 f beans/black beans/black
59 f beans/black beans/black
72 f beans/borlotti beans/borlotti
60 f beans/borlotti beans/borlotti
73 + hg debugwalk -X*/Procyonidae mammals
74 f mammals/skunk mammals/skunk
61 f mammals/skunk mammals/skunk
75 + hg debugwalk path:mammals
76 f mammals/skunk mammals/skunk
62 f mammals/skunk mammals/skunk
77 f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle
63 f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle
78 f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi
64 f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi
79 f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon
65 f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon
80 + hg debugwalk ..
81 abort: .. not under repository root
66 abort: .. not under repository root
82 + hg debugwalk beans/../..
83 abort: beans/../.. not under repository root
67 abort: beans/../.. not under repository root
84 + hg debugwalk glob:*
85 f fennel fennel
68 f fennel fennel
86 f fenugreek fenugreek
69 f fenugreek fenugreek
87 f fiddlehead fiddlehead
70 f fiddlehead fiddlehead
88 f glob:glob glob:glob
71 f glob:glob glob:glob
89 + hg debugwalk re:.*[kb]$
90 f fenugreek fenugreek
72 f fenugreek fenugreek
91 f glob:glob glob:glob
73 f glob:glob glob:glob
92 f beans/black beans/black
74 f beans/black beans/black
93 f mammals/skunk mammals/skunk
75 f mammals/skunk mammals/skunk
94 + hg debugwalk path:beans/black
95 f beans/black beans/black
76 f beans/black beans/black
96 + hg debugwalk beans beans/*
97 f beans/black beans/black
77 f beans/black beans/black
98 f beans/borlotti beans/borlotti
78 f beans/borlotti beans/borlotti
99 f beans/kidney beans/kidney
79 f beans/kidney beans/kidney
100 f beans/navy beans/navy
80 f beans/navy beans/navy
101 f beans/pinto beans/pinto
81 f beans/pinto beans/pinto
102 f beans/turtle beans/turtle
82 f beans/turtle beans/turtle
103 + hg debugwalk j*
104 + hg debugwalk NOEXIST
105 NOEXIST: No such file or directory
83 NOEXIST: No such file or directory
106 + hg debugwalk fifo
107 fifo: unsupported file type (type is fifo)
84 fifo: unsupported file type (type is fifo)
108 + hg debugwalk fenugreek
85 m fenugreek fenugreek
109 m fenugreek fenugreek
86 m fenugreek fenugreek
110 + hg rm fenugreek
111 + hg debugwalk fenugreek
112 m fenugreek fenugreek
113 + hg debugwalk new
114 f new new
87 f new new
General Comments 0
You need to be logged in to leave comments. Login now