From patchwork Wed Aug 31 03:58:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [08,of,12,topics] flake8: fix E111 style From: Sean Farley X-Patchwork-Id: 16509 Message-Id: To: mercurial-devel@mercurial-scm.org Cc: sean@farley.io Date: Tue, 30 Aug 2016 20:58:14 -0700 # HG changeset patch # User Sean Farley # Date 1472595523 25200 # Tue Aug 30 15:18:43 2016 -0700 # Node ID fbceb43849d91459925dabb8c5f1683744ec320b # Parent 8eb5de0920f5dce2fbf4d511b73ea6bcc7d6fe8e # EXP-Topic flake8 flake8: fix E111 style OFF BY ONE ERRORS ARE THE WORST diff --git a/hgext3rd/topic/destination.py b/hgext3rd/topic/destination.py --- a/hgext3rd/topic/destination.py +++ b/hgext3rd/topic/destination.py @@ -13,15 +13,15 @@ from .evolvebits import builddependencie def _destmergebranch(orig, repo, action='merge', sourceset=None, onheadcheck=True, destspace=None): # XXX: take destspace into account if sourceset is None: - p1 = repo['.'] + p1 = repo['.'] else: # XXX: using only the max here is flacky. That code should eventually # be updated to take care of the whole sourceset. - p1 = repo[max(sourceset)] + p1 = repo[max(sourceset)] top = p1.topic() if top: revs = repo.revs('topic(%s) - obsolete()', top) deps, rdeps = builddependencies(repo, revs) heads = [r for r in revs if not rdeps[r]] diff --git a/setup.cfg b/setup.cfg --- a/setup.cfg +++ b/setup.cfg @@ -1,2 +1,2 @@ [flake8] -ignore = E261, E266, E302, E129, E731, E124, E713, E301, E501, E111 +ignore = E261, E266, E302, E129, E731, E124, E713, E301, E501