Re: SOT: Subversion Revisions

2007-06-22 Thread John Paul Ashenfelter
On 6/21/07, Cutter (CFRelated) [EMAIL PROTECTED] wrote:
 OK, quick OT. Moving to using Subversion in our dev environment (yeah!),
 but hitting a few stumbling blocks.

 I can 'export' a clean version of my 'HEAD', or any revision. But, I
 have a massive (3,000+ template) code base. Not every 'commit' to the
 system is tagged, or part of a branch.

I reread your post and noticed this -- not sure what you mean about
not every commit is tagged...  tags are generally used to bundle up a
bunch of changes to move it to qa/integration/uat/whatever. it's a
snapshot of the repository status at a particular time you've pasted a
label onto. So as you're working in trunk, you decide this is it,
use svn copy to tag it as REL-1.0 and now you've got a reliable point
to pull the release from, even while development is continuing in
trunk.

And as far as branches -- there shouldn't be all that many branches.
Folks using SVN typically use branches for feature changes, releases,
or in some cases individual developers. The most basic scenario is
that everyone's working in trunk, you get to a point where it's ready
to move to QA or production or whatever, you tag it, and then you use
that tag for deploying.

3000 templates at @ 10kb each (generously large for CF imho) is still
not all that much to deploy...  30mb uploads are quite feasible across
a DSL modem let alone T1. I routinely deploy an 8gb application
(mostly media content) using export from svn across a T1 line (unless
it's an emergency - - then we push just the cf templates (assuming a
cf prob) or run a USB drive the 30m out to the colo).

How (or is it even possible) do I
 pull ONLY the modified files from the repository? I have SvnAnt
 installed within Eclipse, to utilize Ant with Subversion for creating
 builds and deployments, but I'm still struggling to get my head around
 all of this.

You *could* create a patchfile, which contains all of the differences
between two versions of something in the repository (eg a file,
directory, or entire tree) and then apply the patchfile directly to
your previous application to update it -- but that's a pretty unusual
approach to build management that will probably bite you in the end.

My general experience is that exports are the best way to go, though
in some cases using svn checkouts on the *integration* server to
manage the initial build works fine. Even in that case, the QA/UAT
and definitely production builds are typically full exports.

 --
 Steve Cutter Blades
 Adobe Certified Professional
 Advanced Macromedia ColdFusion MX 7 Developer
 _
 http://blog.cutterscrossing.com

 

~|
ColdFusion MX7 by Adobe®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281898
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


SOT: Subversion Revisions

2007-06-21 Thread Cutter (CFRelated)
OK, quick OT. Moving to using Subversion in our dev environment (yeah!), 
but hitting a few stumbling blocks.

I can 'export' a clean version of my 'HEAD', or any revision. But, I 
have a massive (3,000+ template) code base. Not every 'commit' to the 
system is tagged, or part of a branch. How (or is it even possible) do I 
pull ONLY the modified files from the repository? I have SvnAnt 
installed within Eclipse, to utilize Ant with Subversion for creating 
builds and deployments, but I'm still struggling to get my head around 
all of this.

-- 
Steve Cutter Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_
http://blog.cutterscrossing.com

~|
Create Web Applications With ColdFusion MX7  Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281794
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Subversion Revisions

2007-06-21 Thread Russ
This is why we don't export, but check out a working copy for the production
environment.  This way only modified file are pulled down when you do an
update.  The only downside is that the code will take up roughly twice the
space.  

You also got to make sure that .svn folders are protected.  Apache does it
by default, I believe, not sure about IIS. 

Russ



 -Original Message-
 From: Cutter (CFRelated) [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 21, 2007 11:55 AM
 To: CF-Talk
 Subject: SOT: Subversion Revisions
 
 OK, quick OT. Moving to using Subversion in our dev environment (yeah!),
 but hitting a few stumbling blocks.
 
 I can 'export' a clean version of my 'HEAD', or any revision. But, I
 have a massive (3,000+ template) code base. Not every 'commit' to the
 system is tagged, or part of a branch. How (or is it even possible) do I
 pull ONLY the modified files from the repository? I have SvnAnt
 installed within Eclipse, to utilize Ant with Subversion for creating
 builds and deployments, but I'm still struggling to get my head around
 all of this.
 
 --
 Steve Cutter Blades
 Adobe Certified Professional
 Advanced Macromedia ColdFusion MX 7 Developer
 _
 http://blog.cutterscrossing.com
 
 

~|
Create Web Applications With ColdFusion MX7  Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281801
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: SOT: Subversion Revisions

2007-06-21 Thread Doug Bezona
Presumably you mean for deployment purposes?

What we do is keep a working copy checked out on our dev and qa servers, and
our Ant deployment script simply does an update on the working copy when
we are ready to deploy.

The only downside is that you have all of the .svn directories around. For
our dev and qa environments, this is no biggie, but it's not what we want
for production. In our case, we just do a full export for production, since
even though we have a similarly large codebase, our qa and production
servers are in the same datacenter, and the export is very very fast.

Also, look into the Ant sync task, which will copy/add/delete only changed
files (again from a working copy you have already updated), and you can use
a file or directory filter to exclude the .svn directories. My only trouble
with this method is it's incredibly slow over a mapped drive. This on
Windows mind you, and it's Window's fault, not Ant's. This probably works
quite dandy on Linux over NFS.



On 6/21/07, Cutter (CFRelated) [EMAIL PROTECTED] wrote:

 OK, quick OT. Moving to using Subversion in our dev environment (yeah!),
 but hitting a few stumbling blocks.

 I can 'export' a clean version of my 'HEAD', or any revision. But, I
 have a massive (3,000+ template) code base. Not every 'commit' to the
 system is tagged, or part of a branch. How (or is it even possible) do I
 pull ONLY the modified files from the repository? I have SvnAnt
 installed within Eclipse, to utilize Ant with Subversion for creating
 builds and deployments, but I'm still struggling to get my head around
 all of this.

 --
 Steve Cutter Blades
 Adobe Certified Professional
 Advanced Macromedia ColdFusion MX 7 Developer
 _
 http://blog.cutterscrossing.com

 

~|
ColdFusion MX7 by Adobe®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281811
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Subversion Revisions

2007-06-21 Thread Dinner
One can set up a post-commit hook as well... check out The Book, for examples
of stuff.

Wouldn't be trivial, but I think that's how you'd do it, if you
weren't using a working
copy of some sort.

:D

On 6/21/07, Russ wrote:
 This is why we don't export, but check out a working copy for the production
 environment.  This way only modified file are pulled down when you do an
 update.  The only downside is that the code will take up roughly twice the
 space.

 You also got to make sure that .svn folders are protected.  Apache does it
 by default, I believe, not sure about IIS.

 Russ

~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281829
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: SOT: Subversion Revisions

2007-06-21 Thread Dinner
On 6/21/07, Doug Bezona wrote:
 The only downside is that you have all of the .svn directories around. For
 our dev and qa environments, this is no biggie, but it's not what we want
 for production. In our case, we just do a full export for production, since
 even though we have a similarly large codebase, our qa and production
 servers are in the same datacenter, and the export is very very fast.

Rsync is also a great option.  Only copies what's changed, and you can
tell it to exclude certain directories, etc. (like .svn).  Can work over ssh,
etc..

There are ports for windows too.

~|
Create Web Applications With ColdFusion MX7  Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281831
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Subversion Revisions

2007-06-21 Thread Jaime Metcher
We check out a working copy to our integration server, then use a file
comparison/copy tool to go from there to production.  For incremental
releases, this means we just do a svn update to the integration server -
no need for a full checkout each time.

Ant or even xcopy can do the upload to production, but we use a gui tool
called directory toolkit (we have mapped drive access to the production
server).  By default directory toolkit ignores hidden files, so the .svn
files aren't a problem.

Jaime Metcher

 -Original Message-
 From: Cutter (CFRelated) [mailto:[EMAIL PROTECTED]
 Sent: Friday, 22 June 2007 1:55 AM
 To: CF-Talk
 Subject: SOT: Subversion Revisions


 OK, quick OT. Moving to using Subversion in our dev environment (yeah!),
 but hitting a few stumbling blocks.

 I can 'export' a clean version of my 'HEAD', or any revision. But, I
 have a massive (3,000+ template) code base. Not every 'commit' to the
 system is tagged, or part of a branch. How (or is it even possible) do I
 pull ONLY the modified files from the repository? I have SvnAnt
 installed within Eclipse, to utilize Ant with Subversion for creating
 builds and deployments, but I'm still struggling to get my head around
 all of this.

 --

 Steve Cutter Blades
 Adobe Certified Professional
 Advanced Macromedia ColdFusion MX 7 Developer
 _
 http://blog.cutterscrossing.com

 

~|
ColdFusion MX7 and Flex 2 
Build sales  marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281850
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4