pep8 and whitespace fixups
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
from git_upstream.errors import GitUpstreamError
|
from git_upstream.errors import GitUpstreamError
|
||||||
from git_upstream.log import LogDedentMixin
|
from git_upstream.log import LogDedentMixin
|
||||||
from git_upstream.lib import note
|
from git_upstream.lib import note # noqa
|
||||||
from git_upstream.lib.utils import GitMixin
|
from git_upstream.lib.utils import GitMixin
|
||||||
from git_upstream.lib.searchers import CommitMessageSearcher
|
from git_upstream.lib.searchers import CommitMessageSearcher
|
||||||
from git_upstream import subcommand, log
|
from git_upstream import subcommand, log
|
||||||
@@ -135,11 +135,11 @@ class Supersede(LogDedentMixin, GitMixin):
|
|||||||
Check if a supersede header is already present in the note containing
|
Check if a supersede header is already present in the note containing
|
||||||
one of change ids passed on the command line
|
one of change ids passed on the command line
|
||||||
"""
|
"""
|
||||||
note = self.commit.note(note_ref=Supersede.NOTE_REF)
|
new_note = self.commit.note(note_ref=Supersede.NOTE_REF)
|
||||||
if note:
|
if new_note:
|
||||||
pattern = '^%s\s?(%s)$' % (Supersede.SUPERSEDE_HEADER,
|
pattern = '^%s\s?(%s)$' % (Supersede.SUPERSEDE_HEADER,
|
||||||
'|'.join(self.change_ids))
|
'|'.join(self.change_ids))
|
||||||
m = re.search(pattern, note, re.MULTILINE | re.IGNORECASE)
|
m = re.search(pattern, new_note, re.MULTILINE | re.IGNORECASE)
|
||||||
if m:
|
if m:
|
||||||
self.log.warning(
|
self.log.warning(
|
||||||
("Change-Id '%s' already present in the note for commit" +
|
("Change-Id '%s' already present in the note for commit" +
|
||||||
|
@@ -124,4 +124,3 @@ def main():
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
35
setup.cfg
35
setup.cfg
@@ -9,31 +9,30 @@ summary = git tool to help manage upstream repositories
|
|||||||
description-file = DESCRIPTION
|
description-file = DESCRIPTION
|
||||||
license = Apache License (2.0)
|
license = Apache License (2.0)
|
||||||
keywords = git upstream workflow
|
keywords = git upstream workflow
|
||||||
classifiers =
|
classifiers =
|
||||||
Programming Language :: Python :: 2
|
Programming Language :: Python :: 2
|
||||||
Programming Language :: Python :: 3
|
Programming Language :: Python :: 3
|
||||||
Programming Language :: Python
|
Programming Language :: Python
|
||||||
Development Status :: 4 - Beta
|
Development Status :: 4 - Beta
|
||||||
Environment :: Console
|
Environment :: Console
|
||||||
Environment :: OpenStack
|
Environment :: OpenStack
|
||||||
Intended Audience :: Developers
|
Intended Audience :: Developers
|
||||||
Intended Audience :: Information Technology
|
Intended Audience :: Information Technology
|
||||||
License :: OSI Approved :: Apache Software License
|
License :: OSI Approved :: Apache Software License
|
||||||
Operating System :: OS Independent
|
Operating System :: OS Independent
|
||||||
|
|
||||||
[global]
|
[global]
|
||||||
commands = build_manpage.BuildManpage
|
commands = build_manpage.BuildManpage
|
||||||
|
|
||||||
[files]
|
[files]
|
||||||
packages =
|
packages =
|
||||||
git_upstream
|
git_upstream
|
||||||
data_files =
|
data_files =
|
||||||
etc/bash_completion.d = bash_completion/git-upstream
|
etc/bash_completion.d = bash_completion/git-upstream
|
||||||
|
|
||||||
[entry_points]
|
[entry_points]
|
||||||
console_scripts =
|
console_scripts =
|
||||||
git-upstream = git_upstream.main:main
|
git-upstream = git_upstream.main:main
|
||||||
rebase-editor = git_upstream.rebase_editor:main
|
rebase-editor = git_upstream.rebase_editor:main
|
||||||
|
|
||||||
[easy_install]
|
[easy_install]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user