[rrd-developers] moving rrdtool source to github

Sebastian Harl sh at tokkee.org
Wed Sep 5 09:33:33 CEST 2012


Hi,

On Wed, Sep 05, 2012 at 09:04:41AM +0200, Tobias Oetiker wrote:
> Today Sebastian Harl wrote:
> > On Tue, Sep 04, 2012 at 04:54:14PM +0200, Tobias Oetiker wrote:
> > > one idea I had creating some system which checks out the individual
> > > svn revisions and then semi automatically copy them into a git repo
> > > altering the copy instructinons as the repo structure is changeing
> > > ...
> >
> > Can you provide an example for what kind of structure changes you're
> > talking about.
> >
> > *Possibly*, tools like git-filter-branch might help cleaning up the Git
> > repo after converting it using git-svn.
> 
> I used the svn2git tool to convert the existing repo ...

Never used that so far ;-)

> this did work in the sense that it ran to the end, BUT I guess my
> use of the svn mandated directory structure is slightly divergent
> from what svn2git is expecting ... so for example
> 
> /tags/1.4.7 matches /branches/1.4/program

Hrm, importing tags is a bit more complicated and I haven't seen any
tools so far that did it right. You'll probably have to come up with
some script to clean up that mess :-/

The problem is that SVN's concept of tags is a bit … strange ;-) From a
technical perspective it's not different from a branch nor from creating
a sub directory inside your project. When importing that into Git, for
each tag, we'd have to …
 a) find the source commit rXYZ in SVN,
 b) verify that nothing inside the tag has changed compared to that
    commit, and
 c) (only then) create a Git tag pointing to the appropriate Git commit
    representing the SVN commit rXYZ

However, when looking at the 1.4.7 tag at Github, that looks fairly good
to me.

> also, over the course of the project I have moved directories
> around on occasion ...

Does that include directories "outside" of the "program" tree? In that
case, it's probably going to be a bit messy to convert it and some
custom import script might be the only feasibly solution. However, you
might wanna check if svn2git could be hacked a bit.

HTH,
Sebastian

-- 
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.oetiker.ch/pipermail/rrd-developers/attachments/20120905/3fde4e10/attachment-0001.pgp 


More information about the rrd-developers mailing list