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

Re: Retrieving all revisions with changes present

From: Paul Koning <Paul_Koning_at_dell.com>
Date: Wed, 14 Jan 2009 11:33:03 -0500

>>>>> "Harry" == Harry Putnam <reader_at_newsguy.com> writes:

 Harry> As someone about to switch from cvs to svn, I want to know how
 Harry> to do something like what I will describe, using svn.

 Harry> ...With cvs I was able to write a script that literally unwound
 Harry> every revision starting with what ever revision number I aimed
 Harry> it at, and put the entire change on stdout, one revision at a
 Harry> time but essentially a massive out pouring of text.

 Harry> ...With the big difference in subversion of creating a revision
 Harry> for each change to the entire repository, a file may remain
 Harry> unchanged for any number of revisions.

 Harry> So my approach above would lead to massive unnecessary
 Harry> grepping where the script didn't actually change.

 Harry> I'm guessing there is some way other than revision numbers to
 Harry> be able to home in on only those revisions where changes to
 Harry> scriptX were made.

Exactly. If you ask Subversion for the log of a particular file (or
directory) it will list only the revisions for which that file (or
that subtree, if a directory) was touched. So you might see something
like:

# svn log foo/bar/baz/scriptX

---
r92501  | fred | ...
Change it to do xyz
---
r4242   | mel |
Rewrote the init code not to use a jump instruction
---
r18 | bill |
Initial version
	paul
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1024441
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-01-14 17:34:46 CET

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.