* Problem with cg-merge
@ 2005-05-29 15:04 Marcel Holtmann
2005-05-29 16:30 ` Sean
2005-05-29 18:07 ` Jonas Fonseca
0 siblings, 2 replies; 10+ messages in thread
From: Marcel Holtmann @ 2005-05-29 15:04 UTC (permalink / raw)
To: Petr Baudis; +Cc: GIT Mailing List
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.
Regards
Marcel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem with cg-merge
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
1 sibling, 1 reply; 10+ messages in thread
From: Sean @ 2005-05-29 16:30 UTC (permalink / raw)
To: Marcel Holtmann; +Cc: Petr Baudis, GIT Mailing List
On Sun, May 29, 2005 11:04 am, Marcel Holtmann said:
> 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.
Marcel,
Any chance you've installed a copy of git core in addition to your
original install of Cogito? That looks like a problem i saw when using a
newer git installed overtop of Cogito.
Sean
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem with cg-merge
2005-05-29 16:30 ` Sean
@ 2005-05-29 18:17 ` Marcel Holtmann
0 siblings, 0 replies; 10+ messages in thread
From: Marcel Holtmann @ 2005-05-29 18:17 UTC (permalink / raw)
To: Sean; +Cc: Petr Baudis, GIT Mailing List
Hi Sean,
> > 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.
>
> Any chance you've installed a copy of git core in addition to your
> original install of Cogito? That looks like a problem i saw when using a
> newer git installed overtop of Cogito.
no, I don't.
Regards
Marcel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem with cg-merge
2005-05-29 15:04 Problem with cg-merge Marcel Holtmann
2005-05-29 16:30 ` Sean
@ 2005-05-29 18:07 ` Jonas Fonseca
2005-05-29 18:17 ` Marcel Holtmann
1 sibling, 1 reply; 10+ messages in thread
From: Jonas Fonseca @ 2005-05-29 18:07 UTC (permalink / raw)
To: Marcel Holtmann; +Cc: Petr Baudis, GIT Mailing List
Marcel Holtmann <marcel@holtmann.org> wrote Sun, May 29, 2005:
> 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"
--
Jonas Fonseca
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem with cg-merge
2005-05-29 18:07 ` Jonas Fonseca
@ 2005-05-29 18:17 ` Marcel Holtmann
2005-05-29 18:48 ` Petr Baudis
0 siblings, 1 reply; 10+ messages in thread
From: Marcel Holtmann @ 2005-05-29 18:17 UTC (permalink / raw)
To: Jonas Fonseca; +Cc: Petr Baudis, GIT Mailing List
Hi Jonas,
> > 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.
Regards
Marcel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem with cg-merge
2005-05-29 18:17 ` Marcel Holtmann
@ 2005-05-29 18:48 ` Petr Baudis
2005-05-29 19:48 ` Marcel Holtmann
2005-05-29 21:15 ` Jonas Fonseca
0 siblings, 2 replies; 10+ messages in thread
From: Petr Baudis @ 2005-05-29 18:48 UTC (permalink / raw)
To: Marcel Holtmann; +Cc: Jonas Fonseca, GIT Mailing List
Dear diary, on Sun, May 29, 2005 at 08:17:30PM CEST, I got a letter
where Marcel Holtmann <marcel@holtmann.org> told me that...
> Hi Jonas,
>
> > > 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.
--
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] 10+ messages in thread
* Re: Problem with cg-merge
2005-05-29 18:48 ` Petr Baudis
@ 2005-05-29 19:48 ` Marcel Holtmann
2005-05-29 21:15 ` Jonas Fonseca
1 sibling, 0 replies; 10+ messages in thread
From: Marcel Holtmann @ 2005-05-29 19:48 UTC (permalink / raw)
To: Petr Baudis; +Cc: Jonas Fonseca, GIT Mailing List
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem with cg-merge
2005-05-29 18:48 ` Petr Baudis
2005-05-29 19:48 ` Marcel Holtmann
@ 2005-05-29 21:15 ` Jonas Fonseca
2005-05-29 22:40 ` Petr Baudis
1 sibling, 1 reply; 10+ messages in thread
From: Jonas Fonseca @ 2005-05-29 21:15 UTC (permalink / raw)
To: Petr Baudis; +Cc: Marcel Holtmann, GIT Mailing List
Petr Baudis <pasky@ucw.cz> wrote Sun, May 29, 2005:
> Dear diary, on Sun, May 29, 2005 at 08:17:30PM CEST, I got a letter
> where Marcel Holtmann <marcel@holtmann.org> told me that...
> > > --- 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.
Ok, I should have mentioned it was an ugly workaround.
There is another problem I've noticed in the work on the cogito
manpages. To make it easier to update the ``external'' patch I maintain
I have added the files Documentation/make-cg-asciidoc and
Documentation/make-cogito-asciidoc but not actually committed them.
That way cg-diff will include them (diffed against /dev/null) which I
like very much. However, when I cg-update from my local cogito origin
cg-merge will fast-forward using cg-diff which results in rejects when
patching the local changes due to the files already existing.
One possibility would be to revert all local changes with the patch
generated by cg-diff since most of them will be overwritten anyway.
This would remove uncommitted added files but it would probably require
use of the GIT metadata to get the fast-forwarding right with modes
intact.
--
Jonas Fonseca
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem with cg-merge
2005-05-29 21:15 ` Jonas Fonseca
@ 2005-05-29 22:40 ` Petr Baudis
2005-05-29 22:58 ` Jonas Fonseca
0 siblings, 1 reply; 10+ messages in thread
From: Petr Baudis @ 2005-05-29 22:40 UTC (permalink / raw)
To: Jonas Fonseca; +Cc: Marcel Holtmann, GIT Mailing List
Dear diary, on Sun, May 29, 2005 at 11:15:24PM CEST, I got a letter
where Jonas Fonseca <fonseca@diku.dk> told me that...
> There is another problem I've noticed in the work on the cogito
> manpages. To make it easier to update the ``external'' patch I maintain
> I have added the files Documentation/make-cg-asciidoc and
> Documentation/make-cogito-asciidoc but not actually committed them.
> That way cg-diff will include them (diffed against /dev/null) which I
> like very much. However, when I cg-update from my local cogito origin
> cg-merge will fast-forward using cg-diff which results in rejects when
> patching the local changes due to the files already existing.
>
> One possibility would be to revert all local changes with the patch
> generated by cg-diff since most of them will be overwritten anyway.
> This would remove uncommitted added files but it would probably require
> use of the GIT metadata to get the fast-forwarding right with modes
> intact.
I'm confused. Are you suggesting that we just throw away any local
changes when updating? That sounds horrible - it's something the user
has full right not to expect and I'd be very careful about it.
In the longer term we shouldn't muck with diff | patch but instead do a
three-way merge on the local changes too.
--
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] 10+ messages in thread
* Re: Problem with cg-merge
2005-05-29 22:40 ` Petr Baudis
@ 2005-05-29 22:58 ` Jonas Fonseca
0 siblings, 0 replies; 10+ messages in thread
From: Jonas Fonseca @ 2005-05-29 22:58 UTC (permalink / raw)
To: Petr Baudis; +Cc: Marcel Holtmann, GIT Mailing List
Petr Baudis <pasky@ucw.cz> wrote Mon, May 30, 2005:
> Dear diary, on Sun, May 29, 2005 at 11:15:24PM CEST, I got a letter
> where Jonas Fonseca <fonseca@diku.dk> told me that...
> > There is another problem I've noticed in the work on the cogito
> > manpages. To make it easier to update the ``external'' patch I maintain
> > I have added the files Documentation/make-cg-asciidoc and
> > Documentation/make-cogito-asciidoc but not actually committed them.
> > That way cg-diff will include them (diffed against /dev/null) which I
> > like very much. However, when I cg-update from my local cogito origin
> > cg-merge will fast-forward using cg-diff which results in rejects when
> > patching the local changes due to the files already existing.
> >
> > One possibility would be to revert all local changes with the patch
> > generated by cg-diff since most of them will be overwritten anyway.
> > This would remove uncommitted added files but it would probably require
> > use of the GIT metadata to get the fast-forwarding right with modes
> > intact.
>
> I'm confused. Are you suggesting that we just throw away any local
> changes when updating? That sounds horrible - it's something the user
> has full right not to expect and I'd be very careful about it.
Forget what I suggested. The current way to cg-diff then update the tree
and apply the local changes on top of that does handled locally added
but uncommited files.
> In the longer term we shouldn't muck with diff | patch but instead do a
> three-way merge on the local changes too.
Yes, that sounds nice.
--
Jonas Fonseca
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2005-05-29 22:57 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2005-05-29 21:15 ` Jonas Fonseca
2005-05-29 22:40 ` Petr Baudis
2005-05-29 22:58 ` Jonas Fonseca
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).