Re: moving rrdtool source to github
Sebastian Harl <[email protected]> Wed, 5 Sep 2012 09:33:33 +0200
| Newsgroups | gmane.comp.db.rrdtool.devel |
|---|---|
| Message-ID | <[email protected]> |
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
_______________________________________________
rrd-developers mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers
signature.asc
(application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAlBHAE0ACgkQEFEKc4UBx/xpuQCfct8NnL1nO+PsC38b4xNKjb/y MQ4An3JYDm1N19AhsUC3ZRdERDkmH8bE =qTOB -----END PGP SIGNATURE-----