Question

I've setup a SVN Server by using the VisualSVN Server, and have the TortoiseSVN, TortoiseHg, hgsubversion installed in my development PC. I can successfully CLONE the SVN repo from the SVN Server, and COMMIT changes using TortoiseHg. However, when I want to PUSH back the changes onto the SVN Server, I always get the following message:

pushing to svn+https://SVN.DEVTEAM:8443/svn/ProjectX/
searching for changes
no changes found
[command completed successfully Wed Dec 22 14:32:31 2010]

I've the following lines in my Mercurial global settings:

[extensions]
rebase=
hgsubversion = C:\hgsubversion\hgsubversion

Please advise!

Thanks, William

Was it helpful?

Solution

I found that, this case happens as we didn't perform any SVN commits prior pulling/pushing through Mercurial. My workaround is asking the SVN Server admin to do an initial commit to the SVN repo after the repo was created on the server.

Make sure that the initial commit includes at least one file as containing only folders is not enough to solve the problem.

OTHER TIPS

In my case, the message appeared, because the changeset to push was not the working copy parent.

The situation:

  • 3 repos: svn-server, central-hg (with hgsubversion) and a hg-working-clone
  • central-hg is synchronized with svn (pull)
  • the working clone has one new revision
  • the working clone pushes to central-hg
  • the central tries to push to svn

Result: no changes found

After "hg update tip" in central repo (where tip was the new revision), the push to svn works again.

In my case, I just edited the .hg/svn/rev_map to fix the svn rev to the hg changeset.

What I ended up doing in a similar situation, was add a file to the svn using svn as suggested by William Choi. Then I cloned the svn using hibernate again to a different directory and transplanted the changes I had made to that one (using the transplant extension). This resulted in me being able to commit the transplanted changes to svn.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top