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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx
      www.treskal.com/kalle
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux