Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • svnCommitMessage = PATTERN
    Anchor
    svn.svnCommitMessage
    svn.svnCommitMessage

    a pattern consisting of placeholders that construct SVN commit message when a Git commit is being translated to SVN. There are several acceptable placeholders:
    •  %author    = Git author
    • %committer = Git committer
    • %date      = Git commit date
    • %message   = original message
    • %note             = Git commit note stored under refs/notes/commits
    • %note(refs/notes/namespace) = Git commit note stored under refs/notes/namespace
    • %commit      = Git commit hash
    • %svnUser       = Subversion username
    • %branch        = Subversion branch
    • \n                   = newline feed
       

    For example, if the svnCommitMessage was set like this:

    Code Block
    languagetext
    themeFadeToGrey
    titlesvnCommitMessage
    svnCommitMessage = Git: %author\n%commit@%branch\\n%message

    and then a commit has been pushed to the mirrored Git repository:

    Code Block
    languagetext
    themeFadeToGrey
    titleGit commit
    $ git log -v
    commit 161c0bc44517c21d8eb24b720dad71d724b915f9
    Author: John Doe <johndoe@example.com>
    Date:   Thu Jun 29 18:25:04 2017 +0500
    
        svnCommitMessage example

    respective SVN revision will look like this:

    Code Block
    languagetext
    themeFadeToGrey
    titleSVN revision 196
    -----------------------------------------------------------------
    r196 | johndoe | 2017-06-29 18:25:04 +0500 (Thu, 29 Jun 2017) |
    Changed paths:
       M /project1/trunk
       M /project1/trunk/source.txt
    
    Git: John Doe <johndoe@example.com>
    161c0bc44517c21d8eb24b720dad71d724b915f9@trunk
    svnCommitMessage example
    -----------------------------------------------------------------
  • gitCommitMessage = PATTERN

    a pattern consisting of placeholders that construct Git commit message when a SVNcommit is being translated to Git. There are several acceptable placeholders:
    • %author    = Git author
    • %committer = Git committer
    • %date      = date of revision
    • %message   = original message
    • %svnUser   = Subversion username
    • %revision    = Subversion revision, GRN in your notation
    • %branch.   = Subversion branch
    • \n                   = newline feed

    For example, if the gitCommitMessage was set like this:


    Code Block
    languagetext
    themeFadeToGrey
    titlegitCommitMessage
    gitCommitMessage = SVN %revision@%branch\\n%message

    Then, some changes have been committed to the SVN repository:


    Code Block
    languagetext
    themeFadeToGrey
    titleSVN revision 197
    -----------------------------------------------------------------
    r197 | johndoe | 2017-06-29 13:38:02 +0500 (Thu, 29 Jun 2017) |
    Changed paths:
       M /project1/trunk/source.txt
    gitCommitMessage example
    -----------------------------------------------------------------

    Translated Git commit will look like this:

    Code Block
    languagetext
    themeFadeToGrey
    titleGit commit
    $ git log -v
    commit d5c7c9e2518a5e8942c26d7cda5ace61ddb7c045
    Author: John Dow <johndoe@example.com>
    Date:   Thu Jun 29 08:38:02 2017 +0000
        SVN 197@trunk
        gitCommitMessage example
  • allowBranchReplacement = [true|false]

  • allowReplacementBranches = PATH

  • allowBranchDeletion = [true|false]

  • allowDeletionBranches = PATH

  • allowForcePush = [true|false]

  • cleanStaleRefLocks = [true|false]

...