[PATCH STABLE] strip: do not overwrite existing backup bundles

Dennis Brakhane brakhane at googlemail.com
Wed Dec 28 10:43:39 CST 2011


On Wed, Dec 28, 2011 at 4:40 PM, Frank Kingswood
<frank at kingswood-consulting.co.uk> wrote:
>> I would add a bound to the amount of filename we try.
>>
>> filename = "%s-%s.hg" % (short(node), suffix)
>> for i in itertools.count(1, 256):
>
> That is not how itertools.count works.
> This sets the increment to 256, not a limit.

... otherwise it would be the same as xrange.


More information about the Mercurial-devel mailing list