mirror of
https://gitlab.com/smart-pattern/valentina.git
synced 2024-08-30 13:45:40 +02:00
24 lines
368 B
Plaintext
24 lines
368 B
Plaintext
|
#!/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
|