Reputation: 105043
I'm trying to get the SVN version of the latest change happened in trunk
. There are many other changes in branches, but I need to get the version number of the latest change in trunk
. Is it possible to do this with SVN?
Upvotes: 1
Views: 1464
Reputation: 1
to see last changes in context
svn diff -rPREV:HEAD [file]
or just to see just changes
svn diff -rPREV:HEAD [file]|grep "^[+|-]"
Upvotes: 0
Reputation: 20859
You can script this pretty easily
~ cd <trunk>
~ svn log -l 1 --xml -v
Upvotes: 0
Reputation: 7924
The svn info command will tell you
svn info https://svn.server.com/repo/project/trunk
will give you lots of info - particularly you want to look at Revision
(the global repo revision) and Last Changed Rev
the revision of the path in the info command - in this case the trunk.
Upvotes: 3