mirror of
https://gitlab.com/smart-pattern/valentina.git
synced 2024-10-06 07:11:39 +02:00
b029cb8af4
--HG-- branch : develop
24 lines
368 B
Bash
Executable file
24 lines
368 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# Commit hook. Helps update bookmark.
|
|
# Put this file in your path.
|
|
#
|
|
# Edit file .hg/hgrc
|
|
#
|
|
# [hooks]
|
|
# commit = commithook
|
|
|
|
DEVELOP_BRANCH="develop"
|
|
RELEASE_BRANCH="release"
|
|
CURRENT_BRANCH=$(hg branch)
|
|
|
|
if [ $CURRENT_BRANCH = $DEVELOP_BRANCH ];
|
|
then
|
|
hg bookmark -f master;
|
|
fi
|
|
|
|
if [ $CURRENT_BRANCH = $RELEASE_BRANCH ];
|
|
then
|
|
hg bookmark -f release;
|
|
fi
|