comparison mercurial/debugcommands.py @ 43238:101ae8bbfa02

cleanup: hgdemandimport.tracing accepts strings, not bytes This does mean that the resulting traces will have some b'' goo in them on Python 3, but I think that's a worthwile price to pay since it doesn't break any tests. Differential Revision: https://phab.mercurial-scm.org/D7108
author Augie Fackler <augie@google.com>
date Tue, 15 Oct 2019 11:06:04 -0400
parents ba5b062a1388
children 313e3a279828
comparison
equal deleted inserted replaced
43237:b21e3a747501 43238:101ae8bbfa02
948 ) 948 )
949 return common, hds 949 return common, hds
950 950
951 remoterevs, _checkout = hg.addbranchrevs(repo, remote, branches, revs=None) 951 remoterevs, _checkout = hg.addbranchrevs(repo, remote, branches, revs=None)
952 localrevs = opts[b'rev'] 952 localrevs = opts[b'rev']
953 with util.timedcm(b'debug-discovery') as t: 953 with util.timedcm('debug-discovery') as t:
954 common, hds = doit(localrevs, remoterevs) 954 common, hds = doit(localrevs, remoterevs)
955 955
956 # compute all statistics 956 # compute all statistics
957 common = set(common) 957 common = set(common)
958 rheads = set(hds) 958 rheads = set(hds)