Re: Tip: ignoring tmp dirs in Subversion

2008-12-12 Thread Ed Howland

Also, what do you think about keeping the cake folder on a sep svn
repos and using svn:externals to link it into your app. In our case it
let us follow nightly builds w/o having
to do the rsync shuffle above.

Ed

-- 
Ed Howland
http://greenprogrammer.blogspot.com
http://twitter.com/ed_howland

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Tip: ignoring tmp dirs in Subversion

2008-12-12 Thread brian

On Fri, Dec 12, 2008 at 2:02 PM, Ed Howland ed.howl...@gmail.com wrote:

 Also, what do you think about keeping the cake folder on a sep svn
 repos and using svn:externals to link it into your app. In our case it
 let us follow nightly builds w/o having
 to do the rsync shuffle above.


I've never considered that. Seems like a good idea. I might look into that.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Tip: ignoring tmp dirs in Subversion

2008-12-11 Thread Ed Howland

This always confused me.

cd app
svn up
find tmp -type d | grep -v svn| xargs -L1 svn propset svn:ignore '*'
svn commit -m ignoring app/tmp in subversion

HTH someone
Ed

-- 
Ed Howland
http://greenprogrammer.blogspot.com
http://twitter.com/ed_howland

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Tip: ignoring tmp dirs in Subversion

2008-12-11 Thread Marcus

On Dec 11, 6:40 pm, Ed Howland [EMAIL PROTECTED] wrote:
 This always confused me.

 cd app
 svn up
 find tmp -type d | grep -v svn| xargs -L1 svn propset svn:ignore '*'
 svn commit -m ignoring app/tmp in subversion

This isn't a good solution: If you check out your project on another
machine, the whole 'tmp' directory and its structure is missing.

Marcus
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Tip: ignoring tmp dirs in Subversion

2008-12-11 Thread Ed Howland

On Thu, Dec 11, 2008 at 12:16 PM, Marcus rik...@gmail.com wrote:

 On Dec 11, 6:40 pm, Ed Howland ed.howl...@gmail.com wrote:
 This always confused me.

 cd app
 svn up
 find tmp -type d | grep -v svn| xargs -L1 svn propset svn:ignore '*'
 svn commit -m ignoring app/tmp in subversion

 This isn't a good solution: If you check out your project on another
 machine, the whole 'tmp' directory and its structure is missing.

It worked for me I did two commit+checkout round trips, and the tmp
structure was maintained. I did have to svn rm the old cache files,
but now svn st reports no changes. I think that works because the
pattern supplied was '*' and svn propset does not apply that to
directories.

Let me know if you have a different experience.

Ed



 Marcus
 




-- 
Ed Howland
http://greenprogrammer.blogspot.com
http://twitter.com/ed_howland

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Tip: ignoring tmp dirs in Subversion

2008-12-11 Thread brian

On Thu, Dec 11, 2008 at 2:24 PM, Ed Howland ed.howl...@gmail.com wrote:

 On Thu, Dec 11, 2008 at 12:16 PM, Marcus rik...@gmail.com wrote:

 On Dec 11, 6:40 pm, Ed Howland ed.howl...@gmail.com wrote:
 This always confused me.

 cd app
 svn up
 find tmp -type d | grep -v svn| xargs -L1 svn propset svn:ignore '*'
 svn commit -m ignoring app/tmp in subversion

 This isn't a good solution: If you check out your project on another
 machine, the whole 'tmp' directory and its structure is missing.

 It worked for me I did two commit+checkout round trips, and the tmp
 structure was maintained. I did have to svn rm the old cache files,
 but now svn st reports no changes. I think that works because the
 pattern supplied was '*' and svn propset does not apply that to
 directories.

 Let me know if you have a different experience.


As Marcus said, it'll be a different experience if the repository is
checked out on a *different machine*.

Subversion has the capability to handle things like this, though one
needs to set things up for it. Here's  a Cake-specific solution posted
by Andy:

http://bakery.cakephp.org/articles/view/setting-svn-ignore-properties

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Tip: ignoring tmp dirs in Subversion

2008-12-11 Thread Ed Howland

On Thu, Dec 11, 2008 at 8:35 PM, brian bally.z...@gmail.com wrote:

 On Thu, Dec 11, 2008 at 2:24 PM, Ed Howland ed.howl...@gmail.com wrote:

 Let me know if you have a different experience.


 As Marcus said, it'll be a different experience if the repository is
 checked out on a *different machine*.

 Subversion has the capability to handle things like this, though one
 needs to set things up for it. Here's  a Cake-specific solution posted
 by Andy:

 http://bakery.cakephp.org/articles/view/setting-svn-ignore-properties


Brian, thanks for the link. It's a good idea for the core.php and
database.php files as well. BTW, I did test my command and checked it
out on another machine and it still worked. Perhaps there is a
difference wrt versions of svn?

What I didn't know about was the -R (recursive) flag for svn propset.
I wanted to make sure that the '.svn' dirs were preserved and thus
excluded. But propset must do that already.

Ed
.


 




-- 
Ed Howland
http://greenprogrammer.blogspot.com
http://twitter.com/ed_howland

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Tip: ignoring tmp dirs in Subversion

2008-12-11 Thread brian

The contents of the .svn dirs  are modified by Subversion, so it
wouldn't make sense to try to get it to ignore them. They're full of
meta-info. .svn/text-base/ contains a clean copy of everything, for
instance, and it's these files that are compared to your working copy
in order to discern what's been changed.

One can checkout an entire site without them (say, for uploading to
production or tarring up an archive) by doing svn export ... Note
that you'll want to export to somewhere other than your working
directory.

You can also copy a subversion working dir without the .svn dirs by
using rsync -C ...

On Thu, Dec 11, 2008 at 10:26 PM, Ed Howland ed.howl...@gmail.com wrote:

 On Thu, Dec 11, 2008 at 8:35 PM, brian bally.z...@gmail.com wrote:

 On Thu, Dec 11, 2008 at 2:24 PM, Ed Howland ed.howl...@gmail.com wrote:

 Let me know if you have a different experience.


 As Marcus said, it'll be a different experience if the repository is
 checked out on a *different machine*.

 Subversion has the capability to handle things like this, though one
 needs to set things up for it. Here's  a Cake-specific solution posted
 by Andy:

 http://bakery.cakephp.org/articles/view/setting-svn-ignore-properties


 Brian, thanks for the link. It's a good idea for the core.php and
 database.php files as well. BTW, I did test my command and checked it
 out on another machine and it still worked. Perhaps there is a
 difference wrt versions of svn?

 What I didn't know about was the -R (recursive) flag for svn propset.
 I wanted to make sure that the '.svn' dirs were preserved and thus
 excluded. But propset must do that already.

 Ed
 .


 




 --
 Ed Howland
 http://greenprogrammer.blogspot.com
 http://twitter.com/ed_howland

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Tip: ignoring tmp dirs in Subversion

2008-12-11 Thread brian

BTW, why would you not want to version-control core.php or database.php?

On Thu, Dec 11, 2008 at 11:25 PM, brian bally.z...@gmail.com wrote:
 The contents of the .svn dirs  are modified by Subversion, so it
 wouldn't make sense to try to get it to ignore them. They're full of
 meta-info. .svn/text-base/ contains a clean copy of everything, for
 instance, and it's these files that are compared to your working copy
 in order to discern what's been changed.

 One can checkout an entire site without them (say, for uploading to
 production or tarring up an archive) by doing svn export ... Note
 that you'll want to export to somewhere other than your working
 directory.

 You can also copy a subversion working dir without the .svn dirs by
 using rsync -C ...

 On Thu, Dec 11, 2008 at 10:26 PM, Ed Howland ed.howl...@gmail.com wrote:

 On Thu, Dec 11, 2008 at 8:35 PM, brian bally.z...@gmail.com wrote:

 On Thu, Dec 11, 2008 at 2:24 PM, Ed Howland ed.howl...@gmail.com wrote:

 Let me know if you have a different experience.


 As Marcus said, it'll be a different experience if the repository is
 checked out on a *different machine*.

 Subversion has the capability to handle things like this, though one
 needs to set things up for it. Here's  a Cake-specific solution posted
 by Andy:

 http://bakery.cakephp.org/articles/view/setting-svn-ignore-properties


 Brian, thanks for the link. It's a good idea for the core.php and
 database.php files as well. BTW, I did test my command and checked it
 out on another machine and it still worked. Perhaps there is a
 difference wrt versions of svn?

 What I didn't know about was the -R (recursive) flag for svn propset.
 I wanted to make sure that the '.svn' dirs were preserved and thus
 excluded. But propset must do that already.

 Ed
 .


 




 --
 Ed Howland
 http://greenprogrammer.blogspot.com
 http://twitter.com/ed_howland

 



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Tip: ignoring tmp dirs in Subversion

2008-12-11 Thread Ed Howland

On Thu, Dec 11, 2008 at 10:25 PM, brian bally.z...@gmail.com wrote:

 The contents of the .svn dirs  are modified by Subversion, so it
 wouldn't make sense to try to get it to ignore them. They're full of
 meta-info. .svn/text-base/ contains a clean copy of everything, for
 instance, and it's these files that are compared to your working copy
 in order to discern what's been changed.

 One can checkout an entire site without them (say, for uploading to
 production or tarring up an archive) by doing svn export ... Note
 that you'll want to export to somewhere other than your working
 directory.

 You can also copy a subversion working dir without the .svn dirs by
 using rsync -C ...

That last one is good for me too. I just checked out a latest HEAD and
wanted to overlay a working directory to check a bug fix in unit
tests. I did it by hand for each dir. That could have saved me some
time! (Hey universe, can I have those last 30 minutes back?)

Thanks for the tip.

Ed

-- 
Ed Howland
http://greenprogrammer.blogspot.com
http://twitter.com/ed_howland

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Tip: ignoring tmp dirs in Subversion

2008-12-11 Thread Ed Howland

On Thu, Dec 11, 2008 at 10:26 PM, brian bally.z...@gmail.com wrote:

 BTW, why would you not want to version-control core.php or database.php?

Well the site with the tip lays it out, but in my case, I am
developing on my laptop and we also have a server for all the devs to
work on. The DB's configs are quite different. Also, we keep core.php
(DEBUG=0) to be as close as possible to the final production env.

Ed
-- 
Ed Howland
http://greenprogrammer.blogspot.com
http://twitter.com/ed_howland

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Tip: ignoring tmp dirs in Subversion

2008-12-11 Thread brian

On Thu, Dec 11, 2008 at 11:33 PM, Ed Howland ed.howl...@gmail.com wrote:

 On Thu, Dec 11, 2008 at 10:26 PM, brian bally.z...@gmail.com wrote:

 BTW, why would you not want to version-control core.php or database.php?

 Well the site with the tip lays it out, but in my case, I am
 developing on my laptop and we also have a server for all the devs to
 work on. The DB's configs are quite different. Also, we keep core.php
 (DEBUG=0) to be as close as possible to the final production env.

Oh, of course. That was a dumb question.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---