all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Luke Lee <luke.yx.lee@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Please don't obsolete "crisp.el"
Date: Thu, 10 Jul 2014 10:43:19 +0800	[thread overview]
Message-ID: <CAA=xLRObgHrweb9_+RNm3D27b9dG-CfpBnKXwwQsK9+-bU2XJQ@mail.gmail.com> (raw)
In-Reply-To: <jwvr41ur7mk.fsf-monnier+emacs@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 5503 bytes --]

> Which steps did you follow?  The "git log | git am" ones or the "git
> filter-branch" ones?

I don't think "git log | git am" works since lot of commits not just touched
crisp.el but also other Emacs trunk files. I only tried the filter-branch
approach.

> If it contains trunk commit messages unrelated to crisp.el, it sounds
> like a serious problem, indeed.
>
> Otherwise I don't understand why you think it's a problem.  Can you show
> some example?

Here is an example if we do not change the committed messages:

<<< Original ELPA: <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

commit 8739586a2539b482bdb48350bbcda00c44d82805
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Date:   Mon Jul 7 09:17:28 2014 -0400

    * caps-lock: New package.

commit 8f5704b427ea314e4b95a242a3b717d9976d48f9
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Date:   Thu Jul 3 09:35:44 2014 -0400

    * admin/archive-contents.el: Don't stop at the first incorrect version
...
    * externals-list (rudel): Not maintained externally any more.
    (chess): Fix syntax.

>>> ELPA with Emacs crisp.el merged >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

commit 8739586a2539b482bdb48350bbcda00c44d82805
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Date:   Mon Jul 7 09:17:28 2014 -0400

    * caps-lock: New package.

+commit 086a393b7aae6fbe214839aea67a02133f5ef955
+>Author: Glenn Morris <rgm@gnu.org>
+Date:   Sun Jul 6 16:58:52 2014 -0700
+
+    * cua-rect.el (cua--activate-rectangle): Avoid setting cua--rectangle
...

commit 8f5704b427ea314e4b95a242a3b717d9976d48f9
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Date:   Thu Jul 3 09:35:44 2014 -0400

    * admin/archive-contents.el: Don't stop at the first incorrect version
...
    * externals-list (rudel): Not maintained externally any more.
    (chess): Fix syntax.

============================================================================

As you can see, the added commit is confusing since it's Emacs repo specific
but not ELPA.

If we did some message filtering and add notes, it will be easiler to tell
that
commit merged from Emacs trunk due to crisp.el package migration. Here
is an example if we prefixed every merged message with a note like:
"* Merged from Emacs trunk lisp/emulation/crisp.el":

<<< Original ELPA: <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

commit 8739586a2539b482bdb48350bbcda00c44d82805
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Date:   Mon Jul 7 09:17:28 2014 -0400

    * caps-lock: New package.

commit 8f5704b427ea314e4b95a242a3b717d9976d48f9
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Date:   Thu Jul 3 09:35:44 2014 -0400

    * admin/archive-contents.el: Don't stop at the first incorrect version
...
    * externals-list (rudel): Not maintained externally any more.
    (chess): Fix syntax.

>>> ELPA with Emacs crisp.el and message mangling >>>>>>>>>>>>>>>>>>>>>>>>>>

commit 8739586a2539b482bdb48350bbcda00c44d82805
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Date:   Mon Jul 7 09:17:28 2014 -0400

    * caps-lock: New package.

+commit 086a393b7aae6fbe214839aea67a02133f5ef955
+>Author: Glenn Morris <rgm@gnu.org>
+Date:   Sun Jul 6 16:58:52 2014 -0700
+
+    * Merged from Emacs trunk lisp/emulation/crisp.el
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+    * cua-rect.el (cua--activate-rectangle): Avoid setting cua--rectangle
...

commit 8f5704b427ea314e4b95a242a3b717d9976d48f9
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Date:   Thu Jul 3 09:35:44 2014 -0400

    * admin/archive-contents.el: Don't stop at the first incorrect version
...
    * externals-list (rudel): Not maintained externally any more.
    (chess): Fix syntax.

============================================================================

Okay, now we can immediately understand this comes from Emacs trunk and feel
free to skip it.

I prefer this added-on note to be "prefixed" instead of "postfixed" since it
tell the log reader that this commit comes from Emacs trunk merge; before
the
reader reads the whole message, got confused, finally understands this
commit
comes from Emacs trunk merge, at the last line of the message.  But for
those
1-liners messages (like gitk branch graph) you'll see the same message for
all
crisp.el commits since it only show the first line of the message.

Personally it's okay with me since I only need to skip this kind of messages
in the log, but I don't know how others think.

There are two other observation during my expreiment:

1. I found that in the Emacs repo git clone, A LOT OF commits did not even
   touched crisp.el but are all included in the log history of crisp.el. I
   don't know if it's caused by bzr -> git mirroring information loss, or if
   this happend even in earlier years before bzr is used, or if there are
   some defetcts during git filter-branch. This seems to leave quite a few
   dummy commits without any diff against crisp.el.

2. We merged only the commits that relates to "crisp.el". But those commits
   might not just crisp.el specific and touched other files too. You will
still see
   the diff of other Emacs trunk files that never exists in ELPA, when
examine
   those commits in detail.

A perfect merge would be to just keeping the diffs of crisp.el, and filter
out
commit messages unrelated to crisp.el. Maybe a more complicated filtering
can
achieve this goal. But like you said, to find this perfetct method could be
too
much hassle for too little benefit.

Best regards,
Luke Lee

[-- Attachment #2: Type: text/html, Size: 7384 bytes --]

  reply	other threads:[~2014-07-10  2:43 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-07  9:13 Please don't obsolete "crisp.el" Luke Lee
2014-07-07 15:58 ` Glenn Morris
2014-07-07 16:36   ` Stefan Monnier
2014-07-08  5:01     ` Luke Lee
2014-07-08 18:42       ` Glenn Morris
2014-07-08 20:04         ` Stefan Monnier
2014-07-09  6:47           ` Luke Lee
2014-07-09 10:39             ` Luke Lee
2014-07-09 13:24             ` Stefan Monnier
2014-07-10  2:43               ` Luke Lee [this message]
2014-07-10  6:20                 ` Luke Lee
2014-07-10 13:48                 ` Stefan Monnier
2014-07-10 14:26                 ` Stefan Monnier
2014-07-11 10:03                   ` Luke Lee
2014-07-11 10:32                     ` Yuri Khan
2014-07-14 10:28                       ` Luke Lee
2014-07-11 12:44                     ` Andreas Schwab
2014-07-14 10:30                       ` Luke Lee
2014-07-11 13:32                     ` Stefan Monnier
2014-07-14 10:29                       ` Luke Lee
2014-07-21  2:26                         ` luke.yx.lee
2014-07-21  4:00                           ` Stefan Monnier
2014-07-12 14:47         ` Stephen Leake

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='CAA=xLRObgHrweb9_+RNm3D27b9dG-CfpBnKXwwQsK9+-bU2XJQ@mail.gmail.com' \
    --to=luke.yx.lee@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.