Re: cvs2svn migration: making cvs branch as svn trunk while migration
Michael Haggerty <[email protected]>
| Newsgroups | gmane.comp.version-control.subversion.cvs2svn.user |
|---|---|
| Message-ID | <[email protected]> |
Ravikumar MAV wrote:
> 1) we created the branch from a tag. But in cvsweb it shows the history
> from file creation. will this be problem for what we are trying to do?.
> if so, can exclude the tag that is the source of the branch?
cvs2svn tells subversion the history of a file across branching events,
and Subversion records this information. So it will be possible to
trace the whole history of the file.
Only trunk or a branch can be the source of another branch. Excluding
the branch that is the source of another branch could theoretically be
done in two ways:
1.1 -- 1.2 -- 1.3 -- 1.4 -- 1.5 source
\
1.3.2.1 -- 1.3.2.2 -- 1.3.2.3 retained branch
1. Discard the history that took place on the source branch before the
retained branch was created. This would mean that files would appear to
spring into existence on the retained branch with the contents that
existed when the branch was created:
1.3 -- 1.3.2.1 -- 1.3.2.2 -- 1.3.2.3
In this case, the early history of the file (e.g., revisions 1.1 and
1.2) are lost.
2. Retain the development that took place on the source branch, but
record it as if it actually took place on the retained branch (i.e.,
graft the whole history onto a single branch). This would retain the
full history of the file leading up to the revision on the retained
branch (except for merges, of course, which CVS doesn't record):
1.1 -- 1.2 -- 1.3 -- 1.3.2.1 -- 1.3.2.2 -- 1.3.2.3
Of course the technique can be generalized to the case where the
retained branch sprouts from a source branch which sprouts from trunk etc.
But neither of these approaches are implemented in cvs2svn, and it would
take some development work to implement one of them.
> 2) with the option you have specified, will the below command create the
> dump file.
> cvs2svn --fallback-encoding=ascii --write-symbol-info=/opt/inf.txt
> --symbol-hints=/opt/hints.txt --exclude='^(test-email-core-br|trunk)'
> --force-branch=build-ready --dumpfile emailcore.svndump email
> is the exclude regex correct to exclude all tags and branches except
> trunk and my branch?
No, you *cannot exclude trunk* in the current cvs2svn. And the
equivalent of the --exclude and --force-branch options can be
accomplished via the symbol-hints file.
Michael
------------------------------------------------------
http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1670&dsMessageId=2616647
To unsubscribe from this discussion, e-mail: [[email protected]].