You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by sy...@grmtech.com on 2005/03/05 01:21:36 UTC

Re: svn propget for 9000 revisions. there must be a more efficient way

cool, so i need to use two commands on the file svn log and then a svn
diff. One more related question, svn log -vq <filename> gives me a output
which is rather big, do i need to parse it to get the revision numbers
where the file changed (either the content or the property) or do we have
a simpler way to directly get the revisions when the file changed which
can then be fed to svn diff.

svn log -vq index.html
------------------------------------------------------------------------
r16 | root | 2005-03-04 04:34:09 -0800 (Fri, 04 Mar 2005)
Changed paths:
   M /trunk/www/articles/index.html
------------------------------------------------------------------------
r15 | root | 2005-03-04 04:33:11 -0800 (Fri, 04 Mar 2005)
Changed paths:
   M /trunk/www/articles/index.html
------------------------------------------------------------------------


regards,

vikas
>
> On Mar 4, 2005, at 6:03 PM, sysadmin@grmtech.com wrote:
>>
>> there must be some more efficient ways there ? any pointers ?
>>
>>
>
> 'svn log -v index.html' will show every revision in which index.html
> changed.  That's pretty much the point of 'svn log'.
>
> It won't tell you if it was a textual change or a property change, or
> both.  But 'svn diff -r X-1:X index.html' will show you the specifics.
>
>
> ---------------------------------------------------------------------
> 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

Re: svn propget for 9000 revisions. there must be a more efficient way

Posted by Ben Collins-Sussman <su...@collab.net>.
On Mar 4, 2005, at 7:21 PM, sysadmin@grmtech.com wrote:

> cool, so i need to use two commands on the file svn log and then a svn
> diff. One more related question, svn log -vq <filename> gives me a 
> output
> which is rather big, do i need to parse it to get the revision numbers
> where the file changed (either the content or the property) or do we 
> have
> a simpler way to directly get the revisions when the file changed which
> can then be fed to svn diff.
>

You have two more options --

1. 'svn log -vq --xml' might be easier to parse,

2.  if you direct access to the repository (no network), you can run 
'svnlook history'.  For example:

$ svnlook history /usr/local/svn/testrepos svn_xml.h

REVISION   PATH
--------   ----
       20   /svn_xml.h
       19   /svn_xml.h
       18   /svn_xml.h
       17   /svn_xml.h
       16   /svn_xml.h
        1   /svn_xml.h


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