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

RE: Checking out only files that changed

From: Geoffrey Devantier <Geoffrey.Devantier_at_derivco.com>
Date: 2007-05-14 12:27:35 CEST

Thanks

It turns out that a very easy way to do what I need to do:

Assuming I want to get only the files that changed for revision 42 to my
working folder, all I need to do is use "svn merge -c42 .@43 .
--dry-run" (without the --dry-run ofc when you want to do it for real)
at the command line. So long as I am at a higher folder level than what
the changes took place at (I will always execute this command at the
working copy directory representing the root of the repository) then
this is pretty much guaranteed to work.

Where this is very useful for me as a developer is that now I can put
some binary files into SVN and tell the testers "Please test the system
as reproduced by getting the files represented by revisions x, y and z
of the repository."

Regards
Geoff

-----Original Message-----
From: Karl Fogel [mailto:kfogel@red-bean.com]
Sent: Monday, May 14, 2007 10:40 AM
To: Geoffrey Devantier
Cc: users@subversion.tigris.org
Subject: Re: Checking out only files that changed

"Geoffrey Devantier" <Geoffrey.Devantier@derivco.com> writes:
> Please could someone give me some insight as to how to go about
getting
> only the files that changed on a particular revision? I know I could
do
> some perl (or otherwise) scripting using the svn log command and
> grabbing the files specified by the return. The downside of this is
that
> I don't really want to have all the company users of this repository
to
> have to install support for the scripting language as well as svn. Can
I
> do anything server side to add support for a "special" check out
> command? Has anyone solved this problem before that could save me some
> time?

You just want to get a list of the files? That's easy:

  $ svn diff --summarize -c25007 http://svn.collab.net/repos/svn/trunk
  M [...]/trunk/subversion/include/svn_client.h
  M [...]/trunk/subversion/libsvn_client/prop_commands.c
  M [...]/trunk/subversion/tests/cmdline/prop_tests.py
  M [...]/trunk/subversion/svn/proplist-cmd.c
  $

If you want to get the contents of the files, yes, you'll need to do
some scripting, Subversion doesn't offer that feature directly.

-Karl

-- 
Subversion support & consulting  <>
http://producingoss.com/consulting.html
#############################################################################################
The information transmitted is intended only for the person or entity to which it 
is addressed and may contain confidential and/or privileged material. 
Any review, retransmission, dissemination or other use of, or taking of any action
in reliance upon, this information by persons or entities other than the intended 
recipient is prohibited. If you received this in error, please contact the sender and
delete the material from any computer.
Furthermore, the information contained in this message, and any attachments thereto, is
for information purposes only and may contain the personal views and opinions of the 
author, which are not necessarily the views and opinions of the company.
#############################################################################################
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon May 14 12:28:40 2007

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.