Search code examples
svnmercurialtortoisehghgsubversion

How to create a new tag in a Subversion repository, using hgsubversion?


Using TortoiseHg and the hgsubversion extension (command line is fine too).

Cloning an SVN URL hg clone http://svn.example.org/hello-world, that has the following structure.

  • ..
  • branches/
  • tags/
  • trunk/

Results in a local copy with only files from /trunk.

  • ..
  • .hg
  • .hgtags
  • file1
  • file2
  • file3

Doing hg push works fine and alters the files in /trunk. But I need to create new tag folders in /tags and push changes there.

Adding a tag to a revision in Hg and pushing changes results in a "Sorry, can't find svn parent of a merge revision."

Is there any way to preserve the SVN folder structure during clone?

edit: Typing hg tags does show the structure at the command line, but I need to push into the remote /tags directory and a default push is going into /trunk, no idea how to change how this works.


Solution

  • You can't create tags in SVN from Mercurial