You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Waynn Lue <wa...@gmail.com> on 2008/07/11 12:45:06 UTC

svn export and deleted files

I'm using svn export to update a production website as certain users make
changes.  I pass the --force flag to clobber existing files, but I realized
that if I do svn delete, that change isn't reflected in production.  One
solution is to delete all the files and then export it, but given that it's
live, I kind of don't want there to be a period of time where there aren't
any files.

How have other people dealt with this?

Thanks,
Waynn

Re: svn export and deleted files

Posted by Waynn Lue <wa...@gmail.com>.
On Fri, Jul 11, 2008 at 9:59 PM, Mark Reibert <sv...@reibert.com> wrote:

> On Fri, 2008-07-11 at 13:57 +0100, Greg Thomas wrote:
> > On Fri, 11 Jul 2008 05:45:06 -0700, "Waynn Lue" <wa...@gmail.com>
> > wrote:
> >
> > >I'm using svn export to update a production website as certain users
> make
> > >changes.  I pass the --force flag to clobber existing files, but I
> realized
> > >that if I do svn delete, that change isn't reflected in production.
> >
> > Make you web site a working copy; a "svn update" will then ensure
> > files are appropriately deleted.
>
> If you do not want all the .svn directories on your web server you can
> use svn export along with rsync. Something like:
>
> svn export $REPO_URL /tmp/stage
> rsync -aHS --delete /tmp/stage/ $DOCUMENT_ROOT
>
Ah, that makes sense.  Yeah, I was using svn update before, but didn't want
to export .svn directories so went to svn export, but found this new
problem.  I've since configured Apache not to allow .svn dirs to be browsed,
so maybe I should revisit the svn checkout/update solution.

Thanks for all the help!

Re: svn export and deleted files

Posted by Mark Reibert <sv...@reibert.com>.
On Fri, 2008-07-11 at 13:57 +0100, Greg Thomas wrote:
> On Fri, 11 Jul 2008 05:45:06 -0700, "Waynn Lue" <wa...@gmail.com>
> wrote:
> 
> >I'm using svn export to update a production website as certain users make
> >changes.  I pass the --force flag to clobber existing files, but I realized
> >that if I do svn delete, that change isn't reflected in production.
> 
> Make you web site a working copy; a "svn update" will then ensure
> files are appropriately deleted.

If you do not want all the .svn directories on your web server you can
use svn export along with rsync. Something like:

svn export $REPO_URL /tmp/stage
rsync -aHS --delete /tmp/stage/ $DOCUMENT_ROOT

-- 
----------------------
Mark S. Reibert, Ph.D.
svn@reibert.com
----------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svn export and deleted files

Posted by "Hyrum K. Wright" <hy...@mail.utexas.edu>.
Greg Thomas wrote:
> On Fri, 11 Jul 2008 05:45:06 -0700, "Waynn Lue" <wa...@gmail.com>
> wrote:
> 
>> I'm using svn export to update a production website as certain users make
>> changes.  I pass the --force flag to clobber existing files, but I realized
>> that if I do svn delete, that change isn't reflected in production.
> 
> Make you web site a working copy; a "svn update" will then ensure
> files are appropriately deleted.
> 
> You may also want to note
> http://subversion.tigris.org/faq.html#website-auto-update

You could also do a fresh export every time and either symlink it to the 
live website, or just mv the directory to the correct location.

-Hyrum


Re: svn export and deleted files

Posted by Greg Thomas <th...@omc.bt.co.uk>.
On Fri, 11 Jul 2008 05:45:06 -0700, "Waynn Lue" <wa...@gmail.com>
wrote:

>I'm using svn export to update a production website as certain users make
>changes.  I pass the --force flag to clobber existing files, but I realized
>that if I do svn delete, that change isn't reflected in production.

Make you web site a working copy; a "svn update" will then ensure
files are appropriately deleted.

You may also want to note
http://subversion.tigris.org/faq.html#website-auto-update

Greg
-- 
This post represents the views of the author and does
not necessarily accurately represent the views of BT.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org