[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: SVN Hook specifically for Trunk Question

From: Gavin Lambert <gavinl_at_compacsort.com>
Date: 2006-07-12 05:00:26 CEST

Quoth Robert Sandie <mailto:sandieman@gmail.com>:
> 1. svn export file:///var/production_repo/trunk/ /var/httpd -
> production server command?
> 2. svn update file:///var/production_repo/trunk/ /var/httpd
> - little less secure but okay for development?
>
> Is #2 the right command for abstracting all the information
> to the apache directory?

No, not quite.

You must first manually use the 'svn checkout' command to create the
working copy. This is where you use the URL. eg:

  svn checkout file:///var/production_repo/trunk/ /var/httpd

Once that is done, then you can use 'svn update' whenever you want to
update that working copy to the latest version (either manually or from
within a script):

  svn update /var/httpd

Note that the initial checkout will fail if you have files already in
/var/httpd (well, technically it'll only fail if you have clashing
files, ie. existing files with the same names as files in the
repository).

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jul 12 05:01:32 2006

This is an archived mail posted to the Subversion Users mailing list.