yatex

view hg2cvsci.sh @ 393:318841b09570

Workaround to avoid cursor warp. When emacs runs with splitting minibuffer window in one frame and having two or more frames displaying same buffer, calling functions for minibuffer-input leads current buffer's point to other position same as point in the same buffer in another frame. To avoid this, wrap functions for minibuffer input with 'save-excursion. This is minimal trial of handling this problem.
author HIROSE Yuuji <yuuji@gentei.org>
date Fri, 16 Jan 2015 08:58:20 +0900
parents 138703ee0700
children
line source
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 #
6 # This script should be called via incoming hook in .hg/hgrc as below.
7 # [hooks]
8 # incoming.cvsci = ./hg2cvsci.sh
10 node=${HG_NODE:-tip}
11 hg=${HG:-hg}
12 msg=`hg log -r $node --template '{desc}\n'`
13 cd `dirname $0`
14 $hg up -r $node
15 cvs ci -m "$msg"