Files
git-upstream/git_upstream/lib/__init__.py
Darragh Bailey 754db13543 Consolidate note reference and header constants
Define some constants in a single place, while avoiding a cyclical
import dependency issue.

Cannot reference the constants defined in supersede directly from a
class in searchers since supersede already imports a class in
searchers and doing an import of supersede into searchers results in a
cyclical dependency.

Instead move these out to a common file in the module as constants.

Change-Id: I350ba85f8af90cefe42fa497f88591f1e88d8d07
2016-02-07 14:53:43 +00:00

19 lines
730 B
Python

# Copyright (c) 2012, 2013, 2014 Hewlett-Packard Development Company, L.P.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
IMPORT_NOTE_REF = 'refs/notes/upstream-merge'
SUPERSEDE_HEADER = 'Superseded-by:'
DROP_HEADER = 'Dropped:'