summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--commit.sh16
1 files changed, 14 insertions, 2 deletions
diff --git a/commit.sh b/commit.sh
index 2c5e6fd..f2cf7f3 100644
--- a/commit.sh
+++ b/commit.sh
@@ -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