You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Alexander Leschinsky <ba...@lair.pp.ru> on 2005/01/26 04:51:22 UTC
Changed files list
Hello,
Probably easy question, but even after RTFM I couldn't find answer
"How to get list of files, which was changed (in repo or WC) between
revisions A and B (B - mostly HEAD)?"
I want sync some remote locations with some state of repository files,
but don't want copy all files, because only rather small subset was
changed after last sync
--
Best regards,
Alexander Leschinsky
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Changed files list
Posted by Steve Greenland <st...@lsli.com>.
On Wed, Jan 26, 2005 at 09:48:09AM -0500, William Nagel wrote:
> svn log --quiet --verbose --revision A:B
See, this would be a case where the design/usability isn't very good.
Yes, it's documented properly, but that "--quiet" and "--verbose" don't
just cancel each other out is completely unexpected.
If the time ever comes that replacing/aliasing these is appropriate, one
might consider "--no-messages" and "--show-paths".
Ah well, hindsight is 20/20, it's easier to criticize than create, and
all that...
Steve
--
"Outlook not so good." That magic 8-ball knows everything! I'll ask
about Exchange Server next.
-- (Stolen from the net)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Changed files list
Posted by Ben Collins-Sussman <su...@collab.net>.
On Jan 26, 2005, at 8:48 AM, William Nagel wrote:
> On Jan 25, 2005, at 11:51 PM, Alexander Leschinsky wrote:
>
>> Hello,
>>
>> Probably easy question, but even after RTFM I couldn't find answer
>>
>> "How to get list of files, which was changed (in repo or WC) between
>> revisions A and B (B - mostly HEAD)?"
>
> Try:
>
> svn log --quiet --verbose --revision A:B
>
> That will give you all the files that have changed in each revision.
> You may need to do some processing to filter out multiples if files
> have been changed in more than one revision, though.
>
> Off the top of my head, I can't think of any command that will give
> you a condensed list of files that have changed in a range of
> revisions with multiples already removed. Of course, it's still early
> here, and I haven't had any coffee yet, so I may be forgetting
> something.
>
The log idea, as you say, might show redundant files.
Another strategy is
svn diff -r A:X URL | grep Index:
The problem with that, of course, is that it won't show adds/removals
of directories, nor will it be easy to see whether the files are being
changed, added, or removed.
Really, we should add a switch to 'svn diff' that shows a list of
file-codes, just like the way 'svn up' does.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Changed files list
Posted by William Nagel <bi...@stagelogic.com>.
On Jan 25, 2005, at 11:51 PM, Alexander Leschinsky wrote:
> Hello,
>
> Probably easy question, but even after RTFM I couldn't find answer
>
> "How to get list of files, which was changed (in repo or WC) between
> revisions A and B (B - mostly HEAD)?"
Try:
svn log --quiet --verbose --revision A:B
That will give you all the files that have changed in each revision.
You may need to do some processing to filter out multiples if files
have been changed in more than one revision, though.
Off the top of my head, I can't think of any command that will give you
a condensed list of files that have changed in a range of revisions
with multiples already removed. Of course, it's still early here, and
I haven't had any coffee yet, so I may be forgetting something.
Hope that helps,
-Bill Nagel
>
> I want sync some remote locations with some state of repository files,
> but don't want copy all files, because only rather small subset was
> changed after last sync
>
> --
> Best regards,
> Alexander Leschinsky
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org