Hello,
> I've import a folder to SVN repository using doImport(). How do I create I
> tag now? I've tried doing doCopy(), but it says this:
> A path under version control is needed for this operation
To copy (make a tag) you should use source and destination URLs (after
you've make import):
SVNCopyClient copyClient =
SVNClientManager.newInstance().getCopyClient();
SVNURL srcURL = SVNURL.parseURIEncoded("
http://host/repos/trunk");
SVNURL dstURL = SVNURL.parseURIEncoded("
http://host/repos/tags/tag");
SVNCopySource copySource =
new SVNCopySource(SVNRevision.HEAD, SVNRevision.HEAD, srcURL);
copyClient.doCopy(new SVNCopySource[] {copySource}, dstURL,
false, false, true, "message", null);
> Also, is it better to use commit that import, since I want to overwrite
> folder. Is it possible to force overwrite with doImport()?
Standard "doImport" does not overwrite (deletes) existing folder in
repository. You may either delete folder before importing using
SVNCommitClient.doDelete(SVNURL[] urls, ...) method, or write custom
import code that will use SVNRepository, ISVNEditor and will delete
directories while committing if necessary.
Alexander Kitaev,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!
http://sqljet.com/ - Java SQLite Library!
yper wrote:
> Hey,
>
> I've import a folder to SVN repository using doImport(). How do I create I
> tag now? I've tried doing doCopy(), but it says this:
> A path under version control is needed for this operation
>
> Also, is it better to use commit that import, since I want to overwrite
> folder. Is it possible to force overwrite with doImport()?
>
> Thanks,
> yper
---------------------------------------------------------------------
To unsubscribe, e-mail:
svnkit-users-unsubscribe@...
For additional commands, e-mail:
svnkit-users-help@...