You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Robert P. J. Day" <rp...@crashcourse.ca> on 2008/09/13 21:54:56 UTC

fetching older repo snapshots

from http://svnbook.red-bean.com/nightly/en/svn.tour.history.html:

"In addition to all of the previous commands, you can use svn update  
and svn checkout with the --revision option to take an entire working  
copy ?back in time?: [7]

$ svn checkout -r 1729 # Checks out a new working copy at r1729
?
$ svn update -r 1729 # Updates an existing working copy to r1729
?
"

   first, are those two variations exactly equivalent?  is there a  
reason to choose one over the other?  also, if they're equivalent, i  
suspect the wording "you can use svn update and svn checkout with the  
--revision option ..." should be changed to "you can use svn update  
***or*** svn checkout with the --revision option ...", lest newbies  
get the impression that they need to invoke both for some reason.

rday



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

Re: fetching older repo snapshots

Posted by Blair Zajac <bl...@orcaware.com>.
Robert P. J. Day wrote:
> from http://svnbook.red-bean.com/nightly/en/svn.tour.history.html:
> 
> "In addition to all of the previous commands, you can use svn update and 
> svn checkout with the --revision option to take an entire working copy 
> ?back in time?: [7]
> 
> $ svn checkout -r 1729 # Checks out a new working copy at r1729
> ?
> $ svn update -r 1729 # Updates an existing working copy to r1729
> ?
> "
> 
>   first, are those two variations exactly equivalent?  is there a reason 
> to choose one over the other?  also, if they're equivalent, i suspect 
> the wording "you can use svn update and svn checkout with the --revision 
> option ..." should be changed to "you can use svn update ***or*** svn 
> checkout with the --revision option ...", lest newbies get the 
> impression that they need to invoke both for some reason.

Yes, they do the same thing.  You can't use update to check out a new working 
copy, but you can use checkout in a working copy and it'll behave like update.

Regards,
Blair

-- 
Blair Zajac, Ph.D.
CTO, OrcaWare Technologies
<bl...@orcaware.com>
Subversion training, consulting and support
http://www.orcaware.com/svn/

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

Re: fetching older repo snapshots

Posted by "Robert P. J. Day" <rp...@crashcourse.ca>.
Quoting Ryan Schmidt <su...@ryandesign.com>:

> On Sep 13, 2008, at 4:54 PM, Robert P. J. Day wrote:
>
>> from http://svnbook.red-bean.com/nightly/en/svn.tour.history.html:
>>
>> "In addition to all of the previous commands, you can use svn   
>> update and svn checkout with the --revision option to take an   
>> entire working copy ?back in time?: [7]
>>
>> $ svn checkout -r 1729 # Checks out a new working copy at r1729
>> ?
>> $ svn update -r 1729 # Updates an existing working copy to r1729
>> ?
>> "
>>
>>  first, are those two variations exactly equivalent?  is there a   
>> reason to choose one over the other?
>
> "svn checkout" checks out a new working copy.
> "svn update" updates an existing working copy.

i realize that, but my question was in the context of resyncing a
working copy to a specific revision and whether, in that context,
the above two operations were functionally *exactly* equivalent,
and i believe we've established that, yes, they are.

rday


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

Re: fetching older repo snapshots

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Sep 13, 2008, at 4:54 PM, Robert P. J. Day wrote:

> from http://svnbook.red-bean.com/nightly/en/svn.tour.history.html:
>
> "In addition to all of the previous commands, you can use svn  
> update and svn checkout with the --revision option to take an  
> entire working copy ?back in time?: [7]
>
> $ svn checkout -r 1729 # Checks out a new working copy at r1729
> ?
> $ svn update -r 1729 # Updates an existing working copy to r1729
> ?
> "
>
>   first, are those two variations exactly equivalent?  is there a  
> reason to choose one over the other?

"svn checkout" checks out a new working copy.
"svn update" updates an existing working copy.

> also, if they're equivalent, i suspect the wording "you can use svn  
> update and svn checkout with the --revision option ..." should be  
> changed to "you can use svn update ***or*** svn checkout with the -- 
> revision option ...", lest newbies get the impression that they  
> need to invoke both for some reason.

Book feedback should be sent to the book mailing list. See the  
section "Feedback/Contributing" at http://svnbook.org/

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