From: Johan Herland <johan@herland.net>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: git@vger.kernel.org, Stelian Pop <stelian@popies.net>, gitster@pobox.com
Subject: Re: [PATCH] hg-to-git: add --verbose option
Date: Mon, 26 May 2008 15:09:49 +0200 [thread overview]
Message-ID: <200805261509.49841.johan@herland.net> (raw)
In-Reply-To: <alpine.DEB.1.00.0805261344420.30431@racer>
On Monday 26 May 2008, Johannes Schindelin wrote:
> This patch adds an option to make hg-to-git quiet by default. Note:
> it only suppresses those messages that would be printed when
> everything was up-to-date.
>
> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
> ---
>
> Yeah, I know, a Python hater codes in Python. Well, somebody told
> me I had to code in it until I do not hate it anymore.
Looks ok to me. :)
> contrib/hg-to-git/hg-to-git.py | 18 +++++++++++++-----
> 1 files changed, 13 insertions(+), 5 deletions(-)
>
> diff --git a/contrib/hg-to-git/hg-to-git.py
> b/contrib/hg-to-git/hg-to-git.py index d72ffbb..daad399 100755
> --- a/contrib/hg-to-git/hg-to-git.py
> +++ b/contrib/hg-to-git/hg-to-git.py
> @@ -46,6 +46,7 @@ options:
> for incrementals
> -n, --nrepack=INT: number of changesets that will trigger
> a repack (default=0, -1 to deactivate)
> + -v, --verbose: be verbose
>
> required:
> hgprj: name of the HG project to import (directory)
> @@ -75,15 +76,18 @@ def getgitenv(user, date):
>
> state = ''
> opt_nrepack = 0
> +verbose = ''
Maybe this should be
verbose = false
since it indicates your intent to exclusively use this variable as a
boolean.
The rest is ok, AFAICS.
Have fun! :)
...Johan
--
Johan Herland, <johan@herland.net>
www.herland.net
next prev parent reply other threads:[~2008-05-26 13:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-26 12:46 [PATCH] hg-to-git: add --verbose option Johannes Schindelin
2008-05-26 13:09 ` Johan Herland [this message]
2008-05-26 13:14 ` Johannes Schindelin
2008-05-26 13:28 ` Sverre Rabbelier
2008-05-26 17:19 ` Junio C Hamano
2008-05-26 21:29 ` David Symonds
2008-05-26 21:47 ` Johannes Schindelin
2008-05-26 13:20 ` [PATCH v2] " Johannes Schindelin
2008-05-26 14:33 ` Stelian Pop
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200805261509.49841.johan@herland.net \
--to=johan@herland.net \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=stelian@popies.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).