From: Karl Hasselström Date: Tue, 19 Feb 2008 10:12:44 GMT Subject: Re: [PATCH] hg-to-git: fix parent analysis 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