Search code examples
sortingdatesvnls

How to sort SVN LS -R output by date


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.


Solution

  • 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"