开发者

Any simple way to get svn status update in chronological

开发者 https://www.devze.com 2023-02-11 22:27 出处:网络
I use: svn status --show-u开发者_高级运维pdates --verbose |less but results are not sorted in chronological order. What do you use to do this ?

I use:

svn status --show-u开发者_高级运维pdates --verbose |less

but results are not sorted in chronological order. What do you use to do this ? thx


This pipeline gets the file paths from the svn status output and uses normal ls to sort them by (local) modified time.

svn status | awk '{print $2}' | xargs ls -lt


On Linux (or other UNIX-like systems) you can do something like

svn status --show-updates --verbose | sort -k 2rn

to sort by the middle column of revision numbers (in reverse). I guess that might work from Cygnus too but I'm not sure.


svn log --limit 10

SVN log lists in reverse-chronological order by default.

0

精彩评论

暂无评论...
验证码 换一张
取 消