all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Syncing Gnus and Emacs repositories
Date: Sat, 16 Jun 2007 19:38:36 +0200	[thread overview]
Message-ID: <85bqffn6jn.fsf@lola.goethe.zz> (raw)
In-Reply-To: <ulkejsvrz.fsf@gnu.org> (Eli Zaretskii's message of "Sat\, 16 Jun 2007 19\:34\:40 +0300")

Eli Zaretskii <eliz@gnu.org> writes:

>> Cc: emacs-devel@gnu.org
>> From: David Kastrup <dak@gnu.org>
>> Date: Sat, 16 Jun 2007 16:05:16 +0200
>> 
>> Anyway, could you spell out the details of the compromise you are
>> trying to reach?
>
> I would like to find a way for the development to continue without
> interfering with Richard's goals.

Shouldn't this be rather "Richard's concepts"?  The continuation of
development should hardly interfere with Richard's _goals_.

> Using the Unicode branch for development sounds like a good
> candidate for that; you didn't yet say anything that would
> invalidate it.

It did not really come up.  So let me comment on it now: the problem I
see with that idea is that after the unicode-2/trunk merge, there will
be lots of areas where people and their favorite private packages will
get exposure to the unicode-2 internals the first time, and there will
be lots of problems to shake out.  If the merge consisted of just such
differences as can be contributed to the changed representation of the
multibyte strings and buffers, shaking out the problems encountered in
the process will be much easier if the branch has been kept reasonably
clean of unrelated changes and developments.

Basically your approach sounds to me like "let us make unicode-2 our
new trunk and work around Richard in that manner".  But one can't hope
to have something like that work consistently, and so some additions
will happen to unicode-2, and some to the trunk, and there will be a
lot of merge mess in two directions for which I see little motivation
and which actually is quite painful in CVS.

There is something to be said for the decentralized Linux kernel
source code management system git: basically, everybody pieces
together his favorite patches and branches, and merging is something
which everybody can do or let alone at his own leisure in his own
repository.  Interesting functionality is circulated as "patch sets",
and if one's personal branch has repeated conflicts with patch sets
from different branches, one can automate the conflict resolution
since git also keeps track of previous conflict resolutions.  It is
also easy to back out change sets again, even after one has had
conflict resolution.  I'll append a manual page for one particular
tool of its toolset.  It really is interesting.

But at the moment, we are using CVS, and everybody's trunk is the
same, and managed on Savannah instead of locally.  And that will
influence how people will treat it and work with it.  Distributing new
development among trunk and multitty and hoping that Miles and
Handa-san will sort out the mess for "a few months" more is not really
efficient if there is no particular goal achieved by that.

It is dealing with a code management problem by technical means,
expedience and additional manual work.  With good tools, the
additional manual work becomes less, but with our current setup I
think it problematic enough not to shrug it off lightly.

Of course, engaging people in shouting matches is also not efficient
use of their time.  There will be a time when I stop tearing my hairs
out publically when it turns out that I am not able to get my point
across, anyway.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

GIT-RERERE(1)                                                    GIT-RERERE(1)

NAME
       git-rerere - Reuse recorded resolve

SYNOPSIS
       git-rerere.sp

DESCRIPTION
       In a workflow that employs relatively long lived topic branches, the
       developer sometimes needs to resolve the same conflict over and over
       again until the topic branches are done (either merged to the "release"
       branch, or sent out and accepted upstream)..sp This command helps this
       process by recording conflicted automerge results and corresponding
       hand-resolve results on the initial manual merge, and later by noticing
       the same automerge results and applying the previously recorded hand
       resolution..sp

       Note
       You need to create $GIT_DIR/rr-cache directory to enable this
       command..sp

DISCUSSION
       When your topic branch modifies overlapping area that your master
       branch (or upstream) touched since your topic branch forked from it,
       you may want to test it with the latest master, even before your topic
       branch is ready to be pushed upstream:.sp

                        o---*---o topic
                       /
              o---o---o---*---o---o master
       For such a test, you need to merge master and topic somehow. One way to
       do it is to pull master into the topic branch:.sp

                  $ git checkout topic
                  $ git pull . master

                        o---*---o---+ topic
                       /           /
              o---o---o---*---o---o master
       The commits marked with * touch the same area in the same file; you
       need to resolve the conflicts when creating the commit marked with +.
       Then you can test the result to make sure your work-in-progress still
       works with what is in the latest master..sp After this test merge,
       there are two ways to continue your work on the topic. The easiest is
       to build on top of the test merge commit +, and when your work in the
       topic branch is finally ready, pull the topic branch into master,
       and/or ask the upstream to pull from you. By that time, however, the
       master or the upstream might have been advanced since the test merge +,
       in which case the final commit graph would look like this:.sp

                  $ git checkout topic
                  $ git pull . master
                  $ ... work on both topic and master branches
                  $ git checkout master
                  $ git pull . topic

                        o---*---o---+---o---o topic
                       /           /         \
              o---o---o---*---o---o---o---o---+ master
       When your topic branch is long-lived, however, your topic branch would
       end up having many such "Merge from master" commits on it, which would
       unnecessarily clutter the development history. Readers of the Linux
       kernel mailing list may remember that Linus complained about such too
       frequent test merges when a subsystem maintainer asked to pull from a
       branch full of "useless merges"..sp As an alternative, to keep the
       topic branch clean of test merges, you could blow away the test merge,
       and keep building on top of the tip before the test merge:.sp

                  $ git checkout topic
                  $ git pull . master
                  $ git reset --hard HEAD^ ;# rewind the test merge
                  $ ... work on both topic and master branches
                  $ git checkout master
                  $ git pull . topic

                        o---*---o-------o---o topic
                       /                     \
              o---o---o---*---o---o---o---o---+ master
       This would leave only one merge commit when your topic branch is
       finally ready and merged into the master branch. This merge would
       require you to resolve the conflict, introduced by the commits marked
       with *. However, often this conflict is the same conflict you resolved
       when you created the test merge you blew away. git-rerere command helps
       you to resolve this final conflicted merge using the information from
       your earlier hand resolve..sp Running git-rerere command immediately
       after a conflicted automerge records the conflicted working tree files,
       with the usual conflict markers <<<<<<<, =======, and >>>>>>> in them.
       Later, after you are done resolving the conflicts, running git-rerere
       again records the resolved state of these files. Suppose you did this
       when you created the test merge of master into the topic branch..sp
       Next time, running git-rerere after seeing a conflicted automerge, if
       the conflict is the same as the earlier one recorded, it is noticed and
       a three-way merge between the earlier conflicted automerge, the earlier
       manual resolution, and the current conflicted automerge is performed by
       the command. If this three-way merge resolves cleanly, the result is
       written out to your working tree file, so you would not have to
       manually resolve it. Note that git-rerere leaves the index file alone,
       so you still need to do the final sanity checks with git diff (or git
       diff -c) and git update-index when you are satisfied..sp As a
       convenience measure, git-merge automatically invokes git-rerere when it
       exits with a failed automerge, which records it if it is a new
       conflict, or reuses the earlier hand resolve when it is not. git-commit
       also invokes git-rerere when recording a merge result. What this means
       is that you do not have to do anything special yourself (Note: you
       still have to create $GIT_DIR/rr-cache directory to enable this
       command)..sp In our example, when you did the test merge, the manual
       resolution is recorded, and it will be reused when you do the actual
       merge later with updated master and topic branch, as long as the
       earlier resolution is still applicable..sp The information git-rerere
       records is also used when running git-rebase. After blowing away the
       test merge and continuing development on the topic branch:.sp

                        o---*---o-------o---o topic
                       /
              o---o---o---*---o---o---o---o   master

                  $ git rebase master topic

                                            o---*---o-------o---o topic
                                           /
              o---o---o---*---o---o---o---o   master
       you could run git rebase master topic, to keep yourself up-to-date even
       before your topic is ready to be sent upstream. This would result in
       falling back to three-way merge, and it would conflict the same way the
       test merge you resolved earlier. git-rerere is run by git rebase to
       help you resolve this conflict..sp

AUTHOR
       Written by Junio C Hamano <junkio@cox.net>.sp

GIT
       Part of the git(7) suite.sp

                                  03/05/2007                     GIT-RERERE(1)

  reply	other threads:[~2007-06-16 17:38 UTC|newest]

Thread overview: 134+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-13 18:41 Syncing Gnus and Emacs repositories Reiner Steib
2007-06-13 19:57 ` Stefan Monnier
2007-06-13 21:47   ` Reiner Steib
2007-06-13 22:21     ` Stefan Monnier
2007-06-13 22:41       ` Glenn Morris
2007-06-13 23:22         ` Chong Yidong
2007-06-14  6:31           ` Emacs 23 development policy (was: Syncing Gnus and Emacs repositories) Reiner Steib
2007-06-14  7:25             ` David Reitter
2007-06-14 13:42               ` Adrian Robert
2007-06-14 19:56                 ` Emacs 23 development policy Stefan Monnier
2007-06-14 16:20           ` Syncing Gnus and Emacs repositories Richard Stallman
2007-06-14 16:27             ` Chong Yidong
2007-06-15  0:57               ` Kenichi Handa
2007-06-15  2:03                 ` Miles Bader
2007-06-15  3:14                   ` Kenichi Handa
2007-06-15  2:35                 ` Nick Roberts
2007-06-15 19:22                   ` Richard Stallman
2007-06-15 21:48                     ` Nick Roberts
2007-06-16 18:50                       ` Richard Stallman
2007-06-16 19:23                         ` Chong Yidong
2007-06-16 19:28                           ` David Kastrup
2007-06-17  8:54                             ` Richard Stallman
2007-06-17 19:47                               ` David Kastrup
2007-06-17  8:54                           ` Richard Stallman
2007-06-18  1:36                             ` Kenichi Handa
2007-06-18 21:30                               ` Richard Stallman
2007-06-19  5:01                                 ` Kenichi Handa
2007-06-19  5:31                                   ` Stefan Monnier
2007-06-19 22:26                                   ` Richard Stallman
2007-06-20 13:18                                     ` Kenichi Handa
2007-06-20 17:36                                       ` Richard Stallman
2007-06-15 22:12                     ` David Kastrup
2007-06-16 10:48                       ` Eli Zaretskii
2007-06-16 12:09                         ` David Kastrup
2007-06-16 13:01                           ` Eli Zaretskii
2007-06-16 13:13                             ` David Kastrup
2007-06-16 13:23                               ` Eli Zaretskii
2007-06-16 14:05                                 ` David Kastrup
2007-06-16 16:34                                   ` Eli Zaretskii
2007-06-16 17:38                                     ` David Kastrup [this message]
2007-06-16 18:26                                       ` Eli Zaretskii
2007-06-16 13:55                               ` YAMAMOTO Mitsuharu
2007-06-16 14:16                                 ` David Kastrup
2007-06-17 23:07                             ` Kenichi Handa
2007-06-18  3:10                               ` Eli Zaretskii
2007-06-18  5:18                                 ` David Kastrup
2007-06-18  6:01                                   ` Nick Roberts
2007-06-18 19:12                                     ` Eli Zaretskii
2007-06-18 21:12                                       ` Nick Roberts
2007-06-19 22:25                                       ` Richard Stallman
2007-06-18 19:11                                   ` Eli Zaretskii
2007-06-18 21:30                                   ` Richard Stallman
2007-06-18  6:53                                 ` Stephen J. Turnbull
2007-06-18  7:24                                   ` David Kastrup
2007-06-18  8:34                                     ` Stephen J. Turnbull
2007-06-18  8:50                                       ` David Kastrup
2007-06-18 19:23                                   ` Eli Zaretskii
2007-06-19  0:53                                     ` Stephen J. Turnbull
2007-06-19  5:17                                       ` Eli Zaretskii
2007-06-19  5:37                                         ` David Kastrup
2007-06-19  6:09                                           ` Eli Zaretskii
2007-06-19 17:53                                             ` Stephen J. Turnbull
2007-06-19  5:21                                       ` David Kastrup
2007-06-19  2:19                                     ` Kenichi Handa
2007-06-19  5:20                                       ` Eli Zaretskii
2007-06-23  8:13                                   ` Giorgos Keramidas
2007-06-16 18:50                       ` Richard Stallman
2007-06-16 14:22                     ` Proposal for a 22.2/trunk development model (was: Syncing Gnus and Emacs repositories) Dan Nicolaescu
2007-06-16 14:37                       ` Proposal for a 22.2/trunk development model David Kastrup
2007-06-16 16:01                         ` Dan Nicolaescu
2007-06-16 16:41                           ` David Kastrup
2007-06-16 17:05                             ` Dan Nicolaescu
2007-07-01 20:40                       ` Proposal for a 22.2/trunk development model (was: Syncing Gnus and Emacs repositories) Richard Stallman
2007-06-15 19:21               ` Syncing Gnus and Emacs repositories Richard Stallman
2007-06-14 16:48             ` Jay Belanger
2007-06-17 13:47     ` Reiner Steib
2007-07-09  2:22       ` Miles Bader
2007-07-09 17:21         ` Richard Stallman
2007-07-10 10:33           ` Miles Bader
2007-07-10 12:19             ` Daiki Ueno
2007-07-10 15:51               ` Leo
2007-07-10 20:05                 ` Miles Bader
2006-12-16  2:58                   ` [bug] PGG shows ?? when prompt for passphrase Leo
2006-12-17  1:30                     ` Daiki Ueno
2006-12-17  2:18                       ` Leo
2006-12-17  3:28                         ` Daiki Ueno
2006-12-17  4:18                           ` Leo
2006-12-17  4:28                             ` Daiki Ueno
2006-12-17  5:27                               ` Leo
2006-12-18  1:12                               ` Richard Stallman
2006-12-18  1:34                                 ` Daiki Ueno
     [not found]                                   ` <E1GwhJI-0003jz-GI@fencepost.gnu.org>
2006-12-19 23:55                                     ` Daiki Ueno
     [not found]                           ` <E1Gw733-00050z-Ic@fencepost.gnu.org>
     [not found]                             ` <c371ac3b-6629-4e1a-a023-92982698664b@well-done.deisui.org>
     [not found]                               ` <6662a3b9-1148-4aa0-bd2d-29a67be38d76@well-done.deisui.org>
     [not found]                                 ` <E1Gx14z-0000Zc-Lm@fencepost.gnu.org>
     [not found]                                   ` <5a520e06-4ee3-4c4f-9345-d49a666516f9@well-done.deisui.org>
     [not found]                                     ` <E1GyDFo-00006s-IW@fencepost.gnu.org>
     [not found]                                       ` <7f60c21d-2f66-4c4b-9abb-e377ca24a153@well-done.deisui.org>
     [not found]                                         ` <fe674575-f87f-46e4-8287-6481b3fc6f03@well-done.deisui.org>
     [not found]                                           ` <E1Gz20z-0003hC-Nb@fencepost.gnu.org>
     [not found]                                             ` <844cd50a-ec18-4b09-a057-35bdfb5173fd@well-done.deisui.org>
     [not found]                                               ` <E1GzP1P-0006JH-Lb@fencepost.gnu.org>
     [not found]                                                 ` <8ba25607-9381-4a27-ae53-8b0f3ccc3ac1@well-done.deisui.org>
     [not found]                                                   ` <E1Gzg8G-0002bZ-JG@fencepost.gnu.org>
     [not found]                                                     ` <366fa6ab-42a0-4df5-a17f-4ac3d1744d78@well-done.deisui.org>
     [not found]                                                       ` <E1H0Jui-0005YH-HB@fencepost.gnu.org>
     [not found]                                                         ` <ec5e0f1b-45c5-4ed5-ae1c-766fa33e3ee0@well-done.deisui.org>
2006-12-30 18:24                                                           ` pgg-encrypt is a pain in the neck Richard Stallman
2006-12-30 19:41                                                             ` Sascha Wilde
2006-12-31  1:02                                                               ` Daiki Ueno
2006-12-31 12:27                                                                 ` Sascha Wilde
2006-12-31 14:07                                                                   ` Reiner Steib
2006-12-31 14:38                                                                     ` Daiki Ueno
2006-12-31 22:13                                                                     ` Richard Stallman
2006-12-31  1:47                                                               ` Richard Stallman
2006-12-31 12:54                                                                 ` Sascha Wilde
2006-12-31 14:13                                                                   ` Daiki Ueno
2006-12-31 22:13                                                                   ` Richard Stallman
2007-01-02  0:28                                                                     ` Daiki Ueno
2007-01-02 16:37                                                                       ` Richard Stallman
2007-01-02 19:53                                                                         ` Reiner Steib
2006-12-31 22:13                                                                   ` Richard Stallman
2007-01-02 18:43                                                                     ` Stefan Monnier
2006-12-31  1:46                                                           ` Richard Stallman
     [not found]                                                       ` <E1H0Juj-0005YY-RU@fencepost.gnu.org>
2007-07-10 22:47                                                         ` Syncing Gnus and Emacs repositories Daiki Ueno
2007-07-10 22:54                                                           ` Miles Bader
2007-07-11  0:07                                                             ` Daiki Ueno
2007-07-11 21:03                                                           ` Richard Stallman
2007-07-10 21:29                   ` Stefan Monnier
2007-07-11  2:25                     ` Miles Bader
2007-07-11 21:03                       ` Richard Stallman
2007-07-11  3:05                 ` Richard Stallman
2007-07-11  3:43                   ` Daiki Ueno
2007-07-11  9:38                     ` Sascha Wilde
2007-07-11 10:22                       ` Daiki Ueno
2007-07-11 21:04                     ` Richard Stallman
2007-06-14  8:38 ` Miles Bader
     [not found] <E1Ibp6i-0001vw-LM@fencepost.gnu.org>
     [not found] ` <b4m7im7spqn.fsf@jpl.org>
2007-10-01 17:40   ` [mail.list.steel.mental@gmail.com: chinese group names can not displayed properly in *Complation* buffer] Richard Stallman
2007-10-01 18:27     ` Syncing Gnus and Emacs repositories (was: [mail.list.steel.mental@gmail.com: chinese group names can not displayed properly in *Complation* buffer]) Reiner Steib
2007-10-02  3:32       ` Richard Stallman
2007-10-02  7:16         ` Syncing Gnus and Emacs repositories Reiner Steib
2007-10-02 13:35           ` Daiki Ueno
2007-10-02 21:59             ` Richard Stallman
2007-10-03 11:09               ` Daiki Ueno
2007-10-03 11:29                 ` Leo
2007-10-03 13:41                   ` Reiner Steib
2007-10-03 14:10                     ` Leo
2007-10-04  2:03                 ` Richard Stallman
2007-10-16 21:10               ` Reiner Steib
2007-10-16 21:19                 ` Miles Bader
2007-10-02 21:59           ` Richard Stallman
2007-10-16 20:58             ` Reiner Steib

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=85bqffn6jn.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.