Mercurial > hg
annotate tests/test-convert-cvs-branch.t @ 23587:8063901e56cd
memctx: calculate exact status being committed from specified files
Before this patch, "memctx._status" is initialized by "(files, [], [],
[], [], [], [])" and this causes "memctx.modified" to include not
only modified files but also added and removed ones incorrectly.
This patch adds "_status" method to calculate exact status being
committed according to "files" specified at construction time.
Exact "_status" is useful to share/reuse logic of committablectx.
This patch is also preparation for issues fixed by subsequent patches.
Some details of changes for tests in this patch:
- some filename lines are omitted in "test-convert-svn-encoding.t",
because they are correctly listed up as "removed" files
those lines are written out in "localrepository.commitctx" for
"modified" and "added" files by "ui.note".
- "| fixbundle" filterring in "test-histedit-fold.t" is omitted to
check lines including "added" correctly
"fixbundle" discards all lines including "added".
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Wed, 17 Dec 2014 15:09:38 +0900 |
parents | e955549cd045 |
children | 96529f81e2e9 |
rev | line source |
---|---|
22046
7a9cbb315d84
tests: replace exit 80 with #require
Matt Mackall <mpm@selenic.com>
parents:
20117
diff
changeset
|
1 #require cvs |
7a9cbb315d84
tests: replace exit 80 with #require
Matt Mackall <mpm@selenic.com>
parents:
20117
diff
changeset
|
2 |
12520
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
3 This is http://mercurial.selenic.com/bts/issue1148 |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
4 and http://mercurial.selenic.com/bts/issue1447 |
6690
127e8c3466d1
convert: cvs.py - Allow user to use built-in CVS changeset code.
Frank Kingswood <frank@kingswood-consulting.co.uk>
parents:
diff
changeset
|
5 |
12520
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
6 $ cvscall() |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
7 > { |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
8 > cvs -f "$@" > /dev/null |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
9 > } |
23172
e955549cd045
tests: write hgrc of more than two lines by using shell heredoc
Yuya Nishihara <yuya@tcha.org>
parents:
22046
diff
changeset
|
10 $ cat <<EOF >> $HGRCPATH |
e955549cd045
tests: write hgrc of more than two lines by using shell heredoc
Yuya Nishihara <yuya@tcha.org>
parents:
22046
diff
changeset
|
11 > [extensions] |
e955549cd045
tests: write hgrc of more than two lines by using shell heredoc
Yuya Nishihara <yuya@tcha.org>
parents:
22046
diff
changeset
|
12 > convert = |
e955549cd045
tests: write hgrc of more than two lines by using shell heredoc
Yuya Nishihara <yuya@tcha.org>
parents:
22046
diff
changeset
|
13 > [convert] |
e955549cd045
tests: write hgrc of more than two lines by using shell heredoc
Yuya Nishihara <yuya@tcha.org>
parents:
22046
diff
changeset
|
14 > cvsps.cache = 0 |
e955549cd045
tests: write hgrc of more than two lines by using shell heredoc
Yuya Nishihara <yuya@tcha.org>
parents:
22046
diff
changeset
|
15 > EOF |
6690
127e8c3466d1
convert: cvs.py - Allow user to use built-in CVS changeset code.
Frank Kingswood <frank@kingswood-consulting.co.uk>
parents:
diff
changeset
|
16 |
12520
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
17 create cvs repository |
6690
127e8c3466d1
convert: cvs.py - Allow user to use built-in CVS changeset code.
Frank Kingswood <frank@kingswood-consulting.co.uk>
parents:
diff
changeset
|
18 |
12520
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
19 $ mkdir cvsrepo |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
20 $ cd cvsrepo |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
21 $ CVSROOT=`pwd` |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
22 $ export CVSROOT |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
23 $ CVS_OPTIONS=-f |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
24 $ export CVS_OPTIONS |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
25 $ cd .. |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
26 $ cvscall -q -d "$CVSROOT" init |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
27 |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
28 Create a new project |
6690
127e8c3466d1
convert: cvs.py - Allow user to use built-in CVS changeset code.
Frank Kingswood <frank@kingswood-consulting.co.uk>
parents:
diff
changeset
|
29 |
12520
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
30 $ mkdir src |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
31 $ cd src |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
32 $ echo "1" > a |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
33 $ echo "1" > b |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
34 $ cvscall import -m "init" src v0 r0 | sort |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
35 $ cd .. |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
36 $ cvscall co src |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
37 cvs checkout: Updating src |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
38 $ cd src |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
39 |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
40 Branch the project |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
41 |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
42 $ cvscall tag -b BRANCH |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
43 cvs tag: Tagging . |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
44 $ cvscall up -r BRANCH > /dev/null |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
45 cvs update: Updating . |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
46 |
12785
c7d23b4ca4ba
check-code: warning and fixes for whitespace in unified tests
Matt Mackall <mpm@selenic.com>
parents:
12640
diff
changeset
|
47 Modify file a, then b, then a |
6690
127e8c3466d1
convert: cvs.py - Allow user to use built-in CVS changeset code.
Frank Kingswood <frank@kingswood-consulting.co.uk>
parents:
diff
changeset
|
48 |
12580
0ae639c75b8c
test-convert-cvs-branch: add sleep so cvs notices changes
Mads Kiilerich <mads@kiilerich.com>
parents:
12520
diff
changeset
|
49 $ sleep 1 |
12520
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
50 $ echo "2" > a |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
51 $ cvscall ci -m "mod a" |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
52 cvs commit: Examining . |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
53 $ echo "2" > b |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
54 $ cvscall ci -m "mod b" |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
55 cvs commit: Examining . |
12580
0ae639c75b8c
test-convert-cvs-branch: add sleep so cvs notices changes
Mads Kiilerich <mads@kiilerich.com>
parents:
12520
diff
changeset
|
56 $ sleep 1 |
12520
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
57 $ echo "3" > a |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
58 $ cvscall ci -m "mod a again" |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
59 cvs commit: Examining . |
6690
127e8c3466d1
convert: cvs.py - Allow user to use built-in CVS changeset code.
Frank Kingswood <frank@kingswood-consulting.co.uk>
parents:
diff
changeset
|
60 |
12520
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
61 Convert |
6690
127e8c3466d1
convert: cvs.py - Allow user to use built-in CVS changeset code.
Frank Kingswood <frank@kingswood-consulting.co.uk>
parents:
diff
changeset
|
62 |
12520
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
63 $ cd .. |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
64 $ hg convert src |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
65 assuming destination src-hg |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
66 initializing destination src-hg repository |
12640
6cc4b14fb76b
tests: remove redundant globs
Mads Kiilerich <mads@kiilerich.com>
parents:
12580
diff
changeset
|
67 connecting to $TESTTMP/cvsrepo |
12520
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
68 scanning source... |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
69 collecting CVS rlog |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
70 7 log entries |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
71 creating changesets |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
72 5 changeset entries |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
73 sorting... |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
74 converting... |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
75 4 Initial revision |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
76 3 init |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
77 2 mod a |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
78 1 mod b |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
79 0 mod a again |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
80 updating tags |
6690
127e8c3466d1
convert: cvs.py - Allow user to use built-in CVS changeset code.
Frank Kingswood <frank@kingswood-consulting.co.uk>
parents:
diff
changeset
|
81 |
12520
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
82 Check the result |
6690
127e8c3466d1
convert: cvs.py - Allow user to use built-in CVS changeset code.
Frank Kingswood <frank@kingswood-consulting.co.uk>
parents:
diff
changeset
|
83 |
20117
aa9385f983fa
tests: don't load unnecessary graphlog extension
Martin Geisler <martin@geisler.net>
parents:
16913
diff
changeset
|
84 $ hg -R src-hg log -G --template '{rev} ({branches}) {desc} files: {files}\n' |
12520
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
85 o 5 () update tags files: .hgtags |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
86 | |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
87 | o 4 (BRANCH) mod a again files: a |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
88 | | |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
89 | o 3 (BRANCH) mod b files: b |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
90 | | |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
91 | o 2 (BRANCH) mod a files: a |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
92 | | |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
93 | o 1 (v0) init files: |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
94 |/ |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
95 o 0 () Initial revision files: a b |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
96 |
6690
127e8c3466d1
convert: cvs.py - Allow user to use built-in CVS changeset code.
Frank Kingswood <frank@kingswood-consulting.co.uk>
parents:
diff
changeset
|
97 |
127e8c3466d1
convert: cvs.py - Allow user to use built-in CVS changeset code.
Frank Kingswood <frank@kingswood-consulting.co.uk>
parents:
diff
changeset
|
98 |
12520
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
99 issue 1447 |
8756
6019e6517f95
convert: better support for CVS branchpoints (issue1447)
Henrik Stuart <hg@hstuart.dk>
parents:
8523
diff
changeset
|
100 |
12520
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
101 $ cvscall() |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
102 > { |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
103 > cvs -f "$@" > /dev/null |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
104 > sleep 1 |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
105 > } |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
106 $ cvsci() |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
107 > { |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
108 > cvs -f ci "$@" >/dev/null |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
109 > sleep 1 |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
110 > } |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
111 $ cvscall -Q -d `pwd`/cvsmaster2 init |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
112 $ cd cvsmaster2 |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
113 $ CVSROOT=`pwd` |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
114 $ export CVSROOT |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
115 $ mkdir foo |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
116 $ cd .. |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
117 $ cvscall -Q co -d cvswork2 foo |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
118 $ cd cvswork2 |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
119 $ echo foo > a.txt |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
120 $ echo bar > b.txt |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
121 $ cvscall -Q add a.txt b.txt |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
122 $ cvsci -m "Initial commit" |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
123 cvs commit: Examining . |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
124 $ echo foo > b.txt |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
125 $ cvsci -m "Fix b on HEAD" |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
126 cvs commit: Examining . |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
127 $ echo bar > a.txt |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
128 $ cvsci -m "Small fix in a on HEAD" |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
129 cvs commit: Examining . |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
130 $ cvscall -Q tag -b BRANCH |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
131 $ cvscall -Q up -P -rBRANCH |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
132 $ echo baz > b.txt |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
133 $ cvsci -m "Change on BRANCH in b" |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
134 cvs commit: Examining . |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
135 $ hg debugcvsps -x --parents foo |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
136 collecting CVS rlog |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
137 5 log entries |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
138 creating changesets |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
139 4 changeset entries |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
140 --------------------- |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
141 PatchSet 1 |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
142 Date: * (glob) |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
143 Author: * (glob) |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
144 Branch: HEAD |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
145 Tag: (none) |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
146 Log: |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
147 Initial commit |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
148 |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
149 Members: |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
150 a.txt:INITIAL->1.1 |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
151 b.txt:INITIAL->1.1 |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
152 |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
153 --------------------- |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
154 PatchSet 2 |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
155 Date: * (glob) |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
156 Author: * (glob) |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
157 Branch: HEAD |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
158 Tag: (none) |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
159 Branchpoints: BRANCH |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
160 Parent: 1 |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
161 Log: |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
162 Fix b on HEAD |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
163 |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
164 Members: |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
165 b.txt:1.1->1.2 |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
166 |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
167 --------------------- |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
168 PatchSet 3 |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
169 Date: * (glob) |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
170 Author: * (glob) |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
171 Branch: HEAD |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
172 Tag: (none) |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
173 Branchpoints: BRANCH |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
174 Parent: 2 |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
175 Log: |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
176 Small fix in a on HEAD |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
177 |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
178 Members: |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
179 a.txt:1.1->1.2 |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
180 |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
181 --------------------- |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
182 PatchSet 4 |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
183 Date: * (glob) |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
184 Author: * (glob) |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
185 Branch: BRANCH |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
186 Tag: (none) |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
187 Parent: 3 |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
188 Log: |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
189 Change on BRANCH in b |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
190 |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
191 Members: |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
192 b.txt:1.2->1.2.2.1 |
873ca83d6cfd
tests: unify test-convert-cvs-branch
Matt Mackall <mpm@selenic.com>
parents:
9543
diff
changeset
|
193 |
8756
6019e6517f95
convert: better support for CVS branchpoints (issue1447)
Henrik Stuart <hg@hstuart.dk>
parents:
8523
diff
changeset
|
194 |
16913
f2719b387380
tests: add missing trailing 'cd ..'
Mads Kiilerich <mads@kiilerich.com>
parents:
12785
diff
changeset
|
195 $ cd .. |