java - Get history of a Deleted File from SVN using SVNKit -


i trying access revision history of file has been deleted using svnkit.

following doing achieve that.

svnclientmanager manager = svnclientmanager.newinstance();  svnlogclient logclient = manager.getlogclient();  logclient.dolog(svnurl, new string[] { filename }, svnrevision.create(deletedrevision),                                             svnrevision.undefined, svnrevision.undefined, false, false, true, -1, null,                                             new isvnlogentryhandler() {                                                 public void handlelogentry(svnlogentry logentry) throws svnexception {                                                     log.debug(" ==== " + logentry.getchangedpaths() + " === "                                                             + logentry.getrevision());                                             }                                         }); 

here, deletedrevision => svn revision in file deleted.

when code executed keep on getting following exceptions:

org.tmatesoft.svn.core.svnexception: svn: '<filepath>' path not found: 404 not found (https://<repositoryurl>         @ org.tmatesoft.svn.core.internal.wc.svnerrormanager.error(svnerrormanager.java:64)         @ org.tmatesoft.svn.core.internal.wc.svnerrormanager.error(svnerrormanager.java:51)         @ org.tmatesoft.svn.core.internal.io.dav.davrepository.logimpl(davrepository.java:976)         @ org.tmatesoft.svn.core.io.svnrepository.log(svnrepository.java:1034)         @ org.tmatesoft.svn.core.wc.svnlogclient.dolog(svnlogclient.java:1024)         @ org.tmatesoft.svn.core.wc.svnlogclient.dolog(svnlogclient.java:891)         @ com.blueoptima.connectors.scr.svn.getworkingfilelist(svn.java:711)         ... 4 more 

is doing wrong here? there other way history of deleted file using svnkit

though question has been asked more year still thought of answering if other's help.

i didnt try retrieving history of deleted file retrieve history of deleted branch using -

svnlogclient.dolog(svnurl.parseuriencoded(path), new string[] { "" }, pegrevision, svnrevision.create(0),pegrevision, stoponcopy, discoverchangedpaths, logslimit, loghandler); 

this similar call making need supply proper values pegrevision, startrevision , endrevision. use of undefined may not give correct result, instead use revision @ file deleted pegrevision , startrevision 0 , should work.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -