comparison mercurial/copies.py @ 40076:2e9378f62232

py3: use '%f' for floats instead of '%s' I remember Yuya saying we need to use bytestr() or '%r' because '%s' was clever. Not sure it applies to this or not. Differential Revision: https://phab.mercurial-scm.org/D4894
author Pulkit Goyal <pulkit@yandex-team.ru>
date Fri, 05 Oct 2018 23:31:51 +0300
parents cf01616f8d96
children 873f3682c8af
comparison
equal deleted inserted replaced
40075:ad8d8dc9be3f 40076:2e9378f62232
210 if ofctx: 210 if ofctx:
211 if debug: 211 if debug:
212 dbg('debug.copies: rename of: %s\n' % ofctx._path) 212 dbg('debug.copies: rename of: %s\n' % ofctx._path)
213 cm[f] = ofctx.path() 213 cm[f] = ofctx.path()
214 if debug: 214 if debug:
215 dbg('debug.copies: time: %s seconds\n' 215 dbg('debug.copies: time: %f seconds\n'
216 % (util.timer() - start)) 216 % (util.timer() - start))
217 return cm 217 return cm
218 218
219 def _forwardcopies(a, b, match=None): 219 def _forwardcopies(a, b, match=None):
220 """find {dst@b: src@a} copy mapping where a is an ancestor of b""" 220 """find {dst@b: src@a} copy mapping where a is an ancestor of b"""