contrib/synthrepo.py
changeset 41365 876494fd967d
parent 38588 1c93e0237a24
child 41397 0bd56c291359
equal deleted inserted replaced
41364:0132221c25cd 41365:876494fd967d
   448                 for __ in xrange(add):
   448                 for __ in xrange(add):
   449                     lines.insert(random.randint(0, len(lines)), makeline())
   449                     lines.insert(random.randint(0, len(lines)), makeline())
   450                 path = fctx.path()
   450                 path = fctx.path()
   451                 changes[path] = '\n'.join(lines) + '\n'
   451                 changes[path] = '\n'.join(lines) + '\n'
   452             for __ in xrange(pick(filesremoved)):
   452             for __ in xrange(pick(filesremoved)):
   453                 path = random.choice(mfk)
       
   454                 for __ in xrange(10):
   453                 for __ in xrange(10):
   455                     path = random.choice(mfk)
   454                     path = random.choice(mfk)
   456                     if path not in changes:
   455                     if path not in changes:
   457                         break
   456                         break
   458         if filesadded:
   457         if filesadded: