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

Cogito: Merge failure when new remote has been added locally

From
Horst von Brand <vonbrand@inf.utfsm.cl>
Date
Oct 14, 2005, 01:06 UTC
Message-ID
<200510140106.j9E16dfn017346@inti.inf.utfsm.cl>

I've set up an example project to play around with cogito/git. To simulate patches flowing back and forth I set up several repositories, which I edit independently. In this I run into trouble with a reasonable scenario:

 A creates a project, and publishes it
 B gets A's version, updates his version, and ships a patch (which creates
   stack.h) to A
 A merges in B's changes, and fixes a typo in stack.h
 B tries to update from A via cg-update, the merge fails because there is a
   local stack.h (which is different than the remote one). The resulting
   message is less than helpful.
A script showing the problem follows:
   mkdir tst1
   cd tst1
   echo "Initial" | cg-init
   
   cd ..
   cg-clone tst1 tst2
   cd tst2
   echo 'Hello!' > greet
   cg-add greet
   cg-commit -m "Add greet"
   cd ../tst1
   echo 'Hi there!' > greet
   cg-add greet
   cg-commit -m "Add greet"
   cd ../tst2
   cg-update
This gives:
     MERGE ERROR: : Not handling case  ->  ->
            Conflicts during merge. Do cg-commit after resolving them.

And there is nothing marked to fix by hand. cg-diff returns an empty difference in greet.

-- 
Dr. Horst H. von Brand                   User #22616 counter.li.org
Departamento de Informatica                     Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria              +56 32 654239
Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513
Message 1 of 1 in “Cogito: Merge failure when new remote has been added locally”
  1. Horst von BrandOct 14, 2005

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.