comparison mercurial/context.py @ 40944:789515904b03

py3: use '%d' for integers instead of '%s' This should fix test-rebase-inmemory.t which started failing on Python 3 after recent changes. Differential Revision: https://phab.mercurial-scm.org/D5420
author Pulkit Goyal <pulkit@yandex-team.ru>
date Fri, 14 Dec 2018 19:12:45 +0300
parents cb372d09d30a
children e10adebf8176
comparison
equal deleted inserted replaced
40943:205c639ce27d 40944:789515904b03
1868 def fail(path, component): 1868 def fail(path, component):
1869 # p1() is the base and we're receiving "writes" for p2()'s 1869 # p1() is the base and we're receiving "writes" for p2()'s
1870 # files. 1870 # files.
1871 if 'l' in self.p1()[component].flags(): 1871 if 'l' in self.p1()[component].flags():
1872 raise error.Abort("error: %s conflicts with symlink %s " 1872 raise error.Abort("error: %s conflicts with symlink %s "
1873 "in %s." % (path, component, 1873 "in %d." % (path, component,
1874 self.p1().rev())) 1874 self.p1().rev()))
1875 else: 1875 else:
1876 raise error.Abort("error: '%s' conflicts with file '%s' in " 1876 raise error.Abort("error: '%s' conflicts with file '%s' in "
1877 "%s." % (path, component, 1877 "%d." % (path, component,
1878 self.p1().rev())) 1878 self.p1().rev()))
1879 1879
1880 # Test that each new directory to be created to write this path from p2 1880 # Test that each new directory to be created to write this path from p2
1881 # is not a file in p1. 1881 # is not a file in p1.
1882 components = path.split('/') 1882 components = path.split('/')