Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-04-23 16:34:37

typeshige
Member
From: USA
Registered: 2005-08-11
Posts: 151
Website

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

#2 2008-04-23 16:46:33

typeshige
Member
From: USA
Registered: 2005-08-11
Posts: 151
Website

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

#3 2008-04-23 16:46:43

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

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

#4 2008-04-23 17:06:29

typeshige
Member
From: USA
Registered: 2005-08-11
Posts: 151
Website

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

#5 2008-04-23 18:19:30

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

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

#6 2008-04-25 00:44:17

typeshige
Member
From: USA
Registered: 2005-08-11
Posts: 151
Website

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

#7 2008-05-14 03:48:06

typeshige
Member
From: USA
Registered: 2005-08-11
Posts: 151
Website

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

#8 2008-05-14 06:36:23

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Script to grab latest development at Google code

You may want to drop the -cms part though ;)

Offline

#9 2008-05-14 16:49:02

typeshige
Member
From: USA
Registered: 2005-08-11
Posts: 151
Website

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

#10 2008-05-15 00:49:44

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

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

#12 2008-05-15 06:44:58

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

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

Board footer

Powered by FluxBB