comparison tests/test-commandserver.t @ 36289:257071fd3357

py3: use range instead of xrange in tests/test-commandserver.t xrange is not present on Python 3. Differential Revision: https://phab.mercurial-scm.org/D2327
author Pulkit Goyal <7895pulkit@gmail.com>
date Sun, 18 Feb 2018 18:28:45 +0530
parents 8e72f9152c4d
children 23d12524a202
comparison
equal deleted inserted replaced
36288:217b08b1de28 36289:257071fd3357
409 ... def phasesetscacheaftercommit(server): 409 ... def phasesetscacheaftercommit(server):
410 ... readchannel(server) 410 ... readchannel(server)
411 ... # load _phasecache._phaserevs and _phasesets 411 ... # load _phasecache._phaserevs and _phasesets
412 ... runcommand(server, ['log', '-qr', 'draft()']) 412 ... runcommand(server, ['log', '-qr', 'draft()'])
413 ... # create draft commits by another process 413 ... # create draft commits by another process
414 ... for i in xrange(5, 7): 414 ... for i in range(5, 7):
415 ... f = open('a', 'ab') 415 ... f = open('a', 'ab')
416 ... f.seek(0, os.SEEK_END) 416 ... f.seek(0, os.SEEK_END)
417 ... f.write('a\n') 417 ... f.write('a\n')
418 ... f.close() 418 ... f.close()
419 ... os.system('hg commit -Aqm%d' % i) 419 ... os.system('hg commit -Aqm%d' % i)