Re: CIA hook for contrib/

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Petr Baudis
Date: Wednesday, April 21, 2010 - 3:10 am

Hi!

On Sat, Mar 27, 2010 at 06:26:32AM -0400, Eric Raymond wrote:

  Strange, I received no mail from you. When did you send it?


  It would have been easier to review if it was quotable. ;-)
(I have also looked at the current checked in version.)

  I'm happy that someone resurrected the hook script, thanks for that!
By the way, you seem to drop support for XML::RPC altogether while the
original ciabot.pl could use both. While XML::RPC requires another
dependency (not sure if plain Python installation can do it) and it can
time out in case of CIA server trouble (not sure how common these are
nowadays), the distinct advantage is that the commits will always end up
in correct order, while it seemed to be common that by mail, push of
multiple commits would reorder them randomly.

                  ^^^^^^^^^^^^^^^^^^^^

Obsolete .bash reference.


I personally find git-describe'd revspecs extremely ugly, unreadable and
less practical than plain hex ids (maybe I'm weird?), it would be really
nice to get a configuration choice between git describe and just:

	rev=$(echo "$merged" | cut -c 1-12)

(Not sure about the bashism rant since you can trivially just replace it
with the cut.)


The comment is not accurate since that code seems to be doing a lot of
other things as well.

I would personally prefer to have this configurable; I consider trying
to protect your e-mail address against harvesters is a lost fight anyway
and you'd be much better off just getting a good spam filter, rather
than making yours and others' life harder by trying to fight in vain.
But it's not too important for me since I can just disable this easily.


Your life would be much easier in both the shell and python script if
you used something like:

	git log -1 '--pretty=format:%an <%ae>%n%at%n%s'

You would also get <ts> in the correct format, incl. timezone correction.

  Kind regards,

-- 
				Petr "Pasky" Baudis
http://pasky.or.cz/ | "Ars longa, vita brevis." -- Hippocrates
--
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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
CIA hook for contrib/, Eric Raymond, (Sat Mar 27, 3:26 am)
Re: CIA hook for contrib/, Junio C Hamano, (Sun Mar 28, 11:14 pm)
Re: CIA hook for contrib/, Eric Raymond, (Mon Mar 29, 2:04 am)
Re: CIA hook for contrib/, Petr Baudis, (Wed Apr 21, 3:10 am)
Re: CIA hook for contrib/, Eric Raymond, (Wed Apr 21, 8:51 am)
Re: CIA hook for contrib/, Petr Baudis, (Wed Apr 21, 2:04 pm)
Re: CIA hook for contrib/, Eric Raymond, (Wed Apr 21, 2:55 pm)
Re: CIA hook for contrib/, Eric Raymond, (Wed Apr 21, 3:00 pm)