Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to sort SVN LS -R output by date

Tags:

date

sorting

svn

ls

I want to list all the files in my svn, sorted by date of last commit. svn ls -Rv lists all the files, but it doesn't accept a -t switch. Does anyone know how to do this?

(I have seen an answer to a similar question for svn status, but it wasn't obvious to me how to change this to work with svn ls.)

STILL UNANSWERED: It would also be helpful to be able to sort the files by date added to SVN.

like image 440
Nagel Avatar asked Aug 21 '14 12:08

Nagel


2 Answers

On my Windoz box the below does the job

svn ls -Rv | sort

For Unix you will, most likely, have to specify the numeric sort order with the switch "-n"

like image 89
matcheek Avatar answered Oct 23 '22 16:10

matcheek


Use svn list --xml and sort by <date>2014-08-20T12:34:46.712712Z</date>.

like image 1
bahrep Avatar answered Oct 23 '22 15:10

bahrep