unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* merge from emacs-25 to master lost a line
@ 2016-01-05  1:43 Paul Eggert
  2016-01-07 22:31 ` Phillip Lord
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Eggert @ 2016-01-05  1:43 UTC (permalink / raw)
  To: Emacs development discussions

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

The recent merge from emacs-25 to master lost the attached one-line 
spelling fix for test/automated/url-parse-tests.el that was originally 
installed in emacs-25 commit c9dfe5121cb31aa1e8cf352e5088940fc5dd7106 
dated 2015-12-26. This fix was lost even though the commit and change is 
listed in the master branch now. I fixed the problem in master as part 
of commit 61e83e902b388490b609677a76f3d49740439f24 dated 2016-01-04.

Although this particular bug is both minor and fixed now, I worry that 
there may be similar problems elsewhere.

I suspect the problem arose due to the big renaming of tests in commit 
22bbf7ca22f11cc33d887d0162cf2ec6661c3a3e dated 2015-11-23, which renamed 
a bunch of test files, e.g., from test/automated/url-util-tests.el to 
test/lisp/url/url-util-tests.el. It looks like this renaming means that 
if emacs-25 adds a test (under the old naming scheme) and then later 
changes the test (also under the old naming scheme), the later change 
will be lost when be merging to master.

If my analysis is correct, I suggest two things:

* First, when merging to master we have to be careful about the renamed 
tests. I suppose somone (I hope it's not me) could go through all the 
emacs-25 changes to tests renamed in master, and check that the changes 
are properly merged to master.

* Second, to help avoid this problem in the future we should avoid 
making wholesale renames to master right now. They're not worth the 
hassle. That is, it's OK to add stuff to master, but let's not rename 
files in master unless we really need to.


Some nearby problems in master (don't know if they're related): Commits 
8dea6fe5b5bc2936b046e799ea61afc508e28752 and 
b792ecea1715e080ad8e232d3d154b8a25d2edfb (both dated 2015-12-26) both 
have commit logs mentioning test/lisp/url/url-parse-tests.el, but 
neither in fact changes that file. Commit 
1dee11d874de5ff3d5634e1629054c4398b27b72 (also dated 2015-12-26) creates 
the file without the spelling fix.

[-- Attachment #2: spellfix.diff --]
[-- Type: text/x-patch, Size: 910 bytes --]

diff --git a/test/automated/url-parse-tests.el b/test/automated/url-parse-tests.el
index 154e091..443034a 100644
--- a/test/automated/url-parse-tests.el
+++ b/test/automated/url-parse-tests.el
@@ -156,7 +156,7 @@
   ;; example mentioned in RFC3986, section 5.4. Reference Resolution Examples
   (should (equal (url-generic-parse-url "http://a/b/c/d;p?q") (url-parse-make-urlobj "http" nil nil "a" nil "/b/c/d;p?q" nil nil t))))
 
-(ert-deftest url-generic-parse-url/same-decument-reference ()
+(ert-deftest url-generic-parse-url/same-document-reference ()
   "RFC 3986, section 4.4. Same-Document Reference / same-document reference: empty or number sign (\"#\") followed by a fragment identifier"
   (should (equal (url-generic-parse-url "") (url-parse-make-urlobj nil nil nil nil nil "" nil nil nil)))
   (should (equal (url-generic-parse-url "#") (url-parse-make-urlobj nil nil nil nil nil "" "" nil nil)))

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

* Re: merge from emacs-25 to master lost a line
  2016-01-05  1:43 merge from emacs-25 to master lost a line Paul Eggert
@ 2016-01-07 22:31 ` Phillip Lord
  2016-01-07 23:06   ` Paul Eggert
  0 siblings, 1 reply; 4+ messages in thread
From: Phillip Lord @ 2016-01-07 22:31 UTC (permalink / raw)
  To: Paul Eggert; +Cc: Emacs development discussions

Paul Eggert <eggert@cs.ucla.edu> writes:

> The recent merge from emacs-25 to master lost the attached one-line spelling
> fix for test/automated/url-parse-tests.el that was originally installed in
> emacs-25 commit c9dfe5121cb31aa1e8cf352e5088940fc5dd7106 dated 2015-12-26.
> This fix was lost even though the commit and change is listed in the master
> branch now. I fixed the problem in master as part of commit
> 61e83e902b388490b609677a76f3d49740439f24 dated 2016-01-04.
>
> Although this particular bug is both minor and fixed now, I worry that there
> may be similar problems elsewhere.
>
> I suspect the problem arose due to the big renaming of tests in commit
> 22bbf7ca22f11cc33d887d0162cf2ec6661c3a3e dated 2015-11-23, which renamed a
> bunch of test files, e.g., from test/automated/url-util-tests.el to
> test/lisp/url/url-util-tests.el. It looks like this renaming means that if
> emacs-25 adds a test (under the old naming scheme) and then later changes the
> test (also under the old naming scheme), the later change will be lost when be
> merging to master.

Hmmm. I was hoping that git was clever enough to understand the file
move, or that, at least, this would produce a conflict,
url-util-tests.el was modified on one branch and deleted (i.e. moved) in
another.


> If my analysis is correct, I suggest two things:
>
> * First, when merging to master we have to be careful about the renamed tests.
> I suppose somone (I hope it's not me) could go through all the emacs-25
> changes to tests renamed in master, and check that the changes are properly
> merged to master.

As this is my fault, I will work on this, or at least start to. It
should at least allow me to understand if this is just url-util-tests.el
or general problem as you fear.


> * Second, to help avoid this problem in the future we should avoid making
> wholesale renames to master right now. They're not worth the hassle. That is,
> it's OK to add stuff to master, but let's not rename files in master unless we
> really need to.

Yes, it looks like I should have waited till after the emacs-25 release
was made.

Oh dear, I was ever over-enthusiastic.

Phil



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

* Re: merge from emacs-25 to master lost a line
  2016-01-07 22:31 ` Phillip Lord
@ 2016-01-07 23:06   ` Paul Eggert
  2016-01-07 23:36     ` John Wiegley
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Eggert @ 2016-01-07 23:06 UTC (permalink / raw)
  To: Phillip Lord; +Cc: Emacs development discussions

On 01/07/2016 02:31 PM, Phillip Lord wrote:
> Oh dear, I was ever over-enthusiastic.

Please don't worry about it! No real harm was done, and we far prefer 
over- to under-enthusiasm.



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

* Re: merge from emacs-25 to master lost a line
  2016-01-07 23:06   ` Paul Eggert
@ 2016-01-07 23:36     ` John Wiegley
  0 siblings, 0 replies; 4+ messages in thread
From: John Wiegley @ 2016-01-07 23:36 UTC (permalink / raw)
  To: Paul Eggert; +Cc: Emacs development discussions, Phillip Lord

>>>>> Paul Eggert <eggert@cs.ucla.edu> writes:

> Please don't worry about it! No real harm was done, and we far prefer over-
> to under-enthusiasm.

Enthusiasm is the volunteer's primary fuel source.

-- 
John Wiegley                  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2



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

end of thread, other threads:[~2016-01-07 23:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-05  1:43 merge from emacs-25 to master lost a line Paul Eggert
2016-01-07 22:31 ` Phillip Lord
2016-01-07 23:06   ` Paul Eggert
2016-01-07 23:36     ` John Wiegley

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

	https://git.savannah.gnu.org/cgit/emacs.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).