You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by André-John Mas <an...@gmail.com> on 2008/04/22 16:48:10 UTC
Listing changed files and change notes
Hi,
I am needing to get a list of all the files that changed between two
versions of a branch, and then display n characters of the comments of
each corresponding history entry. We will be using this to generate a
manifest of which files changed and why they were changed.
If anyone has done this, possibly as an Ant task or Java tool, I would
be interested if you could share what you have. If not, can anyone
point me in the right direction so that I could so implement the tool
myself?
Andre
--
mailto:andrejohn.mas@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Listing changed files and change notes
Posted by André-John Mas <an...@gmail.com>.
Well, the contents of the changes notes are meant to be ticket
numbers. So for example Bug1234. The significant part of the text in
the Bug#, so for example:
/mydir/myfile.txt
Bug1234
Bug5678
/mydir/myfile2.txt
Bug1234
Bug12AE
/mydir/myfile2.txt
A change with not bug number \n blah blah
If there is more text theOnce the data is compiled to a file then I
can parse it as necessary.
Andre
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Listing changed files and change notes
Posted by Hari Kodungallur <hk...@gmail.com>.
On Tue, Apr 22, 2008 at 9:48 AM, André-John Mas <an...@gmail.com>
wrote:
> Hi,
>
> I am needing to get a list of all the files that changed between two
> versions of a branch, and then display n characters of the comments of
> each corresponding history entry. We will be using this to generate a
> manifest of which files changed and why they were changed.
>
Not sure what kind of output you are looking. If a file changed multiple
times between the two revisions, what is the comment(s) for the file going
to be? A set of truncated comments would look odd, I think.
Can you show the output you are expecting to have?
>
> If anyone has done this, possibly as an Ant task or Java tool, I would
> be interested if you could share what you have. If not, can anyone
> point me in the right direction so that I could so implement the tool
> myself?
You can grep the output of 'svn log -rN:M <branch-url>' and get this done
(possibly a bash script). I do not know of any tool that does this already.
Or you could use the subversion APIs. There is a Java API that is very
mature. I have not used it and so I can't help you on that. I know that
PySVN is a pretty good client side python tool that can help you with this.
Regards,
-Hari
RE: Listing changed files and change notes
Posted by "Reedick, Andrew" <jr...@ATT.COM>.
> -----Original Message-----
> From: André-John Mas [mailto:andrejohn.mas@gmail.com]
> Sent: Tuesday, April 22, 2008 12:48 PM
> To: users@subversion.tigris.org
> Subject: Listing changed files and change notes
>
> Hi,
>
> I am needing to get a list of all the files that changed between two
> versions of a branch, and then display n characters of the comments of
> each corresponding history entry. We will be using this to generate a
> manifest of which files changed and why they were changed.
>
> If anyone has done this, possibly as an Ant task or Java tool, I would
> be interested if you could share what you have. If not, can anyone
> point me in the right direction so that I could so implement the tool
> myself?
>
Export the two branches and run diff or cmp or your favorite tree diff'ing tool. You could use 'svn log' to find the files that changed, however, if you delete a directory, the files under the deleted directory will not be listed.
I'm not an xslt weenie, but since 'svn log' has the --xml option, you should be able to create an xslt to rip out the comment fields and list modified files.
http://www.w3schools.com/xsl/
*****
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, 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 all computers. GA621
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org