version control - How to get svn revision previous to specified? -


i need automate task.
, need find svn revision previous specified revision specified url.
how using svn tool , how in svnkit?

for example have following history:

d:\wc\trunk>svn log svn://localhost/pg/trunk -q ------------------------------------------------------------------------ r99 | user | 2016-01-27 16:29:11 +0200 (wed, 27 jan 2016) ------------------------------------------------------------------------ r98 | user | 2016-01-27 16:28:59 +0200 (wed, 27 jan 2016) ------------------------------------------------------------------------ r90 | user | 2016-01-27 16:28:48 +0200 (wed, 27 jan 2016) ------------------------------------------------------------------------ r86 | user | 2016-01-27 16:28:35 +0200 (wed, 27 jan 2016) ------------------------------------------------------------------------ r85 | user | 2016-01-27 16:28:24 +0200 (wed, 27 jan 2016) ------------------------------------------------------------------------ r62 | user | 2016-01-26 18:04:47 +0200 (tue, 26 jan 2016) 

verbose output:

d:\wc\trunk>svn log svn://localhost/pg/trunk -v ------------------------------------------------------------------------ r99 | user | 2016-01-27 16:29:11 +0200 (wed, 27 jan 2016) | 1 line changed paths:    m /trunk/f1.txt  change 4 ------------------------------------------------------------------------ r98 | user | 2016-01-27 16:28:59 +0200 (wed, 27 jan 2016) | 1 line changed paths:    m /trunk/f1.txt  change 3 ------------------------------------------------------------------------ r90 | user | 2016-01-27 16:28:48 +0200 (wed, 27 jan 2016) | 1 line changed paths:    m /trunk/f1.txt  change 2 ------------------------------------------------------------------------ r86 | user | 2016-01-27 16:28:35 +0200 (wed, 27 jan 2016) | 1 line changed paths:    m /trunk/f1.txt  change 1 ------------------------------------------------------------------------ r85 | user | 2016-01-27 16:28:24 +0200 (wed, 27 jan 2016) | 1 line changed paths:    /trunk/f1.txt  init revision ------------------------------------------------------------------------ r62 | user | 2016-01-26 18:04:47 +0200 (tue, 26 jan 2016) | 1 line changed paths:    /trunk  1 ------------------------------------------------------------------------ 

i need know revision before revision 90.
how previous revision?

swapping order of revisions given -r switch reverse search order. svn repository, show 2 earliest revisions in given range (1700000 head):

> svn log --limit=2 -r1700000:head -q http://svn.apache.org/repos/asf/subversion/trunk/ ------------------------------------------------------------------------ r1700035 | kotkov | 2015-08-29 10:16:13 -0400 (sat, 29 aug 2015) ------------------------------------------------------------------------ r1700130 | rhuijben | 2015-08-30 12:02:56 -0400 (sun, 30 aug 2015) ------------------------------------------------------------------------ 

and show 2 latest:

> svn log --limit=2 -rhead:1700000 -q http://svn.apache.org/repos/asf/subversion/trunk/ ------------------------------------------------------------------------ r1727040 | philip | 2016-01-27 08:23:08 -0500 (wed, 27 jan 2016) ------------------------------------------------------------------------ r1727028 | stefan2 | 2016-01-27 08:02:24 -0500 (wed, 27 jan 2016) ------------------------------------------------------------------------ 

i'm not svnkit user myself, i'd imagine supports well.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -