From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24531 invoked from network); 25 Feb 2004 08:13:29 -0000 Received: from unknown (HELO monty-python.gnu.org) (199.232.76.173) by sources.redhat.com with SMTP; 25 Feb 2004 08:13:29 -0000 Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1Avu4V-0007nP-5I for listarch-gnats-devel@sources.redhat.com; Wed, 25 Feb 2004 03:07:11 -0500 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1Avu4P-0007n5-AD for help-gnats@gnu.org; Wed, 25 Feb 2004 03:07:05 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1Avu3t-0007lT-8M for help-gnats@gnu.org; Wed, 25 Feb 2004 03:07:04 -0500 Received: from [207.17.137.64] (helo=colo-dns-ext2.juniper.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.30) id 1Avu1u-0007TW-Ga for help-gnats@gnu.org; Wed, 25 Feb 2004 03:04:30 -0500 Received: from merlot.juniper.net (merlot.juniper.net [172.17.27.10]) by colo-dns-ext2.juniper.net (8.12.3/8.12.3) with ESMTP id i1P84QBm095555; Wed, 25 Feb 2004 00:04:26 -0800 (PST) (envelope-from hatzis@juniper.net) Received: from juniper.net (ssh3.juniper.net [207.17.136.47]) by merlot.juniper.net (8.11.3/8.11.3) with ESMTP id i1P84Qo71790; Wed, 25 Feb 2004 00:04:26 -0800 (PST) (envelope-from hatzis@juniper.net) Message-ID: <403C569E.5070708@juniper.net> Date: Wed, 25 Feb 2004 08:13:00 -0000 From: Mel Hatzis User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Imran Shafqat References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: help-gnats@gnu.org Subject: Re: New PR ID needed after inserting through GNATSD .. X-BeenThere: help-gnats@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: General discussion about GNU GNATS List-Archive: List-Post: List-Help: List-Subscribe: , Sender: help-gnats-bounces+listarch-gnats-devel=sources.redhat.com@gnu.org Errors-To: help-gnats-bounces+listarch-gnats-devel=sources.redhat.com@gnu.org X-SW-Source: 2004-q1/txt/msg00104.txt.bz2 On 02/24/2004 11:01 PM, Imran Shafqat submitted: > Thanks for your reply. > Can you tell how can I use this patch through GNATSD ? You'll need to get the current development version of GNATS from CVS...it contains very few changes from GNATS 4.0 and, IMO, it's just as reliable. Follow the instructions for "Getting a Copy of the CVS Repository" on http://savannah.gnu.org/cvs/?group=gnats if you want to know how this is done. will SUBM command > return new PR number ? Assuming the SUBM command succeeds and creates, say, PR 1969, it would return the following: 351-The added PR number is: 350 1969 As for the GNATS client utilities... - pr-edit will return the new PR number if it is invoked with a (new) --show-prnum option which is relevant if the --submit option is also present - send-pr will always return something like: send-pr: problem report 1969 filed (it now invokes pr-edit with the '--show-prnum' option) -- Mel Hatzis > > Thanks in advance > Regards > > Imran Shafqat > Software Engineer > Xavor Pakistan. > > > -----Original Message----- > From: Mel Hatzis [mailto:hatzis@juniper.net] > Sent: Wednesday, February 25, 2004 12:09 AM > To: Mike Hoolehan > Cc: help-gnats@gnu.org; Imran Shafqat > Subject: Re: New PR ID needed after inserting through GNATSD .. > > Actually, the latest version of the GNATS sources has a patch for > returning the new PR number. This is one of the few changes > made after GNATS 4.0 was released. Here's the ChangeLog entry: > > 2003-08-30 Mel Hatzis , Andrew J. Gray > > > * client.c (get_reply): Check for outfp being NULL. > (netSendPRCmd): Add flag to show information received. All > callers changed. > * cmds.c (GNATS_subm): Send PR number for new submission. > * file-pr.c (submit_pr): Return PR number for new submission. > * pr-edit.c (long_options, handleNetworkEdit, main): Add > show_prnum option. > > If you opt to try this, be aware that it's a change to the GNATS > client/server interface (if you're using GNATS in network mode), > so you'll need to update the GNATS client binaries in addition > to the server. > > -Mel > > On 02/24/2004 08:39 AM, Mike Hoolehan submitted: > >>I maintain a perl module for communication with the gnats daemon. I >>originally intended to do the same thing as you for my "submitPR" > > method > >>(i.e. return the PR Number of the newly created PR) but instead > > decided > >>only to return true/false (depending on success/failure). As far as I >>know, since gnatsd doesn't supply the information on PR creation, the >>only way to reliably get the PR number of a new PR is to query again > > for > >>the exact same criteria. >> >>I left it up to my user to find the PR number of his/her new PR. >> >>Mike >> >> >>On Tue, 2004-02-24 at 13:16, Imran Shafqat wrote: >> >> >>>Dear All, >>> >>>I am writing GNATSD client in C#.Net. I need to push back the new PRID >>>generated by GNATS to the client. I have multiple clients that can >>>simultaneously enter new PRS. Can any one please guide me what is the >>>best way to return / get the PRID from the GNATS after insertion. >>> >>> >>> >>>Thanks in advance. >>> >>> >>> >>>Regards >>> >>>Imran Shafqat >>> >>>Software Engineer >>> >>>Xavor Pakistan >>> >>> >>> >>>______________________________________________________________________ >>>_______________________________________________ >>>Help-gnats mailing list >>>Help-gnats@gnu.org >>>http://mail.gnu.org/mailman/listinfo/help-gnat >> >>s >> >> >> > > ------------------------------------------------------------------------ > >>_______________________________________________ >>Help-gnats mailing list >>Help-gnats@gnu.org >>http://mail.gnu.org/mailman/listinfo/help-gnats > > > _______________________________________________ Help-gnats mailing list Help-gnats@gnu.org http://mail.gnu.org/mailman/listinfo/help-gnats