|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
How to get all files between two revisionsHi,
I have updated my current stream with Latest version from SVN using SVNUpdateClient updateClient = ourClientManager.getUpdateClient(); updateClient.setIgnoreExternals(false); updateClient.doUpdate(wcPath, SVNRevision.HEAD, true); Now I need list of of files that has been updated recently e.g. last to last revision , or between two revisions or for a particular date. Can anybody give me a hint to use API method to achieve this. thanks in advance. regards, RB |
|
|
Re: How to get all files between two revisionsHello,
> Now I need list of of files that has been updated recently e.g. last to last > revision , or between two revisions or for a particular date. > Can anybody give me a hint to use API method to achieve this. I'd recommend you to use SVNLogClient.doLog(...) method for that. It accepts working copy path and two revisions, I think you may specify 'dated' revision (SVNRevision.create(Date)) or revision that refers to the working copy (SVNRevision.WORKING) there. Another approach is to run 'remote' status for the working copy - you will get information about pending remote changes. Alexander Kitaev, TMate Software, http://svnkit.com/ - Java [Sub]Versioning Library! Tech Cool wrote: > Hi, > I have updated my current stream with Latest version from SVN using > > SVNUpdateClient updateClient = ourClientManager.getUpdateClient(); > updateClient.setIgnoreExternals(false); > updateClient.doUpdate(wcPath, SVNRevision.HEAD, true); > > Now I need list of of files that has been updated recently e.g. last to last > revision , or between two revisions or for a particular date. > Can anybody give me a hint to use API method to achieve this. > > thanks in advance. > > regards, > RB > |
|
|
Re: How to get all files between two revisionsThanks for your help, I am facing problem with authorization.
My SVN is located is one sub-directory of main SVN and I dont have access to main SVN. E.g. String url = "http://svn.test.com/sdb/XML/"; The above is my SVN repository and I have access to it. However I dont have access to "http://svn.test.com". When I try with extract logEntries from repository it generated exception Collection logEntries = repository.log(new String[] {""},null, startRevision.getNumber(), endRevision.getNumber(), true, true); The error message is svn: PROPFIND of '/sdb/XML': 401 Authorization Required (svn.test.com). I am not sure how can I access my repository instead of svn.test.com regards, RB
|
|
|
Re: How to get all files between two revisionsHello,
> The error message is > > svn: PROPFIND of '/sdb/XML': 401 Authorization Required (svn.test.com). > I am not sure how can I access my repository instead of svn.test.com Looks strange. SVNKit merely sends HTTP request with /sdb/XML path, and receives HTTP 401 response. Could you please do the following: 1. Try log command with native Subversion client: svn log http://svn.test.com/sdb/XML/ -v --stop-on-copy -rstartRev:endRev 2. Get latest version of SVNKit (https://teamcity.svnkit.com/viewType.html?buildTypeId=bt1) and try running log with it. Also, please enable SVNKit debug log and, if possible, send me the log file. You may enable as described at https://wiki.svnkit.com/Troubleshooting Thanks! Alexander Kitaev, TMate Software, http://svnkit.com/ - Java [Sub]Versioning Library! Tech Cool wrote: > Thanks for your help, I am facing problem with authorization. > My SVN is located is one sub-directory of main SVN and I dont have access to > main SVN. > E.g. > String url = "http://svn.test.com/sdb/XML/"; > The above is my SVN repository and I have access to it. However I dont have > access to "http://svn.test.com". > When I try with extract logEntries from repository it generated exception > > Collection logEntries = repository.log(new String[] {""},null, > startRevision.getNumber(), endRevision.getNumber(), true, true); > > The error message is > > svn: PROPFIND of '/sdb/XML': 401 Authorization Required (svn.test.com). > I am not sure how can I access my repository instead of svn.test.com > > regards, > RB > > > Alexander Kitaev-3 wrote: >> Hello, >> >> > Now I need list of of files that has been updated recently e.g. last >> to last >> > revision , or between two revisions or for a particular date. >> > Can anybody give me a hint to use API method to achieve this. >> I'd recommend you to use SVNLogClient.doLog(...) method for that. It >> accepts working copy path and two revisions, I think you may specify >> 'dated' revision (SVNRevision.create(Date)) or revision that refers to >> the working copy (SVNRevision.WORKING) there. >> >> Another approach is to run 'remote' status for the working copy - you >> will get information about pending remote changes. >> >> Alexander Kitaev, >> TMate Software, >> http://svnkit.com/ - Java [Sub]Versioning Library! >> >> Tech Cool wrote: >>> Hi, >>> I have updated my current stream with Latest version from SVN using >>> >>> SVNUpdateClient updateClient = ourClientManager.getUpdateClient(); >>> updateClient.setIgnoreExternals(false); >>> updateClient.doUpdate(wcPath, SVNRevision.HEAD, true); >>> >>> Now I need list of of files that has been updated recently e.g. last to >>> last >>> revision , or between two revisions or for a particular date. >>> Can anybody give me a hint to use API method to achieve this. >>> >>> thanks in advance. >>> >>> regards, >>> RB >>> >> > |
| Free embeddable forum powered by Nabble | Forum Help |