You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Volker Vosskaemper <vo...@cenote.de> on 2004/03/21 12:16:17 UTC

How to get a plain list of changed files

Hello,

I use "merge --dry-run -rX:head" to get a list of changed files between 
revisions.

This list is not useable for batchprocessing because of the flags and 
some possible
"skip.. " comments.

It would be nice to have one. So I could process such a list with ant to 
make a
patch fileset of  changed files.

If theres no way to get a plain list in this version, it would be a nice 
feature to implement
an option like --plain-file-list-output  :-)


Regards
   
    Volker






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

Re: How to get a plain list of changed files

Posted by Neil Gower <ne...@digitalextremes.com>.
Volker Vosskaemper wrote:
> 
>> what about:
>>  svn diff -rx:head|grep Index: |sed s/Index://g
>>
> thanx for your answer. But this is not platform independent.

If you can install a little software on the client side, that solution 
will work on Windows (presumably the platform you're worried about). 
Check out:

http://unxutils.sourceforge.net/

Cheers,


Neil.




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

Re: How to get a plain list of changed files

Posted by Volker Vosskaemper <vo...@cenote.de>.

Hello Jeff ,

>what about:
>  svn diff -rx:head|grep Index: |sed s/Index://g
>
>-Jeff
>
>  
>
thanx for your answer. But this is not platform independent.

See my answer to Ben for more information.

Regards

Volker



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

Re: How to get a plain list of changed files

Posted by Jeff Hinrichs <je...@delasco.com>.
Volker Vosskaemper said:
> Hello,
>
> I use "merge --dry-run -rX:head" to get a list of changed files between
> revisions.
>
> This list is not useable for batchprocessing because of the flags and
> some possible
> "skip.. " comments.
>
> It would be nice to have one. So I could process such a list with ant to
>  make a
> patch fileset of  changed files.
>
> If theres no way to get a plain list in this version, it would be a nice
>  feature to implement
> an option like --plain-file-list-output  :-)

what about:
  svn diff -rx:head|grep Index: |sed s/Index://g

-Jeff




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

Re: How to get a plain list of changed files

Posted by Volker Vosskaemper <vo...@cenote.de>.
I just saw this on the main website under features:

---

    * *Parseable output*

      All output of the Subversion command-line client is carefully
      designed to be both human readable and automatically parseable;
      scriptability is a high priority.

---


hope this helps my argumentation ;-)


regards

   Volker


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

Re: How to get a plain list of changed files

Posted by su...@millenix.mailshell.com.
Volker Vosskaemper wrote:
> Hello Ben,
> 
> thanx for your answer. But this is more bad than that what I have now :-)
> 
>> Interesting suggestion... have you tried running "svn log -v -rX"?  It
>> shows a plain list of changed files.  If you add the --xml switch, you
>> could even write a script that runs over a range of revnums, parses out
>> the changed paths, and combines them into a unique list.
> 
> svn log -v not only gives the same unwanted flags at the beginning of the
> line additional there are the logmessages and it is possible to get an 
> duplicated filename if you compare more than one rev eg. -r102:208 :-( >
> I don't want to parse that output (that's what I'm doing now :-) )
> 
> For platform independent public projekts it is not nice to need unknown 
> foraign helper programs, like my java parser I have written for the merge
> --dry-run output :-)
> 
> I think, the information I want is already there. But packed with 
> additional, for me unneeded, information. I belive that it would be only
> a few lines to code that, and I hope, that you belive, that this could be
> interesting for the public :-)
> 
> The need is: plain file output (full path, as is now) and suppressing of 
> lines like skipping.... etc.
> 
> Again:
> This is very usefull if you want create a patchset - a list of changed 
> files to update something, maybe a website, where you don't want to
> upload all the images and other files, just the new and changed :-)
> 
> And if you may change this, apache ant can do all the rest of that work. 
> :-)
> 
> regards
> 
> Volker

Perhaps you can use the language bindings for java, since you're already 
talking about writing a custom parser in it. You'd be much better off 
getting the raw data than the text output, at least.

Philip Miller

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

Re: How to get a plain list of changed files

Posted by Volker Vosskaemper <vo...@cenote.de>.
Hello Ben,

thanx for your answer. But this is more bad than that what I have now :-)

>Interesting suggestion... have you tried running "svn log -v -rX"?  It
>shows a plain list of changed files.  If you add the --xml switch, you
>could even write a script that runs over a range of revnums, parses out
>the changed paths, and combines them into a unique list.
>  
>

svn log -v not only gives the same unwanted flags at the beginning of 
the line
additional there are the logmessages and it is possible to get an 
duplicated filename
if you compare more than one rev eg. -r102:208    :-(

I don't want to parse that output (that's what I'm doing now :-) )

For platform independent public projekts it is not nice to need unknown 
foraign helper programs,
like my java parser I have written for the merge --dry-run output :-)

I think, the information I want is already there. But packed with 
additional, for me unneeded, information.
I belive that it would be only a few lines to code that, and I hope, 
that you belive, that this could be
interesting for the public :-)

The need is: plain file output (full path, as is now) and suppressing of 
lines like
skipping.... etc.

Again:
This is very usefull if you want create a patchset - a list of changed 
files to update something,
maybe a website, where you don't want to upload all the images and other 
files,
just the new and changed :-)

And if you may change this, apache ant can do all the rest of that work. :-)

regards

Volker






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

Re: How to get a plain list of changed files

Posted by Ben Collins-Sussman <su...@collab.net>.
On Sun, 2004-03-21 at 06:16, Volker Vosskaemper wrote:
> Hello,
> 
> I use "merge --dry-run -rX:head" to get a list of changed files between 
> revisions.

Interesting suggestion... have you tried running "svn log -v -rX"?  It
shows a plain list of changed files.  If you add the --xml switch, you
could even write a script that runs over a range of revnums, parses out
the changed paths, and combines them into a unique list.



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