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

RE: can I checkout only a revision files ?

From: Andrea Antonio Maleci <A.Maleci_at_iwbank.it>
Date: Wed, 20 Oct 2010 17:28:05 +0200

[Please do not top-post on this list, add / insert your response in line]

> -----Original Message-----
> From: Cooke, Mark [mailto:mark.cooke_at_siemens.com]
> Sent: mercoledì 20 ottobre 2010 15.43
> To: Andrea Antonio Maleci; Andy Levy
> Cc: users_at_subversion.apache.org
> Subject: RE: can I checkout only a revision files ?
>
> [Please do not top-post on this list, add / insert your response in
> line]
>
> > -----Original Message-----
> > From: Andy Levy [mailto:andy.levy_at_gmail.com]
> > Sent: mercoledì 20 ottobre 2010 15.25
> > To: Andrea Antonio Maleci
> > Cc: users_at_subversion.apache.org
> > Subject: Re: can I checkout only a revision files ?
> >
> > On Wed, Oct 20, 2010 at 09:17, Andrea Antonio Maleci
> > <A.Maleci_at_iwbank.it> wrote:
> > > Is it possible to checkout only files (not patch, but
> > > entire files) from a specific revision ?
> >
> > Yes, use the --revision option for svn co.
> >
> > -----Original Message-----
> > From: Andrea Antonio Maleci [mailto:A.Maleci_at_iwbank.it]
> > Sent: 20 October 2010 14:34
> > To: 'Andy Levy'
> > Cc: users_at_subversion.apache.org
> > Subject: RE: can I checkout only a revision files ?
> >
> > It retrieves entire repository at specified revision, not
> > only the modified one...
> >
> That is the way subversion works. A revision number identifies a state
> of the complete repository and includes all files / folders / metadata
> etc.
>
> So, are you asking for only the files changed from the previous
> revision?

Yes, I need only last changes, but entire files, not only diffs.

>
> If so, why would you want that? Subversion only sends diffs between
> client and server, so that is already efficient.

It seems, from your answer, that I need to write a script, getting output from svn log e requiring to svn last revision of changed files.

>
> If you want a list of the changes you can use the 'log' command.
> Remember that metadata can also change in a revision, not just
> files/folders.
>
> I am not aware that you can ask subversion to give you a working copy
> only containing the files updated by a particular rev but I fail to see
> how that would be useful...

If you version and commit your classes, you need to get only changed one to patch you application server.
That's why I need last committed files.

>
> If that does not help, try rephrasing your question and/or providing
> more background.
>
> Cheers,
>
> ~ Mark C
Thanks,
Andrea
Received on 2010-10-20 17:28:44 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.