I have access to an SVN repository that I can grab occasional snapshots of revisions (as .gz, not through svn update
) and am hacking the code to add some customizations that I do not have any intention of pushing back to the SVN repo. I'm using mercurial to manage my local copy and have seen two ways of dealing with this situations.
Based on the approach laid out at https://www.mercurial-scm.org/wiki/SubversionToMercurialHowto, you store the unmodified svn repo in one branch, work in the other and then update the svn and pull changes over and merge conflicts.
Just keep two independent repos and do a
hg pull -f
from the svn based clone into the working one and then merge the conflicts.
I was wondering if there was an advantage to one approach over the other, and how to deal with the fact that I can't easily update the svn copy, and instead probably have to re-write the whole repo (unless there is another way to selectively replace files that have changed).