[OT] SVN - Omitting a directory from live update

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

[OT] SVN - Omitting a directory from live update

Paul Fabris
Greetings SVN experts on the list.  

I'm using Aptana's built in SVN client software to handle version control.  Is it possible, somehow, to tell SVN to not publish a particular folder when issuing the "svn update" command?

My workflow is:
        do development on a working copy
        working copy is hosted on a staging server for testing by myself and others
        commit changes when we're all happy
        go to live server, which is linked to the SVN Repo
        svn update

Works great, but, of course, it syncs everything, including some folders that I would rather not be in my live site.  They contain photoshop originals, temp files and often, I like to move old copies of a file to a "disabled" folder but still have them
handy incase I need to quickly copy/paste some old code into a new copy of the file.  I don't want to have to go into version history to access these old files, and I don't want these files published to the live site on update.  

How do I update my live site while excluding certain directories?



--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: [OT] SVN - Omitting a directory from live update

Conny Larsson

Maybe there are other ways but I use "Add to SVN Ignore" on those  
files I don't want in the reposity (eg. some serversettings.inc and  
customerupload folder). And in my "trunk" I have webroot and Assets  
folder. In Assets I have all my Photoshopfiles, documents and so on...  
Then on liveserver I only checkout webroot.
Hope this can give you some idé of how to work with SVN.

/Conny

6 mar 2009 kl. 19.19 skrev Paul Fabris:

> Greetings SVN experts on the list.
>
> I'm using Aptana's built in SVN client software to handle version  
> control.  Is it possible, somehow, to tell SVN to not publish a  
> particular folder when issuing the "svn update" command?
>
> My workflow is:
> do development on a working copy
> working copy is hosted on a staging server for testing by myself  
> and others
> commit changes when we're all happy
> go to live server, which is linked to the SVN Repo
> svn update
>
> Works great, but, of course, it syncs everything, including some  
> folders that I would rather not be in my live site.  They contain  
> photoshop originals, temp files and often, I like to move old copies  
> of a file to a "disabled" folder but still have them
> handy incase I need to quickly copy/paste some old code into a new  
> copy of the file.  I don't want to have to go into version history  
> to access these old files, and I don't want these files published to  
> the live site on update.
>
> How do I update my live site while excluding certain directories?
>
>
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>

____________________________________
Montania System AB
http://www.montania.se

Conny Larsson





--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: [OT] SVN - Omitting a directory from live update

Tim Taplin
In reply to this post by Paul Fabris
With a somewhat similar situation, I setup a repository that has, at  
its root work file folders as well as publishable site folders.  Then  
setup the live server to checkout files from the site folders only.
This way you and your team have access to the support files and the  
live site can be updated whenever you need.

Hope that helps.

Tim Taplin

On Mar 6, 2009, at 11:19 AM, Paul Fabris wrote:

> Greetings SVN experts on the list.
>
> I'm using Aptana's built in SVN client software to handle version  
> control.  Is it possible, somehow, to tell SVN to not publish a  
> particular folder when issuing the "svn update" command?
>
> My workflow is:
> do development on a working copy
> working copy is hosted on a staging server for testing by myself  
> and others
> commit changes when we're all happy
> go to live server, which is linked to the SVN Repo
> svn update
>
> Works great, but, of course, it syncs everything, including some  
> folders that I would rather not be in my live site.  They contain  
> photoshop originals, temp files and often, I like to move old copies  
> of a file to a "disabled" folder but still have them
> handy incase I need to quickly copy/paste some old code into a new  
> copy of the file.  I don't want to have to go into version history  
> to access these old files, and I don't want these files published to  
> the live site on update.
>
> How do I update my live site while excluding certain directories?
>
>
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>



--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: [OT] SVN - Omitting a directory from live update

decorior
In reply to this post by Paul Fabris
I have not used this yet, but 1.5.5 has "sparse checkouts"

This allows you to selectively checkout a portion of the site.   We  
have not upgraded yet because I am not sure of CODA support, but the  
upgrade has some new features.

http://subversion.tigris.org/svn_1.5_releasenotes.html#sparse-checkouts

On Mar 6, 2009, at 11:19 AM, Paul Fabris wrote:

> Greetings SVN experts on the list.
>
> I'm using Aptana's built in SVN client software to handle version  
> control.  Is it possible, somehow, to tell SVN to not publish a  
> particular folder when issuing the "svn update" command?
>
> My workflow is:
> do development on a working copy
> working copy is hosted on a staging server for testing by myself  
> and others
> commit changes when we're all happy
> go to live server, which is linked to the SVN Repo
> svn update
>
> Works great, but, of course, it syncs everything, including some  
> folders that I would rather not be in my live site.  They contain  
> photoshop originals, temp files and often, I like to move old copies  
> of a file to a "disabled" folder but still have them
> handy incase I need to quickly copy/paste some old code into a new  
> copy of the file.  I don't want to have to go into version history  
> to access these old files, and I don't want these files published to  
> the live site on update.
>
> How do I update my live site while excluding certain directories?
>
>
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/





--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: [OT] SVN - Omitting a directory from live update

jasonhuck
Aptana's built-in SVN support is just the Subclipse plug-in for
Eclipse (which is not a bad thing by any means, it's my favorite SVN
client).

You can selectively update just a portion of a project, all the way
down to an individual file, by selecting that file/folder directly,
right-clicking, and choosing "Team...Update." It will only update from
that point in the file tree down.

Aptana's interface might have shortcuts in different places than
normal Eclipse, but I'm sure you can do the same thing one way or
another.

- jason




--
tagSwap.net :: Open Source Lasso Code
<http://tagSwap.net/>


--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: [OT] SVN - Omitting a directory from live update

Paul Fabris
I like the suggestion of maintaining a structure like this:

SVNRepo/
        project/
                trunk/
                        site_root
                        offline_resources

stagingroot/ << working copy directory; analagous to trunk; commit from here
        hosted_docs << apache hosts from here
        offline_resources

liveroot/  << update svn pulls from site_root into here;  apache hosts from here

I could setup the staging environment with a working copy directly off the trunk, so that everyone has access to both the site_root and the offline_resources.  Then, to update the live site, I'd just cd to the root of the live site and svn update from
the /trunk/site_root

That solves a lot of issues, however, on the staging site, there are still files that get generated from normal testing use (for instance: file uploads) that I wouldn't want propogating to the live site when doing an svn_update.

So, the question still stands:  Can I tell SVN to update my live site, but when doing so to always skip updating certain subfolders?

The sparse update feature seems to allow you to say: update only the root directory, or update to a depth of x directories, or only update a certain file.  Nice, but its a maual process.

What would be nice is if there was a way to flag a certain directory in the Repo so that it doesn't publish during a recursive update.



--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: [OT] SVN - Omitting a directory from live update

jasonhuck
You can set the svn:ignore property to disregard specific files and folders.

Also, when doing an update via Aptana, there should be a checkbox for
"Show unversioned files." If you uncheck that, it won't try to be
"helpful" and include all the autogenerated stuff you haven't
explicitly added to version control.

Sometimes the "convenience" features are anything but.

- jason



On Fri, Mar 6, 2009 at 3:34 PM, Paul Fabris <[hidden email]> wrote:

> I like the suggestion of maintaining a structure like this:
>
> SVNRepo/
>        project/
>                trunk/
>                        site_root
>                        offline_resources
>
> stagingroot/ << working copy directory; analagous to trunk; commit from here
>        hosted_docs << apache hosts from here
>        offline_resources
>
> liveroot/  << update svn pulls from site_root into here;  apache hosts from here
>
> I could setup the staging environment with a working copy directly off the trunk, so that everyone has access to both the site_root and the offline_resources.  Then, to update the live site, I'd just cd to the root of the live site and svn update from
> the /trunk/site_root
>
> That solves a lot of issues, however, on the staging site, there are still files that get generated from normal testing use (for instance: file uploads) that I wouldn't want propogating to the live site when doing an svn_update.
>
> So, the question still stands:  Can I tell SVN to update my live site, but when doing so to always skip updating certain subfolders?
>
> The sparse update feature seems to allow you to say: update only the root directory, or update to a depth of x directories, or only update a certain file.  Nice, but its a maual process.
>
> What would be nice is if there was a way to flag a certain directory in the Repo so that it doesn't publish during a recursive update.
>
>
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>
>



--
tagSwap.net :: Open Source Lasso Code
<http://tagSwap.net/>


--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: [OT] SVN - Omitting a directory from live update

Göran Törnquist-2
However, if you have already added a folder using svn add (or the
equivalent in your IDE), then svn:ignore won't work.

Important note! Make a copy of the folder you want to be excluded.
Deleting a folder or file from the repo often means you're deleting it
from the local copy as well.

That said: You'll have to (sigh) delete the folder from the repo,
commit, and then add the folder to svn:ignore.

/Göran

Jason Huck wrote:

> You can set the svn:ignore property to disregard specific files and folders.
>
> Also, when doing an update via Aptana, there should be a checkbox for
> "Show unversioned files." If you uncheck that, it won't try to be
> "helpful" and include all the autogenerated stuff you haven't
> explicitly added to version control.
>
> Sometimes the "convenience" features are anything but.
>
> - jason
>
>
>
> On Fri, Mar 6, 2009 at 3:34 PM, Paul Fabris <[hidden email]> wrote:
>  
>> I like the suggestion of maintaining a structure like this:
>>
>> SVNRepo/
>>        project/
>>                trunk/
>>                        site_root
>>                        offline_resources
>>
>> stagingroot/ << working copy directory; analagous to trunk; commit from here
>>        hosted_docs << apache hosts from here
>>        offline_resources
>>
>> liveroot/  << update svn pulls from site_root into here;  apache hosts from here
>>
>> I could setup the staging environment with a working copy directly off the trunk, so that everyone has access to both the site_root and the offline_resources.  Then, to update the live site, I'd just cd to the root of the live site and svn update from
>> the /trunk/site_root
>>
>> That solves a lot of issues, however, on the staging site, there are still files that get generated from normal testing use (for instance: file uploads) that I wouldn't want propogating to the live site when doing an svn_update.
>>
>> So, the question still stands:  Can I tell SVN to update my live site, but when doing so to always skip updating certain subfolders?
>>
>> The sparse update feature seems to allow you to say: update only the root directory, or update to a depth of x directories, or only update a certain file.  Nice, but its a maual process.
>>
>> What would be nice is if there was a way to flag a certain directory in the Repo so that it doesn't publish during a recursive update.
>>
>>
>>
>> --
>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>
>>
>>
>>    
>
>
>
>  


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/