[#5350] diff.php in svn mode cannot find previous version
Summary diff.php in svn mode cannot find previous version
Queue Chora
Queue Version HEAD
Type Enhancement
State Resolved
Priority 1. Low
Owners
Requester helly (at) php (dot) net
Created 05/11/2007 (372 days ago)
Due
Updated 05/11/2007 (372 days ago)
Assigned
Resolved 05/11/2007 (372 days ago)
Attachments diff.php-HEAD-2007-05-11.diff.txt Download
Milestone
Patch

History
05/11/2007 Chuck Hagenbuch Comment #2
State ⇒ Resolved
Reply to this comment
Makes sense to me - probably applicable in other cases also and I don't think there's harm, so I took out the svn check. Thanks!
05/11/2007 helly (at) php (dot) net Comment #1
Type ⇒ Enhancement
Summary ⇒ diff.php in svn mode cannot find previous version
New Attachment: diff.php-HEAD-2007-05-11.diff.txt Download
Queue ⇒ Chora
Priority ⇒ 1. Low
State ⇒ New
Reply to this comment
When i generate a diff link from a post-commit script in a subversion repository i might get the new version as r2 and the old version r1 as r2-1. For subversion this is no problem as one simply needs to search for the newest version rn < = r1. The attached patch does this.