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

Re: [PATCH] hg-to-git: fix parent analysis

From
Karl Hasselström <kha@treskal.com>
Date
Feb 19, 2008, 10:12 UTC
Message-ID
<20080219101244.GA3825@diana.vm.bytemark.co.uk>
In-Reply-To
<1203110444.5579.23.camel@galileo>
On 2008-02-15 22:20:44 +0100, Stelian Pop wrote:
> -    prnts = os.popen('hg log -r %d --template "{parents}"' % cset).read().split(' ')
> +    prnts = os.popen('hg log -r %d --template "{parents}"' % cset).read().strip().split(' ')

If it's not already too late, you could wrap this line when you're changing it anyway. Something like this maybe:

    prnts = os.popen('hg log -r %d --template "{parents}"' % cset
                     ).read().strip().split(' ')
-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
Previous: Stelian Pop
Message 2 of 2 in “hg-to-git: fix parent analysis”
  1. hg-to-git: fix parent analysisStelian Pop, Feb 15, 2008
  2. Karl HasselströmFeb 19, 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.