Get the svn revision less than a given number? -
Get the svn revision less than a given number? -
i using windows os only. need command lastly revision less or equal given revision number. eg. latest rev = 300. other revs = 290, 289, 280 etc. if search <= 285, should 280 only. there command ?
i googled , found no answer. 1 solution might utilize svn log --limit 100 http://svn.repo1.com/trunk/app
. hopefully, required number lies within lastly 100 revisions, otherwise no results. then, parse through each of 100 results, extract revision number while discarding presentation, comments etc. then, desired number in list of 100 numbers. but, inefficient way. please suggest quick , easy.
svn log http://your_repo/subdirectory/file -r 285:0 -l 1
will output log first (-l 1
) revision affected subdirectory/file
when counting commit 185 backwards first commit (-r 285:0
).
svn revision-history
Comments
Post a Comment