git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: hg2git error

From
RRRocco Rutte <pdmef@gmx.net>
Date
May 25, 2009, 13:22 UTC
Message-ID
<20090525132242.GB3259@robert>
In-Reply-To
<alpine.DEB.1.00.0905251341370.4288@intel-tinevez-2-302>
Hi,
* Johannes Schindelin wrote:
> On Mon, 25 May 2009, Rocco Rutte wrote:
> > * Johannes Schindelin wrote:
> > > Error: repository has at least one unnamed head: hg r533
Show 6 quoted lines
> > I'm afraid there's nothing you can do except a) wait until somebody with
> > push access to the repo merges or b) do that yourself. The error means
> > that on a branch there's more than one head (i.e. childless
> > revision). There's no equivalent concept in git which is why I don't
> > know what to do. Generating fake branch names for git may be a little
> > messy I think.
> I disagree... The worst solution is to stop working at all.  A better 
> solution would be to ignore the unnamed head, and the best solution would 
> probably be to generate ref names that are _not_ branch names for such 
> heads.

Both solutions require refactoring and new code that is abled to walk the DAG mercurial gives us since in both cases we'd need to find the fork point. I don't know mercurials good enough to say if and how much its API can help here.

I don't use git any longer and do only fix obvious breakages for hg-fast-export, read: since this is a new feature I'm afraid I won't implement it.

Rocco
Previous: Matthieu Moy
Message 10 of 10 in “hg2git error”
  1. Johannes SchindelinMay 24, 2009
  2. Sverre RabbelierMay 24, 2009
  3. Johannes SchindelinMay 24, 2009
  4. Sverre RabbelierMay 24, 2009
  5. Johannes SchindelinJul 22, 2009
  6. Sverre RabbelierJul 22, 2009
  7. Rocco RutteMay 25, 2009
  8. Johannes SchindelinMay 25, 2009
  9. Matthieu MoyMay 25, 2009
  10. Rocco RutteMay 25, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.