git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Gitk and --no-walk don't play together
@ 2008-09-08 16:25 Jan Engelhardt
  2008-09-08 16:34 ` Santi Bejar
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Engelhardt @ 2008-09-08 16:25 UTC (permalink / raw)
  To: git; +Cc: jengelh


Hi,


in an attempt to only show only the tags in the graph, gitk barfs:

$ gitk --no-walk v2.6.25 v2.6.26
[ Error reading commits: child killed: segmentation violation ]

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

* Re: Gitk and --no-walk don't play together
  2008-09-08 16:25 Gitk and --no-walk don't play together Jan Engelhardt
@ 2008-09-08 16:34 ` Santi Bejar
  2008-09-08 17:25   ` Jan Engelhardt
  0 siblings, 1 reply; 6+ messages in thread
From: Santi Bejar @ 2008-09-08 16:34 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: git

On Mon, Sep 8, 2008 at 6:25 PM, Jan Engelhardt <jengelh@medozas.de> wrote:
>
> Hi,
>
>
> in an attempt to only show only the tags in the graph, gitk barfs:

Use the "List references" in the file menu.

>
> $ gitk --no-walk v2.6.25 v2.6.26
> [ Error reading commits: child killed: segmentation violation ]

At least, you should say the git version, the OS and platform.

It is the child process that segfaults, you could try "git rev-list
--no-walk v2.6.25 v2.6.26" directly and even try to debug it?

Santi


> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

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

* Re: Gitk and --no-walk don't play together
  2008-09-08 16:34 ` Santi Bejar
@ 2008-09-08 17:25   ` Jan Engelhardt
  2008-09-08 18:53     ` Santi Bejar
                       ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Jan Engelhardt @ 2008-09-08 17:25 UTC (permalink / raw)
  To: Santi Bejar; +Cc: git


On Monday 2008-09-08 12:34, Santi Bejar wrote:
>
>> in an attempt to only show only the tags in the graph, gitk barfs:
>
>Use the "List references" in the file menu.

Nope, the intention was to have gitk display something like

* Linux 2.6.26
|
* Linux 2.6.25

without any intermediate commits.

>> $ gitk --no-walk v2.6.25 v2.6.26
>> [ Error reading commits: child killed: segmentation violation ]
>
>At least, you should say the git version, the OS and platform.

Right you are. gitk 1.5.4.3 and Linux 2.6.24.7.

>It is the child process that segfaults, you could try "git rev-list
>--no-walk v2.6.25 v2.6.26" directly and even try to debug it?

rev-list completes without any problems. I straced gitk, and see:

	git log --no-color -z --pretty=raw --topo-order
	--parents --boundary --no-walk v2.6.25 v2.6.26

To reproduce:

	git log [with all that arguments] >/dev/null; echo $?
	Segmentation fault
	139

It is fixed in v1.6.0.1-267-gec3a4ba. Bisect identified that 
3131b71 fixed it:

    Add "--show-all" revision walker flag for debugging


So case closed and thank you ;-)
Jan

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

* Re: Gitk and --no-walk don't play together
  2008-09-08 17:25   ` Jan Engelhardt
@ 2008-09-08 18:53     ` Santi Bejar
  2008-09-08 19:07     ` Dmitry Potapov
  2008-09-08 19:19     ` Junio C Hamano
  2 siblings, 0 replies; 6+ messages in thread
From: Santi Bejar @ 2008-09-08 18:53 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: git

On Mon, Sep 8, 2008 at 7:25 PM, Jan Engelhardt <jengelh@medozas.de> wrote:
>
> On Monday 2008-09-08 12:34, Santi Bejar wrote:
>>
>>> in an attempt to only show only the tags in the graph, gitk barfs:
>>
>>Use the "List references" in the file menu.
>
> Nope, the intention was to have gitk display something like
>
> * Linux 2.6.26
> |
> * Linux 2.6.25
>
> without any intermediate commits.
>

I think the only option is to generate a graft file specifying 2.6.25
as parent  of 2.6.26.

I have an script that generates it. It gives an overview of the
branches/tags, where the parents of a branch/tag are the independent
branches/tags that are antecesors (search for git-overview in the
list). But currently it has a very bad performance, it could be added
to git itself like the other history simplifications, but I don´t
know.

Santi

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

* Re: Gitk and --no-walk don't play together
  2008-09-08 17:25   ` Jan Engelhardt
  2008-09-08 18:53     ` Santi Bejar
@ 2008-09-08 19:07     ` Dmitry Potapov
  2008-09-08 19:19     ` Junio C Hamano
  2 siblings, 0 replies; 6+ messages in thread
From: Dmitry Potapov @ 2008-09-08 19:07 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: Santi Bejar, git

On Mon, Sep 08, 2008 at 01:25:12PM -0400, Jan Engelhardt wrote:
> rev-list completes without any problems. I straced gitk, and see:
> 
> 	git log --no-color -z --pretty=raw --topo-order
> 	--parents --boundary --no-walk v2.6.25 v2.6.26

git log crashed when it tried to print the boundary commit.
It seems the bug exists in all 1.5.4.x and was fixed in 1.5.5.
The commit that fixed the bug is 3131b71 when --show-all was added
to revision log. The lines that fixed this bug are the following:

> diff --git a/log-tree.c b/log-tree.c
> index 1f3fcf1..e9ba6df 100644
> --- a/log-tree.c
> +++ b/log-tree.c
> @@ -278,6 +282,9 @@ void show_log(struct rev_info *opt, const char *sep)
>  		}
>  	}
>  
> +	if (!commit->buffer)
> +		return;
> +
>  	/*
>  	 * And then the pretty-printed message itself
>  	 */

Dmitry

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

* Re: Gitk and --no-walk don't play together
  2008-09-08 17:25   ` Jan Engelhardt
  2008-09-08 18:53     ` Santi Bejar
  2008-09-08 19:07     ` Dmitry Potapov
@ 2008-09-08 19:19     ` Junio C Hamano
  2 siblings, 0 replies; 6+ messages in thread
From: Junio C Hamano @ 2008-09-08 19:19 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: Santi Bejar, git

Jan Engelhardt <jengelh@medozas.de> writes:

> On Monday 2008-09-08 12:34, Santi Bejar wrote:
>>
>>> in an attempt to only show only the tags in the graph, gitk barfs:
>>
>>Use the "List references" in the file menu.
>
> Nope, the intention was to have gitk display something like
>
> * Linux 2.6.26
> |
> * Linux 2.6.25
>
> without any intermediate commits.

Aren't you being unreasonable?  How would gitk know to draw the line
between .25 and .26 without walking the history?

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

end of thread, other threads:[~2008-09-08 19:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-08 16:25 Gitk and --no-walk don't play together Jan Engelhardt
2008-09-08 16:34 ` Santi Bejar
2008-09-08 17:25   ` Jan Engelhardt
2008-09-08 18:53     ` Santi Bejar
2008-09-08 19:07     ` Dmitry Potapov
2008-09-08 19:19     ` Junio C Hamano

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