Files on branches without commits

Roman Shterenzon <[email protected]> Tue, 29 Dec 2009 05:57:54 -0800 (PST)
Newsgroups gmane.comp.version-control.subversion.cvs2svn.devel
Message-ID <[email protected]>
Good day,

It seems that cvs2svn misses files which reside on a branch which has no commits (for this file).
Let me give an example (I'm trying to make a git mirror of squid2 sources):

I'm interested in, say, SQUID_2_7 branch:

cvs log acinclude.m4
..
SQUID_2_7: 1.10.0.2
..

If there was a commit, it would have been assigned a 1.10.2.1 number, but there's no such commit.
The latest commit it the 1.10 from which the branch was tagged.
Effectively this skips the file from the resulting SQUID_2_7 branch in git/subversion (because, I suspect, there's no file with number 1.10.2 (which will be result of define_symbol@collect_data.py , I think).

Also, another issue (which might be not related at all), is that I wasn't able to export, as it was trying to address a hash by a non-existing key (in _get_source_mark @ git_output_option.py)

This fixed it (perhaps incorrectly):

Index: cvs2svn_lib/git_output_option.py
===================================================================
--- cvs2svn_lib/git_output_option.py    (revision 5022)
+++ cvs2svn_lib/git_output_option.py    (working copy)
@@ -426,6 +426,8 @@
       mark = self._get_source_mark(source_lod, source_revnum)
       self._set_symbol(svn_commit.symbol, mark)
       self._mirror.copy_lod(source_lod, svn_commit.symbol, source_revnum)
+      # XXX
+      self._set_lod_mark(svn_commit.symbol, source_revnum, mark)
     else:
       Log().debug(
           '%s will be created via fixup commit(s)' % (svn_commit.symbol,)


Any ideas how the first one can be resolved, and whenever I did the right thing with my fix for the second issue?

Thanks,
--Roman

------------------------------------------------------
http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1667&dsMessageId=2433604

To unsubscribe from this discussion, e-mail: [[email protected]].