[cvsnt] shadow not executing after tagging, and bug in Plugins.example
Rick Genter
rgenter at silverlink.com
Thu Oct 27 22:12:47 BST 2005
Is g_command a std::string? If it's a char*, the code won't work - you
can't compare char* strings with != - you have to use strcmp().
--
Rick Genter
Principal Engineer
Silverlink Communications
<mailto:rgenter at silverlink.com>
(781) 272-3080 x242
This e-mail, including attachments, may include confidential and/or
proprietary information, and may only be used by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this e-mail is
prohibited. If you have received this e-mail in error, please notify
the sender by replying to this message and delete this e-mail
immediately.
-----Original Message-----
From: cvsnt-bounces at cvsnt.org [mailto:cvsnt-bounces at cvsnt.org] On Behalf
Of Steve Hobbs
Sent: Thursday, October 27, 2005 5:01 PM
To: cvsnt at cvsnt.org
Subject: [cvsnt] shadow not executing after tagging,and bug in
Plugins.example
OK. So after much more reading I've almost got CVSROOT shadow to work.
My line in shadow now reads:
^tools_tree Stable /projects/src/cvshome/cvscommon/tools_tree
(I had missed the hat ^ out)
I'm running on RHELV4.0 and using cvsnt-2.5.03.2132 both server and
client
in pserver mode.
Now the shadow file works when I commit something, but when I actually
move
the Stable tag on the file, the shadow line doesn't execute.
The code in checkout_trigger.cpp looks like it supports it.
if(g_command!="tag" && g_command!="rtag" && g_command!="commit")
return 0;
Any suggestions?
There is also a bug in the Plugins.example. It reads:
#CommitTrigger=0 # Enable CVSROOT/shadow
When I believe it should be:
#CheckoutTrigger=0 # Enable CVSROOT/shadow
As is suggested in checkout_trigger.cpp by:
if(!CGlobalSettings::GetGlobalValue("cvsnt","Plugins","CheckoutTrigger",
valu
e,sizeof(value)))
Regards,
Steve
_______________________________________________
cvsnt mailing list
cvsnt at cvsnt.org
http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt
More information about the cvsnt
mailing list