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

Re: How to trace back a modify history of single file?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-02-18 15:00:36 CET

On Feb 18, 2005, at 1:33 AM, Diviner wrote:

> Ben Collins-Sussman,
> No, I should apologize to you for my bad english. So let me explain
> more
> details in different way.
> Let's say Project leader named Tom and also as a SVN login name. And
> some others programmers
> such as John, Peter, David. They are all project team's member.
> Our workflow is that, Tom splits a project to several modules and put
> each module into separate
> branch. Then distributes branch to certain programmer, such as Module1
> for John, Module 2 for
> Peter, and so forth. After programm done his module, Tom double checks
> his module code from
> the related branch and do a brief test. If there is ok, Tom merge this
> branch to trunk.
> After the days, Tom find that a file has an error. He want to find out
> the programmer who write
> the code to fix it off. But if Tom check the "change log" from trunk,
> all files is changed by Tom
> because all the files in trunk is updated (merge & commit) by Tom
> himself. That is the main problem
> what I am meeting now. It is hard to find out the Real Developer of the
> code in a lot of Branches.

So suppose there is a file, "foo.c" in the trunk, and I want to know
who changed it.

If I run 'svn log foo.c', it will show me the history of the file,
going backwards in time:

    1. First, I might see recent changes to the file.
    2. Then I might see Tom's merging of changes. The commit message
would be something like, "merged (/branches/barbranch, r100:200) to

At that point, I know where to keep looking. I run

        svn log -r200:100 URL-to-barbranch

...and then I see that Peter is the one who did all the commits on that

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 18 15:05:52 2005

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.