The “commit” (alias “ci”) command
The command sends changes from your working copy to the repository.
Arguments
path- Working copy path [default:.]
Options
--cl- Operate only on members of selected changelist--merge-template=MERGE-TEMPLATE- Use alternative merge template for this commit--auto-deploy=AUTO-DEPLOY- Automatically perform remote deployment on successful commit, e.g.yesorno
Configuration settings
commit.merge-template- log message template for merge commits (defaults togroup_by_revision)commit.auto-deploy- whether to automatically perform remote deployment on successful commit (used, when--auto-deployoption is not specified)
Examples
svn-buddy.phar commit
The command workflow is following:
abort automatically, when
non-resolved conflicts are present
no paths are changed
open an Interactive Editor for commit message entry
commit message is automatically generated, from:
selected changelist name (when
--cloption was used)merged revision information using selected merge template (when this is a merge commit)
list of conflicted paths (if conflicts were present, but later were resolved)
once user is done changing commit message a confirmation dialog is shown to ensure user really wants to perform commit
when user agreed previously the commit is made
The auto-generated commit message looks like this (with group_by_revision merge template):
Changelist Name
Merging from Trunk to Stable
* r22758: message line 1
message line 2
message line 3
message line 4
* r22796: message line 1
message line 2
message line 3
Conflicts:
* path/to/conflicted-file
Description:
Trunkis folder name of merge source urlStableis folder name of merge target (working copy)22758and22796are merged revisionsmessage line ...are lines from commit message of merged revisions
svn-buddy.phar commit --cl
Same as above, but will also:
ask user to select changelist
put changelist name in commit message
svn-buddy.phar commit --merge-template summary
Same as above, but will use summary merge template instead of merge template configured for this working copy.
svn-buddy.phar commit --auto-deploy yes
Perform a remote deployment after commit was performed or there is nothing to commit.