diff options
-rw-r--r-- | commit.sh | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -79,7 +79,13 @@ function systr_commit fi commit=$(systr_repo_create_commit) - systr_record_commit_mesg "$commit" "$branch" + + if [[ "$MERG" == "NULL" ]]; then + systr_record_commit_mesg "$commit" "$branch" + else + systr_record_commit_mesg "$commit" "$branch" "Merge $MERG into $TRAC" + fi + echo "Sending files..." if [[ "$branchcommit" != "NULL" ]]; then @@ -88,7 +94,13 @@ function systr_commit systr_rsync_normal . "$path/revs/$commit/" fi - systr_repo_finish_commit "$commit" "$branchcommit" + if [[ "$MERG" == "NULL" ]]; then + systr_repo_finish_commit "$commit" "$branchcommit" + else + mergecommit=$(systr_repo_resolve_reference "$MERG") + systr_repo_finish_commit "$commit" "$branchcommit" "$mergecommit" + fi + echo "$commit" >.systr/BASE echo "NULL" >.systr/MERG date >.systr/updated |