From: Marcel Holtmann <marcel@holtmann.org>
To: Petr Baudis <pasky@ucw.cz>
Cc: Jonas Fonseca <fonseca@diku.dk>, GIT Mailing List <git@vger.kernel.org>
Subject: Re: Problem with cg-merge
Date: Sun, 29 May 2005 21:48:41 +0200 [thread overview]
Message-ID: <1117396121.7072.106.camel@pegasus> (raw)
In-Reply-To: <20050529184830.GM1036@pasky.ji.cz>
Hi Petr,
> > > > I saw that earlier, but I don't have any idea what's wrong here. If I do
> > > > a simple cg-update, I see something like this:
> > > >
> > > > Tree change: cf1f29d97210d0594dcf5b2a734bdb714de6bf24:89a14a5bd2c880095d5c618a102319bb3dc03da9
> > > > :100755 100755 ceda2c50fc2c2941daa34a57722df251bf892c38 fea239b99d351502d1acb098abd725557f0af202 M cg-diff
> > > > :100755 100755 cc0c17beef75db41da3ad4ef8983bd7e222ac739 5f0bff77eb2110d52892793e5bef104acde7be32 M cg-help
> > > >
> > > > Applying changes...
> > > > Fast-forwarding cf1f29d97210d0594dcf5b2a734bdb714de6bf24 -> 89a14a5bd2c880095d5c618a102319bb3dc03da9
> > > > on top of cf1f29d97210d0594dcf5b2a734bdb714de6bf24...
> > > > patching file cg-diff
> > > > patching file cg-help
> > > > cg-diff: needs update
> > > > cg-help: needs update
> > > >
> > > > This is a little bit odd, because if I call "git-diff-cache HEAD" after
> > > > it, I will see that cg-diff and cg-help are modified. After calling
> > > > cg-cancel everything looks fine again.
> > >
> > > The following change fixes cg-update for me. This is in tree_timewarp().
> > >
> > > --- 0ca4ae56fa7bbd8d10e2c2791e389bc19977e460/cg-Xlib (mode:100755)
> > > +++ uncommitted/cg-Xlib (mode:100755)
> > > @@ -66,7 +66,7 @@
> > > # XXX: This may be suboptimal, but it is also non-trivial to keep
> > > # the adds/removes properly. So this is just a quick hack to get it
> > > # working without much fuss.
> > > - cg-diff -r $branch >$patchfile
> > > + cg-diff >$patchfile
> > > fi
> > >
> > > git-read-tree -m "$branch" || die "$branch: bad commit"
> >
> > this looks better now. Petr, please apply this patch.
>
> Bah. Well if your imaginary friend in your head told you this is
> obviously just a no-go workaround, (s)he was right for once. You just
> broke cg-admin-uncommit with this one, the real fix is to tell
> tree_timewarp to rollback the tree (or rather rollforth here ;-). This
> way the right branch of this if will be invoked.
I had no idea if the patch was correct or not, but it was working for
me. I also tested your fix for it and it works for me and I am happy
again.
Regards
Marcel
next prev parent reply other threads:[~2005-05-29 19:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-29 15:04 Problem with cg-merge Marcel Holtmann
2005-05-29 16:30 ` Sean
2005-05-29 18:17 ` Marcel Holtmann
2005-05-29 18:07 ` Jonas Fonseca
2005-05-29 18:17 ` Marcel Holtmann
2005-05-29 18:48 ` Petr Baudis
2005-05-29 19:48 ` Marcel Holtmann [this message]
2005-05-29 21:15 ` Jonas Fonseca
2005-05-29 22:40 ` Petr Baudis
2005-05-29 22:58 ` Jonas Fonseca
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1117396121.7072.106.camel@pegasus \
--to=marcel@holtmann.org \
--cc=fonseca@diku.dk \
--cc=git@vger.kernel.org \
--cc=pasky@ucw.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 NNTP newsgroup(s).