##// END OF EJS Templates
convert/bzr: make it work with filemaps (issue1631)...
convert/bzr: make it work with filemaps (issue1631) The bzr converter maintains a child -> parents mapping and drop entries whenever a child is read. It does not work with filemaps, getchangedfiles() may be called more than once when filtered files belong to merge revisions. getchanges() still works that way but it is not clear whether a similar issue can arise when interacting with merges.

File last commit:

r8082:81aba9e7 merge default
r8165:78658990 default
Show More
test-convert-cvs-synthetic.out
57 lines | 1.3 KiB | text/plain | TextLexer
/ tests / test-convert-cvs-synthetic.out
Greg Ward
cvsps: recognize and eliminate CVS' synthetic "file added" revisions.
r7862 % create cvs repository with one project
Greg Ward
issue1577: fix broken test by assuming less about CVS output....
r8081 cvs -f -d *REPO* init
cvs -f -q co proj
Greg Ward
cvsps: recognize and eliminate CVS' synthetic "file added" revisions.
r7862 % create file1 on the trunk
Greg Ward
issue1577: fix broken test by assuming less about CVS output....
r8081 cvs -f -Q add file1
cvs -f ci -madd file1 on trunk file1
Greg Ward
cvsps: recognize and eliminate CVS' synthetic "file added" revisions.
r7862 % create two branches
Greg Ward
issue1577: fix broken test by assuming less about CVS output....
r8081 cvs -f -q tag -b v1_0
Greg Ward
cvsps: recognize and eliminate CVS' synthetic "file added" revisions.
r7862 T file1
Greg Ward
issue1577: fix broken test by assuming less about CVS output....
r8081 cvs -f -q tag -b v1_1
Greg Ward
cvsps: recognize and eliminate CVS' synthetic "file added" revisions.
r7862 T file1
% create file2 on branch v1_0
Greg Ward
issue1577: fix broken test by assuming less about CVS output....
r8081 cvs -f -q up -rv1_0
cvs -f -Q add file2
cvs -f ci -madd file2 on branch v1_0 file2
Greg Ward
cvsps: recognize and eliminate CVS' synthetic "file added" revisions.
r7862 % create file3, file4 on branch v1_1
Greg Ward
issue1577: fix broken test by assuming less about CVS output....
r8081 cvs -f -Q up -rv1_1
cvs -f -Q add file3 file4
cvs -f ci -madd file3, file4 on branch v1_1 file3 file4
Greg Ward
cvsps: recognize and eliminate CVS' synthetic "file added" revisions.
r7862 % merge file2 from v1_0 to v1_1
Greg Ward
issue1577: fix broken test by assuming less about CVS output....
r8081 cvs -f -q up -jv1_0
Greg Ward
cvsps: recognize and eliminate CVS' synthetic "file added" revisions.
r7862 U file2
Greg Ward
issue1577: fix broken test by assuming less about CVS output....
r8081 cvs -f ci -mmerge file2 from v1_0 to v1_1
% cvs rlog output
RCS file: *REPO*/proj/file1,v
revision 1.1
RCS file: *REPO*/proj/Attic/file2,v
revision 1.1
revision 1.1.4.2
revision 1.1.4.1
revision 1.1.2.1
RCS file: *REPO*/proj/Attic/file3,v
revision 1.1
revision 1.1.2.1
RCS file: *REPO*/proj/Attic/file4,v
revision 1.1
revision 1.1.2.1
Greg Ward
cvsps: recognize and eliminate CVS' synthetic "file added" revisions.
r7862 % convert to hg
initializing destination proj.hg repository
using builtin cvsps
collecting CVS rlog
9 log entries
creating changesets
4 changeset entries
connecting to *REPO*
scanning source...
sorting...
converting...
3 add file1 on trunk
2 add file2 on branch v1_0
1 add file3, file4 on branch v1_1
0 merge file2 from v1_0 to v1_1
% hg log output
3 merge file2 from v1_0 to v1_1
2 add file3, file4 on branch v1_1
1 add file2 on branch v1_0
0 add file1 on trunk