svn:externals for 4.0

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
MrM
Forum Newbie
Posts: 4
Joined: Thu Mar 23, 2006 2:00 am

svn:externals for 4.0

Post by MrM »

Hi,

Is there a SVN repository for SwiftMailer 4.0? I would like to use svn:externals in my projects and the latest version I can find in the repository is 3.3.3. Currently I use this for my externals:

Code: Select all

swift http://swiftmailer.svn.sourceforge.net/ ... 3.3.3/lib/
What URL should I use for 4.0?

Sorry, if this has been asked before. I've done a search and couldn't find anything on this topic.

Thanks!
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: svn:externals for 4.0

Post by Chris Corbyn »

Swift Mailer moved to a git repository, so there's no longer a subversion repository at this point in time sorry.

http://github.com/swiftmailer/swiftmailer
MrM
Forum Newbie
Posts: 4
Joined: Thu Mar 23, 2006 2:00 am

Re: svn:externals for 4.0

Post by MrM »

Thanks for your answer, Chris.

I assume there is also no "git to svn converter" or something like that, so that I could still use svn:externals? Or maybe a svn frontend for git? :)
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: svn:externals for 4.0

Post by Chris Corbyn »

There is actually... it's part of git and it's called "git svn". I didn't use it when I migrated so I'm not sure if I can backport all of my work retroactively now.

However, I'm not likely to go back to committing to the old subversion repository. Keeping them in sync would be pointless (I migth as well just commit to svn if I'm to do that). One of my reasons for leaving subversion behind was the sheer amount of downtime SoureForge had and then constant painful slowness of the repository.

I belive, but I'm not 100%, that you should be able to, off your own, clone my git repository and then keep it in sync with an svn repository you manage. Something like:

[text]svnadmin create /var/svnroot/swiftmailer git clone git://github.com/swiftmailer/swiftmailer.git swiftmailer-git cd swiftmailer-git git svn init -s file:///var/svnroot/swiftmailer git svn dcommit[/text]

This probably won't work as-is, but something along those lines. Keeping svn and git in sync then becomes a process of doing:

Code: Select all

git pull
 
git svn dcommit
MrM
Forum Newbie
Posts: 4
Joined: Thu Mar 23, 2006 2:00 am

Re: svn:externals for 4.0

Post by MrM »

Thank you very much for the exhaustive explanation. I'll give it a go.

Cheers!
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: svn:externals for 4.0

Post by Chris Corbyn »

MrM wrote:Thank you very much for the exhaustive explanation. I'll give it a go.

Cheers!
I'll actually give this a go and see what happens. I may be able to produce a tutorial and add it to the manual.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: svn:externals for 4.0

Post by Chris Corbyn »

It looks like SourceForge support git repositories now, so I have a feeling I can easily get a git-svn sync up between the two, doing some magic tricks to backport all of my commits since the split.
MrM
Forum Newbie
Posts: 4
Joined: Thu Mar 23, 2006 2:00 am

Re: svn:externals for 4.0

Post by MrM »

Thanks for your effort, Chris. If you manage to get it working, please post a note here. I haven't found the time yet to try your suggestions.
Oncle Tom
Forum Newbie
Posts: 1
Joined: Wed Apr 22, 2009 3:14 am

Re: svn:externals for 4.0

Post by Oncle Tom »

I would also be very interested by an SVN external without having to duplicate myself the GIT repository.

I guess it's the case of other people using SVN.

Thanks :)
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Re: svn:externals for 4.0

Post by Luke »

Any update on this?
Post Reply