Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Script to grab latest development at Google code
Hi, I have been happily upgrading my textpattern sites with this script:
#!/bin/sh
wget -O rev.txt -q http://svn.textpattern.com/development/4.0/
wget -e robots=off -r -q -np -nH —cut-dirs=2 -P htdocs -R index.html http://svn.textpattern.com/development/4.0/
Can someone tell me how to change it to work with the new site?
The first command saves information regarding the dev I’m getting for my records.
Thanks,
Shige
Offline
Re: Script to grab latest development at Google code
I’m experimenting with using svn and I get this:
svn: PROPFIND request failed on ‘/svn/development/4.0’
svn: PROPFIND of ‘/svn/development/4.0’: 302 Found (http://textpattern-cms.googlecode.com)
Offline
Re: Script to grab latest development at Google code
Why don’t you just checkout a copy using SVN?
svn checkout http://textpattern-cms.googlecode.com/svn/development/4.0 dev
Where ‘dev’ is the name of the directory where you want to have the development code.
That way you can keep it up-to-date easily, by running the svn update
command.
Offline
Re: Script to grab latest development at Google code
Thanks Rudd! It seems to work now!! I guess there was a glitch at googlecode when I was trying it.
I was hoping to dump svn completely and only use git, but I guess I’ll have to keep both around. :)
Offline
Re: Script to grab latest development at Google code
You can always clone the SVN repo with git-svn
git-svn clone http://textpattern-cms.googlecode.com/svn/development/4.0
Last edited by hakjoon (2008-04-23 18:20:41)
Shoving is the answer – pusher robot
Offline
Re: Script to grab latest development at Google code
Exactly what I need. I’m having enough trouble learning git, I’d rather not have to learn svn too.
Thanks!
hakjoon wrote:
You can always clone the SVN repo with git-svn
git-svn clone http://textpattern-cms.googlecode.com/svn/development/4.0
Offline
Re: Script to grab latest development at Google code
I’m a newbie to SVN. Now that the code moved to textpattern.googlecode instead of textpattern-cms.googlecode, what do I need to do to point to the right place?
I followed Rudd’s advice and have been suing svn update
to grab the latest. I assume I need to update the place where it looks…
Thanks.
ruud wrote:
Why don’t you just checkout a copy using SVN?
svn checkout http://textpattern-cms.googlecode.com/svn/development/4.0 dev
Where ‘dev’ is the name of the directory where you want to have the development code.
That way you can keep it up-to-date easily, by running the svn update
command.
Offline
Re: Script to grab latest development at Google code
You may want to drop the -cms
part though ;)
Offline
Re: Script to grab latest development at Google code
LOL.
I’ve been using a svn update
since I checked out the -cms repository. What do I do to re-point it at textpattern.googlecode..
I hope that makes sense.
ruud wrote:
You may want to drop the
-cms
part though ;)
Offline
Re: Script to grab latest development at Google code
You’ll probably need a new checkout. I don’t think svn supports re-pointing working copies. I know you can’t switch between repositories
Shoving is the answer – pusher robot
Offline
#11 2008-05-15 03:09:08
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Script to grab latest development at Google code
That’s correct, a new checkout is necessary (the repo uuids are different). All you need to do is make a new checkout, and if necessary, patch over any changes that you made to the working copy.
Offline
Re: Script to grab latest development at Google code
^^ yes, that was my experience too when switching from dev.txp.com to Google code, so I suspect it is no different when switching from one google code repository to another. I’m not sure if the move is official yet though.
Offline