comparison hgext/acl.py @ 43117:8ff1ecfadcd1

cleanup: join string literals that are already on one line Thanks to Kyle for noticing this and for providing the regular expression to run on the codebase. This patch has been reviewed by the test suite and they approved of it. # skip-blame: fallout from mass reformatting Differential Revision: https://phab.mercurial-scm.org/D7028
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 08 Oct 2019 15:06:18 -0700
parents 687b865b95ad
children 9f70512ae2cf
comparison
equal deleted inserted replaced
43116:defabf63e969 43117:8ff1ecfadcd1
437 for rev in pycompat.xrange(repo[node].rev(), len(repo)): 437 for rev in pycompat.xrange(repo[node].rev(), len(repo)):
438 ctx = repo[rev] 438 ctx = repo[rev]
439 branch = ctx.branch() 439 branch = ctx.branch()
440 if denybranches and denybranches(branch): 440 if denybranches and denybranches(branch):
441 raise error.Abort( 441 raise error.Abort(
442 _(b'acl: user "%s" denied on branch "%s"' b' (changeset "%s")') 442 _(b'acl: user "%s" denied on branch "%s" (changeset "%s")')
443 % (user, branch, ctx) 443 % (user, branch, ctx)
444 ) 444 )
445 if allowbranches and not allowbranches(branch): 445 if allowbranches and not allowbranches(branch):
446 raise error.Abort( 446 raise error.Abort(
447 _( 447 _(
455 ) 455 )
456 456
457 for f in ctx.files(): 457 for f in ctx.files():
458 if deny and deny(f): 458 if deny and deny(f):
459 raise error.Abort( 459 raise error.Abort(
460 _(b'acl: user "%s" denied on "%s"' b' (changeset "%s")') 460 _(b'acl: user "%s" denied on "%s" (changeset "%s")')
461 % (user, f, ctx) 461 % (user, f, ctx)
462 ) 462 )
463 if allow and not allow(f): 463 if allow and not allow(f):
464 raise error.Abort( 464 raise error.Abort(
465 _( 465 _(