Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3598310
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:13:34+00:00 2026-05-18T20:13:34+00:00

Question is similar to this (unanswered) and this one (same problem not involving Git).

  • 0

Question is similar to this (unanswered) and this one (same problem not involving Git).

The goal is to make Hg a front end for SVN for a period of time before transitioning fully to Hg.

The setup should probably look like the one depicted below (same as in the questions referenced above), however I’m not sure about the exact topology of intermediate Hg repositories.

Dev1 Hg --> Hg <--> SVN
Dev2 Hg -/

I know that the above setup works with git and git-svn as described in this comment:

Dev1 Git --> Git (bare) <--> Git (bridge) <--> SVN
Dev2 Git -/

Setup:

  1. Either git svn init, or git svn clone the SVN repo. This then becomes the “Git/SVN Bridge.”

  2. Fix up any of the branches, tags, etc… here. The svn/* refs are considered remotes, so if you want tracking branches, check these remotes out and create appropriate local branches. Also, check the tags out, and create actual tags. You MUST create local branches for any SVN branches that you wish to synchronize between Git and SVN.

  3. Now, create a new bare repository (git init) somewhere, and from the bridge, push all the branches to the bare repo (git push –tags).

  4. All Git users now clone this bare repository. The bridge will only be maintained by one (or a few) people that understand how to synchronize Git and SVN.

To update SVN trunk with changes on master, and vice-versa, from the bridge:

  1. git svn fetch (get new SVN changes)

  2. git checkout master

  3. git pull master (get Git changes from bare repo)

  4. git checkout svn/trunk (checkout detached head)

  5. git merge –no-ff –log master (merge changes from master). –no-ff insures an actual commit, –log copies individual log messages from each commit on master (–log is optional). git commit –amend can then be run if you want to edit the commit message.

  6. git svn dcommit (This pushes your merge commit to SVN. Note that the commit was on a detached head, and is no longer accessible). All of your work on master (since the merge-base of master and svn/trunk) gets committed as a single change, and is now available to SVN users.

  7. git checkout master

  8. git merge svn/trunk (Gets the new updates from SVN – with the altered commit message – and merges to master)

  9. git push barerepo (makes the SVN changes available to Git users)

What I don’t know is if it’s possible to somehow replicate the above on Hg. As I see it (I’m an intermediate Git user and know basics of working with Hg), the obstacles in Hg are:

  • no remote-tracking branches (is this possible with bookmarks? separate cloned repos?)
  • impossible to push merge commits via hgsubversion (step n. 6 in the above list. What stops hgsubversion from doing what svn dcommit does?)

Is it possible to make the Hg-SVN gateway work in the same fashion the Git-SVN gateway works? If no, why?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T20:13:35+00:00Added an answer on May 18, 2026 at 8:13 pm

    The short version is: nobody’s yet convinced me what the reasonable expected behavior of pushing a merge to Subversion should be, and there are some slight modifications to hgsubversion advisable to make pushing result in merges rather than rebased revisions. None of it should be too hard, just takes someone motivated to do the implementation. If you’re curious, this thread has a similar request where I responded with a fairly in-depth discussion of the basic approach that I’ve thought through with a couple of others.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Note this question is similar this one except I'm not working with linq-to-sql, so
I asked a question similar to this one a couple of weeks ago, but
My question is very similar to this one . I really thought that <input
My requirement is very much similar to this question . Basically, I will be
First off - apologies if this or a similar question has been asked before.
Although this is pretty basic, I can't find a similar question, so please link
Similar question for reference: How do I run different versions of jQuery on the
This question applies to all projects really, however my demonstrating environment is an MVC3
Main-Question What's your fast and reliable (as in stable) solution to create on-demand, newspaper-like
(A jQuery Question about filtering stuff on StackOverflow. I swear, it doesn't belong on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.