agito-config/chocolate-doom-misc.cfg
Simon Howard abcd43a3e0 Add Git conversion configuration files.
Subversion-branch: /git
Subversion-revision: 2539
2012-11-04 23:13:30 +00:00

128 lines
3.5 KiB
Python

# URL of the Subversion repository.
SVN_REPO = "file:///.../chocolate-doom-repo"
# Path to directory where the Git repository containing the converted
# history should be stored.
GIT_REPO = "chocolate-doom-misc"
# Subversion paths to convert to Git branches.
# If the paths contain the '%' character, this is a wildcard to map
# from Subversion path to Git branch name. For example:
# "/releases/foobar-%" : "v%"
# Will result in this mapping:
# /releases/foobar-0.0.1 -> v0.0.1
BRANCHES = {
"/buildscripts" : "buildscripts",
"/debian" : "debian",
"/git" : "git",
"/icon" : "icon",
"/launcher" : "launcher",
"/master" : "master",
"/research" : "research",
"/tools" : "tools",
}
# Subversion paths to convert to Git tags.
TAGS = {
}
# Subversion username to Git author mapping.
AUTHORS = {
"fraggle" : ("Simon Howard", "fraggle@gmail.com"),
# Fall back to me.
None : ("Simon Howard", "fraggle@gmail.com"),
}
# Default author, when not found in the AUTHORS map above. The '%'
# is replaced with the Subversion username.
DEFAULT_AUTHOR = ("%", "%@users.sourceforge.net")
# ---------------------------------------------------------------------------
# If true, tags are created as annotated tag objects, rather than just
# refs to the head of the history of the tag. This is done by taking the
# change at the head of the history, discarding it, and creating a tag
# object in its place, reusing the commit message from the discarded
# commit. This behavior works for most Subversion tags, where the tag
# was created by a 'svn cp' from one path to another. As a sanity check,
# the tree of the head commit is checked to ensure that it matches the
# tree of the parent commit. If it does not, a normal "ref tag" is
# created.
CREATE_TAG_OBJECTS = True
# Functions to apply to commit messages to convert from Subversion
# commit messages to Git ones.
COMMIT_MESSAGE_FILTERS = [
agito.reflow_text, # Reflow text to 72 columns
agito.append_branch_info, # Append SVN branch/rev info.
]
# List of revision numbers of Subversion revisions that should be
# "filtered" from the converted history: any changes made in a filtered
# revision will be included in the following revision instead. If you
# filter a commit that is the head of a branch, you're going to have a
# bad time.
FILTER_REVISIONS = []
# Callback function to invoke before creating each commit. This is
# similar to Git's 'filter-branch' command. Invoked with the branch
# path, log entry metadata dictionary, and Directory object representing
# the tree.
#
# The metadata dictionary contains the data used in constructing the Git
# commit - the keys are the same names as the environment variables set
# by 'git filter-branch'.
#def my_filter_callback(path, entry, metadata, treedir):
# pass
#
#FILTER_BRANCH_CALLBACK = my_filter_callback
# These lines are included in the root .gitignore file.
SVN_DEFAULT_IGNORES = """
# These are the default patterns globally ignored by Subversion:
*.o
*.lo
*.la
*.al
.libs
*.so
*.so.[0-9]*
*.a
*.pyc
*.pyo
*.rej
*~
.#*
.*.swp
.DS_store
"""
# Subversion properties used for tracking merges. This maps from a
# property name to a callback function to invoke when the property with
# that value is changed on the root of a branch. The function returns a
# tuple containing the Subversion path of the branch that was merged,
# and the revision number of the point on the branch that was merged.
#def my_merge_callback(path, entry, changed):
# old_value, new_value = changed
# ...
# return ("/branches/foo-branch", 1234)
MERGE_CALLBACKS = {
}
# vim: set ft=python: