comparison hgext/closehead.py @ 40228:a17c07793dcd

py3: use '%d' for rev nums instead of '%s' This makes test-close-head.t pass on Python 3. Differential Revision: https://phab.mercurial-scm.org/D5040
author Pulkit Goyal <pulkit@yandex-team.ru>
date Sat, 13 Oct 2018 05:12:20 +0300
parents 12a72729678e
children c303d65d2e34
comparison
equal deleted inserted replaced
40227:f4893b59230f 40228:a17c07793dcd
64 for branch in repo.branchmap(): 64 for branch in repo.branchmap():
65 heads.extend(repo.branchheads(branch)) 65 heads.extend(repo.branchheads(branch))
66 heads = set(repo[h].rev() for h in heads) 66 heads = set(repo[h].rev() for h in heads)
67 for rev in revs: 67 for rev in revs:
68 if rev not in heads: 68 if rev not in heads:
69 raise error.Abort(_('revision is not an open head: %s') % rev) 69 raise error.Abort(_('revision is not an open head: %d') % rev)
70 70
71 message = cmdutil.logmessage(ui, opts) 71 message = cmdutil.logmessage(ui, opts)
72 if not message: 72 if not message:
73 raise error.Abort(_("no commit message specified with -l or -m")) 73 raise error.Abort(_("no commit message specified with -l or -m"))
74 extra = { 'close': '1' } 74 extra = { 'close': '1' }