Hi,

In my SVN repository, I have a bunch of files. Say the HEAD revision is
20 but the latest revision for a particular file is 17. How can I get
the revision for that particular file and have it return 17 and not 20.
I have tried using doInfo method with SVNRevision.HEAD but that returns
20 and not 17.

Try to use SVNInfo#getCommittedRevision instead of SVNInfo#getRevision.

Also, what is the subversion command line equivalent of that?
$ svn info foo.txt
Path: foo.txt
...
Revision: 20
Node Kind: file
Schedule: normal
Last Changed Author: author
Last Changed Rev: 17
...

"Last Changed Rev" field is what you're looking for.


Semen Vadishev,
TMate Software,
http://subgit.com/ - git+svn on the server side!

On 6/6/12 16:31, Shah Aditya A wrote:
In my SVN repository, I have a bunch of files. Say the HEAD revision is
20 but the latest revision for a particular file is 17. How can I get
the revision for that particular file and have it return 17 and not 20.
I have tried using doInfo method with SVNRevision.HEAD but that returns
20 and not 17.
Also, what is the subversion command line equivalent of that?
Thanks,
Aditya

Reply via email to