Is there any better way for reviewing code differences for revisions?
Added by Tomasz O about 9 years ago
Hi all,
I have Redmine connected to the SVN,
and would like to have possibility of displaying all code changes committed to a single revision (or set of revisions) on single page.
Now I have to click on each revision to see particular differences, moreover the context of changes is very small - only three lines before and after change.
Is there any plugin or external tool that makes it more convenient?
Could you advise?
Tomek
Replies (1)
RE: Is there any better way for reviewing code differences for revisions? - Added by Tomasz O about 9 years ago
Hi all,
I am responding to myself - maybe someone else will find this useful.
I did not find any 'official' configurable way how to do this and any usable plugin neither.
So I decided to modify the redmine code directly:
diff /opt/redmine/redmine-3.0.2/lib/redmine/scm/adapters/subversion_adapter.rb /opt/redmine/redmine-3.0.2/lib/redmine/scm/adapters/subversion_adapter.rb.orig 193,194c193 < #cmd = "#{self.class.sq_bin} diff -r " < cmd = "#{self.class.sq_bin} diff --diff-cmd \"/bin/diff\" -x \"-U30\" -r " --- > cmd = "#{self.class.sq_bin} diff -r "
Now I have 30 lines of context when showing differences for revision.
Tomek