开发者

SVN List Revision Numbers Command

I'm looking for a command that will list all of the SVN revisions at a particular URL, and nothing more. I'm working on an Ubuntu machine. Simply, for example, I would like the output of the command to be:

r43
r42
r41
....list every revision

or just

43
42
41
....list every revision

Is this possible? Becau开发者_如何学编程se I'm using it remotely, I can't use the

svnlook history

command. Any ideas?

Thanks in advance for any help.


Try this:

svn log <URL> | egrep '^r[0-9]' | sed -e 's/^r\([0-9]*\) .*$/\1/'

I works for me on an ubuntu machine from a bash shell.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜