yegor256
yegor256

Reputation: 105043

How to get the version of the latest change of trunk?

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

Answers (4)

Mike Atkinson
Mike Atkinson

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

fyr
fyr

Reputation: 20859

You can script this pretty easily

~ cd <trunk>
~ svn log -l 1 --xml -v

Upvotes: 0

Balanivash
Balanivash

Reputation: 6867

svn info <Repository-URL>. 

You can get more info from this

Upvotes: 0

thekbb
thekbb

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

Related Questions