Mercurial > hgrepos > hgweb.cgi > yatex
annotate hg2cvsci.sh @ 539:7828dfd07246 dev
Typo
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Thu, 31 May 2018 09:34:29 +0900 |
parents | 4f0cb7114235 |
children |
rev | line source |
---|---|
111 | 1 #!/bin/sh |
2 # This script does not support automatic "cvs add". | |
3 # If new file is added by "hg add", don't forget to "cvs add" in | |
4 # CVS working dir. | |
5 # | |
112 | 6 # This script should be called via incoming hook in .hg/hgrc as below. |
7 # [hooks] | |
8 # incoming.cvsci = ./hg2cvsci.sh | |
111 | 9 |
10 node=${HG_NODE:-tip} | |
113
4f0cb7114235
Define $hg in case called from command line.
yuuji@gentei.org
parents:
112
diff
changeset
|
11 hg=${HG:-hg} |
111 | 12 msg=`hg log -r $node --template '{desc}\n'` |
13 cd `dirname $0` | |
113
4f0cb7114235
Define $hg in case called from command line.
yuuji@gentei.org
parents:
112
diff
changeset
|
14 $hg up -r $node |
111 | 15 cvs ci -m "$msg" |