git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH] contrib/ciabot: git-describe commit instead of HEAD
@ 2010-09-08 23:13 Sven Eckelmann
  0 siblings, 0 replies; 7+ messages in thread
From: Sven Eckelmann @ 2010-09-08 23:13 UTC (permalink / raw)
  To: git; +Cc: esr, gitster, Sven Eckelmann

For each commit a shorter version of the name will be generated. This is
either the truncated hash or the output of git-describe. The
call to git-describe was only made with an empty shell variable instead
of an actual commit hash. Thus it only described the current HEAD and
not each commit we want to submit to cia.vc.

Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
---
 contrib/ciabot/ciabot.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/contrib/ciabot/ciabot.py b/contrib/ciabot/ciabot.py
index d0627e0..9775dff 100755
--- a/contrib/ciabot/ciabot.py
+++ b/contrib/ciabot/ciabot.py
@@ -122,7 +122,7 @@ def report(refname, merged):
     branch = os.path.basename(refname)
 
     # Compute a shortnane for the revision
-    rev = do("git describe ${merged} 2>/dev/null") or merged[:12]
+    rev = do("git describe '"+ merged +"' 2>/dev/null") or merged[:12]
 
     # Extract the neta-information for the commit
     rawcommit = do("git cat-file commit " + merged)
-- 
1.7.2.3

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

* [PATCH] contrib/ciabot: git-describe commit instead of HEAD
@ 2010-09-20  9:31 Sven Eckelmann
  0 siblings, 0 replies; 7+ messages in thread
From: Sven Eckelmann @ 2010-09-20  9:31 UTC (permalink / raw)
  To: git; +Cc: esr, gitster, Sven Eckelmann

For each commit a shorter version of the name will be generated. This is
either the truncated hash or the output of git-describe. The
call to git-describe was only made with an empty shell variable instead
of an actual commit hash. Thus it only described the current HEAD and
not each commit we want to submit to cia.vc.

Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
---
I send this patch already two weeks ago and got no reaction. This is a
resent in case it was forgotton.

 contrib/ciabot/ciabot.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/contrib/ciabot/ciabot.py b/contrib/ciabot/ciabot.py
index d0627e0..9775dff 100755
--- a/contrib/ciabot/ciabot.py
+++ b/contrib/ciabot/ciabot.py
@@ -122,7 +122,7 @@ def report(refname, merged):
     branch = os.path.basename(refname)
 
     # Compute a shortnane for the revision
-    rev = do("git describe ${merged} 2>/dev/null") or merged[:12]
+    rev = do("git describe '"+ merged +"' 2>/dev/null") or merged[:12]
 
     # Extract the neta-information for the commit
     rawcommit = do("git cat-file commit " + merged)
-- 
1.7.2.3

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

* [PATCH] contrib/ciabot: git-describe commit instead of HEAD
@ 2010-10-04  8:02 Sven Eckelmann
  2010-10-04 17:47 ` Junio C Hamano
  0 siblings, 1 reply; 7+ messages in thread
From: Sven Eckelmann @ 2010-10-04  8:02 UTC (permalink / raw)
  To: gitster, esr; +Cc: git, Sven Eckelmann

For each commit a shorter version of the name will be generated. This is
either the truncated hash or the output of git-describe. The
call to git-describe was only made with an empty shell variable instead
of an actual commit hash. Thus it only described the current HEAD and
not each commit we want to submit to cia.vc.

Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
---
I send this patch already two and four weeks ago and got no reaction.
This is a resent in case it was forgotton.

 contrib/ciabot/ciabot.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/contrib/ciabot/ciabot.py b/contrib/ciabot/ciabot.py
index d0627e0..9775dff 100755
--- a/contrib/ciabot/ciabot.py
+++ b/contrib/ciabot/ciabot.py
@@ -122,7 +122,7 @@ def report(refname, merged):
     branch = os.path.basename(refname)
 
     # Compute a shortnane for the revision
-    rev = do("git describe ${merged} 2>/dev/null") or merged[:12]
+    rev = do("git describe '"+ merged +"' 2>/dev/null") or merged[:12]
 
     # Extract the neta-information for the commit
     rawcommit = do("git cat-file commit " + merged)
-- 
1.7.2.3

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

* Re: [PATCH] contrib/ciabot: git-describe commit instead of HEAD
  2010-10-04  8:02 [PATCH] contrib/ciabot: git-describe commit instead of HEAD Sven Eckelmann
@ 2010-10-04 17:47 ` Junio C Hamano
  2010-10-11 10:43   ` Sven Eckelmann
  0 siblings, 1 reply; 7+ messages in thread
From: Junio C Hamano @ 2010-10-04 17:47 UTC (permalink / raw)
  To: esr; +Cc: Sven Eckelmann, git

Sven Eckelmann <sven.eckelmann@gmx.de> writes:

> For each commit a shorter version of the name will be generated. This is
> either the truncated hash or the output of git-describe. The
> call to git-describe was only made with an empty shell variable instead
> of an actual commit hash. Thus it only described the current HEAD and
> not each commit we want to submit to cia.vc.
>
> Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
> ---
> I send this patch already two and four weeks ago and got no reaction.
> This is a resent in case it was forgotton.

Although the computation of "rev" indeed looks wrong, I do not see it used
anywhere, so it might be a better patch to remove it ... wait, the code
does something funny to slurp everything into xml via ... 

	context = locals()
        context.update(globals())
        out = xml % context

Yuck.

Even though it has been my policy not to complain too loudly on stuff in
contrib/ part of the tree, I have to say that this is a bit too _cute_ for
my taste.

Anyway, Ok, so it _is_ used.  And it needs to be fixed.

I was hoping that Eric who took over the maintainership of contrib/ciabot/
directory in April would give his blessing sooner, without me having to
look at the script.

Ack?

>  contrib/ciabot/ciabot.py |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/contrib/ciabot/ciabot.py b/contrib/ciabot/ciabot.py
> index d0627e0..9775dff 100755
> --- a/contrib/ciabot/ciabot.py
> +++ b/contrib/ciabot/ciabot.py
> @@ -122,7 +122,7 @@ def report(refname, merged):
>      branch = os.path.basename(refname)
>  
>      # Compute a shortnane for the revision
> -    rev = do("git describe ${merged} 2>/dev/null") or merged[:12]
> +    rev = do("git describe '"+ merged +"' 2>/dev/null") or merged[:12]
>  
>      # Extract the neta-information for the commit
>      rawcommit = do("git cat-file commit " + merged)
> -- 
> 1.7.2.3

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

* Re: [PATCH] contrib/ciabot: git-describe commit instead of HEAD
  2010-10-04 17:47 ` Junio C Hamano
@ 2010-10-11 10:43   ` Sven Eckelmann
  2010-10-13 19:24     ` Junio C Hamano
  0 siblings, 1 reply; 7+ messages in thread
From: Sven Eckelmann @ 2010-10-11 10:43 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: esr, git

[-- Attachment #1: Type: Text/Plain, Size: 1668 bytes --]

Junio C Hamano wrote:
> Sven Eckelmann <sven.eckelmann@gmx.de> writes:
> > For each commit a shorter version of the name will be generated. This is
> > either the truncated hash or the output of git-describe. The
> > call to git-describe was only made with an empty shell variable instead
> > of an actual commit hash. Thus it only described the current HEAD and
> > not each commit we want to submit to cia.vc.
> > 
> > Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
> > ---
> > I send this patch already two and four weeks ago and got no reaction.
> > This is a resent in case it was forgotton.
> 
> Although the computation of "rev" indeed looks wrong, I do not see it used
> anywhere, so it might be a better patch to remove it ... wait, the code
> does something funny to slurp everything into xml via ...
> 
> 	context = locals()
>         context.update(globals())
>         out = xml % context
> 
> Yuck.
> 
> Even though it has been my policy not to complain too loudly on stuff in
> contrib/ part of the tree, I have to say that this is a bit too _cute_ for
> my taste.
> 
> Anyway, Ok, so it _is_ used.  And it needs to be fixed.

Yes, it is a little bit confusing when reading through it, but still it is 
used. :)
 
> I was hoping that Eric who took over the maintainership of contrib/ciabot/
> directory in April would give his blessing sooner, without me having to
> look at the script.
> 
> Ack?

Hm, just be sure, because I saw no other replies since this message: You 
expected reaction after that "Ack?" from Eric Raymond and not from me, or?

Anyway, thanks for answering :)

Kind regards,
	Sven

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: [PATCH] contrib/ciabot: git-describe commit instead of HEAD
  2010-10-11 10:43   ` Sven Eckelmann
@ 2010-10-13 19:24     ` Junio C Hamano
  2010-10-28 11:16       ` Sven Eckelmann
  0 siblings, 1 reply; 7+ messages in thread
From: Junio C Hamano @ 2010-10-13 19:24 UTC (permalink / raw)
  To: Sven Eckelmann, esr; +Cc: git

Sven Eckelmann <sven.eckelmann@gmx.de> writes:

>> Anyway, Ok, so it _is_ used.  And it needs to be fixed.
>
> Yes, it is a little bit confusing when reading through it, but still it is 
> used. :)
>  
>> I was hoping that Eric who took over the maintainership of contrib/ciabot/
>> directory in April would give his blessing sooner, without me having to
>> look at the script.
>> 
>> Ack?
>
> Hm, just be sure, because I saw no other replies since this message: You 
> expected reaction after that "Ack?" from Eric Raymond and not from me, or?

Yeah, Pinging ESR again now...

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

* Re: [PATCH] contrib/ciabot: git-describe commit instead of HEAD
  2010-10-13 19:24     ` Junio C Hamano
@ 2010-10-28 11:16       ` Sven Eckelmann
  0 siblings, 0 replies; 7+ messages in thread
From: Sven Eckelmann @ 2010-10-28 11:16 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: esr, git

[-- Attachment #1: Type: Text/Plain, Size: 878 bytes --]

On Wednesday 13 October 2010 21:24:09 Junio C Hamano wrote:
> Sven Eckelmann <sven.eckelmann@gmx.de> writes:
> >> Anyway, Ok, so it _is_ used.  And it needs to be fixed.
> > 
> > Yes, it is a little bit confusing when reading through it, but still it
> > is used. :)
> > 
> >> I was hoping that Eric who took over the maintainership of
> >> contrib/ciabot/ directory in April would give his blessing sooner,
> >> without me having to look at the script.
> >> 
> >> Ack?
> > 
> > Hm, just be sure, because I saw no other replies since this message: You
> > expected reaction after that "Ack?" from Eric Raymond and not from me,
> > or?
> 
> Yeah, Pinging ESR again now...

I am sure that he is still alive because he writes stuff 
http://esr.ibiblio.org/
... but I am not sure about the rest.

And yes, this is just another ping for ESR

thanks,
	Sven

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

end of thread, other threads:[~2010-10-28 11:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-04  8:02 [PATCH] contrib/ciabot: git-describe commit instead of HEAD Sven Eckelmann
2010-10-04 17:47 ` Junio C Hamano
2010-10-11 10:43   ` Sven Eckelmann
2010-10-13 19:24     ` Junio C Hamano
2010-10-28 11:16       ` Sven Eckelmann
  -- strict thread matches above, loose matches on Subject: below --
2010-09-20  9:31 Sven Eckelmann
2010-09-08 23:13 Sven Eckelmann

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

	https://80x24.org/mirrors/git.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).