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.
CodePudding user response:
You can't create tags in SVN from Mercurial
CodePudding user response:
https://bitbucket.org/durin42/dotfiles/src/ae22ef7859eb0d2b8ba0edbacfae0e61a0e7bb51/.shell.d/50.hg_functions.sh?at=default#cl-88 is how I usually create svn branches when using hgsubversion. It shouldn't be hard to modify that to create tags instead.