Reputation: 4202
I am writing post-commit-hook script for svn repository for windows.
I have a .bat
file for this.
Now I want to get only the author name for a revision, how to do this?
I know svn info -r revnumber
gives me information for particular revnumber.
Repository UUID: 65c289e3-30af-4e40-9b38-41a2938c897c
Revision: 25
Node Kind: directory
Last Changed Author: foolish
Last Changed Rev: 25
Last Changed Date: 2014-08-13 23:23:24 +0530 (Wed, 13 Aug 2014)
I want only the Last Changed Author from info.
Upvotes: 2
Views: 1587
Reputation: 30662
You can get author's username by running svnlook author -r %2 %1
.
%1
: repository path,%2
: revision number created by the commit.See post-commit hook reference.
Upvotes: 1