git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] hg-to-git: add --verbose option

From
Johan Herland <johan@herland.net>
Date
May 26, 2008, 13:09 UTC
Message-ID
<200805261509.49841.johan@herland.net>
In-Reply-To
<alpine.DEB.1.00.0805261344420.30431@racer>
On Monday 26 May 2008, Johannes Schindelin wrote:
Show 9 quoted lines
> 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. :)
Show 20 quoted lines
>  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
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 2 of 9 in “hg-to-git: add --verbose option”
  1. hg-to-git: add --verbose optionJohannes Schindelin, May 26, 2008
  2. Johan HerlandMay 26, 2008
  3. Johannes SchindelinMay 26, 2008
  4. Sverre RabbelierMay 26, 2008
  5. Junio C HamanoMay 26, 2008
  6. David SymondsMay 26, 2008
  7. Johannes SchindelinMay 26, 2008
  8. hg-to-git: add --verbose optionJohannes Schindelin, May 26, 2008
  9. Stelian PopMay 26, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.