"No changes found" occurs while pushing to SVN server through TortoiseHg with hgsubversion
Asked Answered
D

4

7

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

Delmore answered 22/12, 2010 at 6:42 Comment(1)
Can you see your additional changesets in Hg? Are they on the head you're currently trying to push back to SVN?Markson
D
7

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.

Delmore answered 23/12, 2010 at 7:44 Comment(2)
Ah-ha! Solved the problem for me as well. Thank you for putting this question & answer here where I could find it.Disunity
Thanks for this! A small addendum -- I tried adding and deleting a folder in VisualSVN to do an initial 'commit', but that wasn't good enough ... you actually have to have a file present in the repository for Mercurial to download when doing the clone.Wilson
P
1

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.

Psychiatrist answered 28/3, 2014 at 10:43 Comment(0)
W
0

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

Warrenne answered 2/11, 2011 at 0:46 Comment(1)
Could you help me with how to do this, id there any documentation of what the syntax for that file is?Snapback
S
0

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.

Snapback answered 23/3, 2012 at 14:17 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.