git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* cogito: linux-2.6 merge fails due to cg-rm
@ 2005-05-02 17:12 Matt Porter
  2005-05-02 17:20 ` Matt Porter
  0 siblings, 1 reply; 3+ messages in thread
From: Matt Porter @ 2005-05-02 17:12 UTC (permalink / raw
  To: git

I guess it was bound to happen after reading rmk's issues. I finally
had a working tree of mine fail to merge from linus' tree while doing
a cg-update. I'm using cogito 0.8.  I had to hand merge something
due to DocBook Makefile changes but the real problem was in the
set of files that were removed:

Documentation/DocBook/tulip-user.tmpl
Documentation/DocBook/via-audio.tmpl
arch/um/kernel/sys_call_table.c
drivers/video/intelfb/intelfbdrv.h
scripts/makeman
scripts/split-man

These kept showing up as "needs merged" even though I explicitly
tried to cg-rm them or "update-cache --remove" them. It turns out
that cg-rm is 'rm -f'ing the files before calling update-cache.
By touching each file, and then modifying cg-rm as follows, I
was able to complete the merge. I'm not sure yet if this is the
proper fix to the cogito script. It at least made update-cache
happy for this remove case.

-Matt

--- c3aa1e6b53cc59d5fbe261f3f859584904ae3a63/cg-rm  (mode:100755 sha1:029a03128eb7a8dd807335fea2ff52cb2bcda4fa)
+++ uncommitted/cg-rm  (mode:100755)
@@ -10,5 +10,5 @@

 [ "$1" ] || die "usage: cg-rm FILE..."

-rm -f "$@"
 update-cache --remove -- "$@"
+rm -f "$@"


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: cogito: linux-2.6 merge fails due to cg-rm
  2005-05-02 17:12 cogito: linux-2.6 merge fails due to cg-rm Matt Porter
@ 2005-05-02 17:20 ` Matt Porter
  2005-05-02 23:10   ` Petr Baudis
  0 siblings, 1 reply; 3+ messages in thread
From: Matt Porter @ 2005-05-02 17:20 UTC (permalink / raw
  To: git

On Mon, May 02, 2005 at 10:12:50AM -0700, Matt Porter wrote:
> These kept showing up as "needs merged" even though I explicitly
> tried to cg-rm them or "update-cache --remove" them. It turns out
> that cg-rm is 'rm -f'ing the files before calling update-cache.
> By touching each file, and then modifying cg-rm as follows, I
> was able to complete the merge. I'm not sure yet if this is the
> proper fix to the cogito script. It at least made update-cache
> happy for this remove case.

Looking a bit further, I see the cg-Xmergefile also removes the
file before update-cache --remove which doesn't seem to work. This
seems to be the actual culprit during the merge, but cg-rm needed
fixed to manually fix without calling git commands directly.

-Matt

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: cogito: linux-2.6 merge fails due to cg-rm
  2005-05-02 17:20 ` Matt Porter
@ 2005-05-02 23:10   ` Petr Baudis
  0 siblings, 0 replies; 3+ messages in thread
From: Petr Baudis @ 2005-05-02 23:10 UTC (permalink / raw
  To: Matt Porter; +Cc: git

Dear diary, on Mon, May 02, 2005 at 07:20:34PM CEST, I got a letter
where Matt Porter <mporter@kernel.crashing.org> told me that...
> On Mon, May 02, 2005 at 10:12:50AM -0700, Matt Porter wrote:
> > These kept showing up as "needs merged" even though I explicitly
> > tried to cg-rm them or "update-cache --remove" them. It turns out
> > that cg-rm is 'rm -f'ing the files before calling update-cache.
> > By touching each file, and then modifying cg-rm as follows, I
> > was able to complete the merge. I'm not sure yet if this is the
> > proper fix to the cogito script. It at least made update-cache
> > happy for this remove case.
> 
> Looking a bit further, I see the cg-Xmergefile also removes the
> file before update-cache --remove which doesn't seem to work. This
> seems to be the actual culprit during the merge, but cg-rm needed
> fixed to manually fix without calling git commands directly.

Oops, this was de facto fixed long time ago (by Junio) but for some
reason was not physically merged to my tree. (He already pointed out,
but I re-forgot to fix it back then.) update-cache --remove is supposed
to remove missing files, so the cg- code is correct.

Should be fixed now. Thanks for pointing it out.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-05-02 23:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-02 17:12 cogito: linux-2.6 merge fails due to cg-rm Matt Porter
2005-05-02 17:20 ` Matt Porter
2005-05-02 23:10   ` Petr Baudis

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).