[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RCS Keyword Expansion: display the symbolic branchname?
From: |
Stefan Kuttler |
Subject: |
RCS Keyword Expansion: display the symbolic branchname? |
Date: |
Wed, 12 Apr 2006 17:28:48 +0200 |
Hello List :-)
As a lazy bone I want to display the symbolic branchname, instead of the
numeric one
in RCS Keyword Expansion, that is, in a file, having
$Id: kunst,v 1.2.3.12 kunst_branch 2003/05/15 15:22:21 sk Exp $
instead of
$Id: kunst,v 1.2.3.12 2003/05/15 15:22:21 sk Exp $
I tried patching logmsg.c,by adding tagname to update_logfile_proc,
but somewhat f. up the pointer.
Maybe there is *already* a flag for doing so, without patching?
Following a quick log.
digitales.notizbuch.sk [/tmp] sk
% cvs st kunst.sh
cvs status: /usr/cvs/CVSROOT/config: unrecognized keyword 'UseNewInfoFmtStrings'
===================================================================
File: kunst.sh Status: Locally Modified
Working revision: 1.4.2.6 Mon Apr 10 23:23:42 2006
Repository revision: 1.4.2.6 /usr/cvs/adm/kunst.sh,v
Sticky Tag: kunst (branch: 1.4.2)
Sticky Date: (none)
Sticky Options: (none)
digitales.notizbuch.sk [/tmp] sk
% cvs diff -Naub kunst.sh
cvs diff: /usr/cvs/CVSROOT/config: unrecognized keyword 'UseNewInfoFmtStrings'
Index: kunst.sh
===================================================================
RCS file: /usr/cvs/adm/kunst.sh,v
retrieving revision 1.4.2.6
diff -a -u -b -a -u -b -r1.4.2.6 kunst.sh
--- kunst.sh 10 Apr 2006 23:23:42 -0000 1.4.2.6
+++ kunst.sh 10 Apr 2006 23:26:49 -0000
@@ -1,7 +1,5 @@
#!/bin/bash
#$Id: kunst.sh,v 1.4.2.6 2006/04/10 23:23:42 sk Exp $
-
if
+
else
digitales.notizbuch.sk [/tmp] sk
% /tmp/cvs-1.12.13/cvs ci -m 'move space' kunst.s
/usr/cvs/adm/kunst.sh,v <-- kunst.sh
new revision: 1.4.2.7; previous revision: 1.4.2.6
cvs commit: logmsg proc resolved to the empty string!
Segmentation fault: 11 (core dumped)
digitales.notizbuch.sk [/tmp] sk
% /tmp/cvs-1.12.13/src/cvs -t ci -m 'move space' kunst.sh
-> main: Session ID is hqr1Q7M8IOsfXFsr
-> main loop with CVSROOT=/usr/cvs
-> parse_config (/usr/cvs)
-> lock_tree_promotably (1, argv, 0, 1, 0)
-> set_promotable_lock(/usr/cvs/adm)
-> rename(CVS/Entries.Backup,CVS/Entries)
-> unlink_file(CVS/Entries.Log)
-> RCS_cmp_file( /usr/cvs/adm/kunst.sh,v, 1.4.2.7, (null), , kunst.sh )
-> RCS_checkout (/usr/cvs/adm/kunst.sh,v, 1.4.2.7, , , (function))
-> Parse_Info (/usr/cvs/CVSROOT/commitinfo, adm, ALL)
-> Parse_Info (/usr/cvs/CVSROOT/verifymsg, adm, not ALL)
/usr/cvs/adm/kunst.sh,v <-- kunst.sh
-> RCS_checkout (/usr/cvs/adm/kunst.sh,v, 1.4.2.7, , -ko, /tmp/cvsfwDQpZ)
-> diff_exec (/tmp/cvsfwDQpZ, kunst.sh, (null), (null), /tmp/cvsKAklQd)
new revision: 1.4.2.8; previous revision: 1.4.2.7
-> rename(/usr/cvs/adm/,kunst.sh,,/usr/cvs/adm/kunst.sh,v)
-> unlink_file(/tmp/cvsfwDQpZ)
-> unlink_file(/tmp/cvsKAklQd)
-> RCS_cmp_file( /usr/cvs/adm/kunst.sh,v, 1.4.2, (null), , kunst.sh )
-> RCS_checkout (/usr/cvs/adm/kunst.sh,v, 1.4.2, , , (function))
-> RCS_checkout (/usr/cvs/adm/kunst.sh,v, 1.4.2, , , kunst.sh)
-> chmod(kunst.sh,100755)
-> Register(kunst.sh, 1.4.2.8, Mon Apr 10 23:28:27 2006, , kunst )
-> open (`/usr/cvs/CVSROOT/history', a)
-> rename(/usr/cvs/adm/,kunst.sh,,/usr/cvs/adm/kunst.sh,v)
-> unlink_file(CVS/Base/kunst.sh)
-> modify_watchers ( kunst.sh )
-> Simple_Lock_Cleanup()
-> Parse_Info (/usr/cvs/CVSROOT/loginfo, adm, ALL)
-> update_logfile_proc(/usr/cvs/adm,)
cvs commit: logms proc resolved to the empty string!
-> update_logfile_proc(/usr/cvs/adm,)
Segmentation fault: 11 (core dumped)
CVSROOT/loginfo
#
# s = file name
# V = old version number (pre-checkin)
# v = new version number (post-checkin)
#x
# For example:
#DEFAULT (echo ""; id; echo %s; date; cat) >> $CVSROOT/CVSROOT/commitlog
# or
DEFAULT (echo ""; id; echo %1{tTsVv}; date; cat) >> $CVSROOT/CVSROOT/commitlog
ALL (echo "on `hostname`:"; id -un; echo %1{tTsVv}; date; cat)|logger -p err
#DEFAULT (echo ""; id; echo %{sVv}; date; cat) >> $CVSROOT/CVSROOT/commitlog &&
#(echo ""; id; echo %{sVv}; date; cat) |logger -p err
% make -DDEBUG
digitales.notizbuch.sk [/tmp/cvs-1.12.13/src] sk
% touch logmsg.c
digitales.notizbuch.sk [/tmp/cvs-1.12.13/src] sk
% make -DDEBUG
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../lib -I../diff -I../zlib -In
o/include -g -O2 -MT logmsg.o -MD -MP -MF ".deps/logmsg.Tpo" -c -o logmsg.o log
msg.c; then mv -f ".deps/logmsg.Tpo" ".deps/logmsg.Po"; else rm -f ".deps/logms
g.Tpo"; exit 1; fi
logmsg.c: In function `Update_Logfile':
logmsg.c:584: warning: passing arg 3 of `Parse_Info' from incompatible pointer t
ype
gcc -g -O2 -Lno/lib -o cvs add.o admin.o annotate.o buffer.o checkin.o check
out.o classify.o client.o commit.o create_adm.o cvsrc.o diff.o edit.o entries
.o error.o exithandle.o expand_path.o fileattr.o filesubr.o find_names.o hardl
ink.o hash.o history.o ignore.o import.o lock.o log.o log-buffer.o login.o lo
gmsg.o ls.o main.o mkmodules.o modules.o ms-buffer.o myndbm.o no_diff.o parse
info.o patch.o rcs.o rcscmds.o recurse.o release.o remove.o repos.o root.o rs
h-client.o run.o scramble.o server.o stack.o status.o subr.o tag.o update.o v
ersion.o vers_ts.o watch.o wrapper.o zlib.o gssapi-client.o ../diff/libdiff.a
../lib/libcvs.a ../zlib/libz.a -lcrypt -lgssapi -lkrb5 -lroken -lcrypt -
lcrypto -lasn1 -lcom_err
--
Gruss
Stefan Kuttler (B.O.F.H.) .ooO=Ooo. https://www.netbeisser.de
GPG Fingerprint: E7AC 1E9B 87D8 5BD2 E2F2 6F4A 3177 ED68 8185 480C
- RCS Keyword Expansion: display the symbolic branchname?,
Stefan Kuttler <=