I wrote http://simon.geek.nz/assets/text/git-piston-update to help solve this. It finds all the repos that piston manages in a given folder or pwd and updates them from the correct branch. It currently assumes importing git repos into svn ones but should be easy enough to change if it'd help.
> --
> You received this message because you are subscribed to the Google Groups "SilverStripe Core Development" group.
> To post to this group, send email to silverst...@googlegroups.com.
> To unsubscribe from this group, send email to silverstripe-d...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/silverstripe-dev?hl=en.
>
---
Simon Welsh
Admin of http://simon.geek.nz/
Who said Microsoft never created a bug-free program? The blue screen never, ever crashes!
ldn't find a simple way to use Piston on Debian, maybe I
overlooked it, so if someone could point me in the right direction,
that would be great.
So I started with an installer clone and then tried the 'flat' mode in
the Tools section, and that seemed to work fine, but I'm not sure
that's the right way to do it - will I be able to pull and update from
this setup (that's not very clear to me)?
Next I tried out the contribute mode in the tools section. That kinda
worked, although it wants to write the destinations from the template
file to a none-existing .gitignore file somewhere and fails on an
empty handler. Tried adding this file manually to the repo-root, but
that didn't do the trick.So maybe it wants it at some other location?
Why would it be necessary anyway? Is it because the root repo should
leave the sapphire and cms folders alone, since they are repositories
in their own right?
Next I tried the method, where you'd clone the sapphire and the cms
into the installer repo yourself. That worked fine. But should the
same .gitignore file now be added?
And finally I wanted to add the BlackCandy as well, but it either is
not there - or it is password protected. Also the GoogleSiteMap module
is still missing? Or is that now obsolete?
Btw - it sure is a lot faster then the previous svn :-)
Martine
--
You received this message because you are subscribed to the Google Groups "SilverStripe Core Development" group.
To post to this group, send email to silverst...@googlegroups.com.
To unsubscribe from this group, send email to silverstripe-d...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/silverstripe-dev?hl=en.
Set-up:
- create an SVN repository, with a suitable URL: something like http://svn.silverstripemirror.org/sapphire/trunk
- git svn clone http://svn.silverstripemirror.org/sapphire/trunk
- git remote add origin git://github.com/silverstripe/sapphire.git
Periodic refresh:
- git pull origin master:master
- git svn rebase
- git svn dcommit
The periodic refresh can be executed with a cronjob.
For a branch it's slightly different:
Set-up:
- create an SVN repository, with a suitable URL: something like http://svn.silverstripemirror.org/sapphire/branches/2.4
- git svn clone http://svn.silverstripemirror.org/sapphire/branches/2.4
- git remote add origin git://github.com/silverstripe/sapphire.git
Periodic refresh:
- git pull origin 2.4:master
- git svn rebase
- git svn dcommit
The mirrors get updated at around noon each day.
Before someone mentions the github SVN repos, they don't seem to work and they don't allow access to the branches.
On 16/02/2011, at 4:04 PM, Nicolaas Thiemen Francken - Sunny Side Up wrote:
Great work, Simon! It looks like you've solved this problem. Nicolaas - I guess you have your answer now? :-)
If you're using svn:externals, as the branch can change and break things, especially when it's the current feature branch, I suggest adding in a revision to the table, so your entry will be something like:
sapphire -r80 http://svn.simon.geek.nz/silverstripe/sapphire/branches/2.4
If you'd really prefer tags, I can look at mirroring those as well.
---