Is there any way to merge two users' history into one user in SVN?
Try using svnadmin to dump the repository to a text file, use some text tool to replace the one author for the other. Then use svnadmin to load the file into a new repository.
You can change the author of a revision with this command:
svn propset --revprop -r <revision number> svn:author <username>
You will just have to extract which revisions were made by one author in order to rename them.
The hook script of your repository have to allow author renaming though (namely pre-revprop-change
).
You'll need to dump the svn repository to a dump file, modify it, then load it to create a new repository. The tool to use for the modification would most likely be svndumptool; IIRC, you should be able to use the 'transform-revprop' functionality to change author names.
Now, the subversion dumpfile may look like a text file, but it isn't quite. It has length specifiers embedded in it and such-like, so you can modify it by hand to some extent, but you have to be very careful about it.
Disclaimer: I have contributed to svndumptool in the past
On the other hand, RedGlyph's approach may be simpler.