unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* broken bzr history?
       [not found]     ` <87y6ig5mww.fsf_-_@mail.jurta.org>
@ 2010-03-01  1:01       ` Glenn Morris
  2010-03-01  2:20         ` Óscar Fuentes
  0 siblings, 1 reply; 4+ messages in thread
From: Glenn Morris @ 2010-03-01  1:01 UTC (permalink / raw)
  To: emacs-devel; +Cc: Karl Fogel


The following is from http://debbugs.gnu.org/5652#8 and onwards.
It sounds potentially serious. Is it?

Juri Linkov wrote:

>>> I typed `C-x v g' (vc-annotate) in info.el, and it displays:
>>>
>>>   49780.1.32 henrik. | (forward-line (1- (nth 3 (car Info-index-alternatives))))
>>
>> Looks like a bug in bzr.  With git blame it points to f4ed1f85:
>>
>> commit f4ed1f852b3fb7650178446ac53db773d9fd25d6
>> Author: Juri Linkov <juri@jurta.org>
>> Date:   Tue Apr 27 06:39:46 2004 +0000
>
> Yes, I can confirm this is the correct commit.  In read-only CVS I see:
>
> revision 1.393
> date: 2004-04-27 09:39:46 +0300;  author: jurta;  state: Exp;  lines: +80 -42;
> [...]
> (Info-index-next): Decrement line number.




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

* Re: broken bzr history?
  2010-03-01  1:01       ` broken bzr history? Glenn Morris
@ 2010-03-01  2:20         ` Óscar Fuentes
  2010-03-01  4:55           ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: Óscar Fuentes @ 2010-03-01  2:20 UTC (permalink / raw)
  To: emacs-devel

Glenn Morris <rgm@gnu.org> writes:

> The following is from http://debbugs.gnu.org/5652#8 and onwards.
> It sounds potentially serious. Is it?
>
> Juri Linkov wrote:
>
>>>> I typed `C-x v g' (vc-annotate) in info.el, and it displays:
>>>>
>>>>   49780.1.32 henrik. | (forward-line (1- (nth 3 (car Info-index-alternatives))))
>>>
>>> Looks like a bug in bzr.  With git blame it points to f4ed1f85:
>>>
>>> commit f4ed1f852b3fb7650178446ac53db773d9fd25d6
>>> Author: Juri Linkov <juri@jurta.org>
>>> Date:   Tue Apr 27 06:39:46 2004 +0000
>>
>> Yes, I can confirm this is the correct commit.  In read-only CVS I see:
>>
>> revision 1.393
>> date: 2004-04-27 09:39:46 +0300;  author: jurta;  state: Exp;  lines: +80 -42;
>> [...]
>> (Info-index-next): Decrement line number.

I don't think that the branch is corrupted.

What is now known as bzr revision number 49780 was the point where the
rmail-mbox branch was created on CVS. That branch synched at least once
with mainline. At certain point, the branch was merged into
mainline. Much later, Emacs migrated to bzr. And after that, on revision
99255, a fake merge was created for "injecting" the rmail-mbox branch
into the bzr history. My hypothesis is that all history that was merged
from mainline into rmail-mbox during its lifespan now is shown by
`annotate' as coming from that branch. Try

bzr log -n0 -r 99255 | less

you will see the fake merge and, scrolling down, that 49780.1.32 is
commented as "sync with trunk".

git uses a different heuristics for `annotate' and displays the right
thing (this is a case where git's "we track content, not files" shows
its strength.)

IIRC, revision 99255 was famous because it forced bzr clients to
download about 100 MB while updating the local mirrors.

Stefan, how did you create that merge revision?





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

* Re: broken bzr history?
  2010-03-01  2:20         ` Óscar Fuentes
@ 2010-03-01  4:55           ` Stefan Monnier
  2010-03-01  6:03             ` Óscar Fuentes
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2010-03-01  4:55 UTC (permalink / raw)
  To: Óscar Fuentes; +Cc: emacs-devel

> Stefan, how did you create that merge revision?

IIRC it was something like:

  bzr merge <branch>
  [... inspect bzr diff to make sure there's nothing left unmerged ...]
  bzr revert .
  bzr commit -m <msg>

In any case, it was a stupid idea on my part, and I'm "glad" to see that
I'll get to regret it some more in the future.


        Stefan




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

* Re: broken bzr history?
  2010-03-01  4:55           ` Stefan Monnier
@ 2010-03-01  6:03             ` Óscar Fuentes
  0 siblings, 0 replies; 4+ messages in thread
From: Óscar Fuentes @ 2010-03-01  6:03 UTC (permalink / raw)
  To: emacs-devel

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> Stefan, how did you create that merge revision?
>
> IIRC it was something like:
>
>   bzr merge <branch>
>   [... inspect bzr diff to make sure there's nothing left unmerged ...]
>   bzr revert .
>   bzr commit -m <msg>
>
> In any case, it was a stupid idea on my part, and I'm "glad" to see that
> I'll get to regret it some more in the future.

Well, that method was what I used while migrating some svn repos to bzr,
after the bzr developers sanctioned it. I guess that they are not aware
of the effects on `annotate'.





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

end of thread, other threads:[~2010-03-01  6:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <201002260126.o1Q1Q6uq008127@memory-leak.sm.sony.co.jp>
     [not found] ` <871vg89yve.fsf@mail.jurta.org>
     [not found]   ` <m2r5o8b9rs.fsf@igel.home>
     [not found]     ` <87y6ig5mww.fsf_-_@mail.jurta.org>
2010-03-01  1:01       ` broken bzr history? Glenn Morris
2010-03-01  2:20         ` Óscar Fuentes
2010-03-01  4:55           ` Stefan Monnier
2010-03-01  6:03             ` Óscar Fuentes

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).