سؤال

I have two programmers who make changes to the same project. Their commits interchange, but they mostly work on different parts of the project (although very often they modify the same files):

 Commit 1 - Programmer A
 Commit 2 - Programmer A
 Commit 3 - Programmer B
 Commit 4 - Programmer A
 Commit 5 - Programmer B
 Commit 6 - Programmer A

Now I would like to review the changes between commit 1 and commit 6, but without seeing the changes made by programmer B (commit 3 and 5). I'm using WebSVN but it doesn't allow me to do that. Is it possible to achieve this effect using another tool, like TortoiseSVN?

EDIT: I understand that for some complex changes (the same file changed multiple times by different authors) it's hard to filter out changes made by programmer B completely. But it would be nice if the tool was at least able to filter out files that were changed only by programmer B from the result.

EDIT 2: Branching is not an option for me, as both of the programmers need to stay in sync with their code. I already tried this approach and ran into lots of trouble merging the changes, as the programmers often change the same files.

هل كانت مفيدة؟

المحلول

Is it possible to achieve this effect using another tool, like TortoiseSVN?

Yes: you can merge only the changesets you're interested in into your working copy, and review the combined change there.

If you need to do this kind of thing often, you probably want to look at using branches more (per person, or per feature).

نصائح أخرى

In TortoiseSVN you have to select the branch you would like to review. Let me assume you do this on trunk. Go via Repo-Browser and select trunk, right mouse button -> Show Log. In the Log Messages Windows you go to filter field and type in the author name (select from drop down author)...Then select the range of revisions you would like to check and right mouse button -> Compare Revisions and you see only the list of changes made by the selected author. You can select a particular file to review a file or select from the context menu Blame to see the lines which have been changed in relationship with others around...

And ouf course like already mentioned you should think about a branching strategy to simplify your life and of the developers too.

In TortoiseSVN you can do a "Blame" between two revisions for a specific file. This doesn't allow you to filter out the programmer you don't want to see but it does allow you to see who made what change.

Checkout http://www.reviewboard.org/, it might help your case.

Checkout some comparison of code review tools

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top