Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: get the list of checked in files in a particular bugId

11 views
Skip to first unread message

Kapila Kohli

unread,
May 1, 2009, 1:39:47 AM5/1/09
to support-...@lists.mozilla.org
Hi,

I need to find out the list of files checked in for a particular bugId for
CVS env.
Should be able to execute on windows & linux both, any one have idea about
this?
i.e a kinda a script in which we give argument as bugID & it generate all
the checked in files?

My bugzilla version is 3.0. Any help is appreciated.

Regards
Kapila
On Fri, May 1, 2009 at 12:30 AM, <support-bugz...@lists.mozilla.org
> wrote:

> Send support-bugzilla mailing list submissions to
> support-...@lists.mozilla.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.mozilla.org/listinfo/support-bugzilla
> or, via email, send a message with subject or body 'help' to
> support-bugz...@lists.mozilla.org
>
> You can reach the person managing the list at
> support-bug...@lists.mozilla.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of support-bugzilla digest..."
>
>
> Today's Topics:
>
> 1. Bugzilla integrate with IIS (Sudhir G S)
> 2. XML-RPC and JAVA (Martin Langeder)
> 3. Re: Bugzilla 3.2.3/GMAIL/SMTP (sasha)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 30 Apr 2009 15:07:30 +0530
> From: "Sudhir G S" <sudhir.guru...@valuemomentum.biz>
> To: <support-...@lists.mozilla.org>
> Subject: Bugzilla integrate with IIS
> Message-ID:
> <000001c9c977$4822ef30$d868cd90$@gurubha...@valuemomentum.biz>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi,
>
>
>
> I have installed PERL and I have integrated with IIS and it is able to
> integrated but when I run the runtests.pl command from the Bugzilla prompt
> I
> am getting PERL510.dll.So kindly tell me how will I resolve the problem.
> Kindly let me know how will I integrate(the procedure) Bugzilla with
> IIS.Thanks in Advance.
>
>
>
> Regards,
>
> Sudhir
>
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 30 Apr 2009 12:36:43 +0200
> From: "Martin Langeder" <martinl...@gmail.com>
> To: <support-...@lists.mozilla.org>
> Subject: XML-RPC and JAVA
> Message-ID: <B074D4B010304BD78ABBEB610BB7BCE1@pepiPc>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hallo
>
> I'm trying to make a JAVA program for University that gets bug information
> from an existing bugzilla Database. But if I try to invoke the rpc massages
> I always get an ClassCastException.
> Hopefully someone can help me out.
>
> Here is the code:
>
>
> import java.net.MalformedURLException;
> import java.net.URL;
> import org.apache.xmlrpc.XmlRpcException;
> import org.apache.xmlrpc.client.*;
> import java.util.*;
>
> public class BugZillaConnection {
>
> public static void main(String[] args) throws MalformedURLException {
>
> URL url = new URL ("
> https://landfill.bugzilla.org/bugzilla-3.2-branch/xmlrpc.cgi");
>
>
> try{
> XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
> config.setServerURL(url);
>
> XmlRpcClient client = new XmlRpcClient();
> client.setConfig(config);
>
> String[] param = new String[] {"Product", "Printers"};
>
> HashMap result =
> (HashMap)client.execute("Bugzilla.WebService.Bug.search", param);
>
>
> }catch (Exception e) {
> e.printStackTrace();
> }
>
> }
>
> }
>
> and the StackTrace from the Exception(s)
>
> java.lang.ClassCastException: java.lang.String cannot be cast to
> java.lang.Integer
> at
> org.apache.xmlrpc.parser.XmlRpcResponseParser.addResult(XmlRpcResponseParser.java:61)
> at
> org.apache.xmlrpc.parser.RecursiveTypeParserImpl.endValueTag(RecursiveTypeParserImpl.java:78)
> at
> org.apache.xmlrpc.parser.XmlRpcResponseParser.endElement(XmlRpcResponseParser.java:186)
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
> Source)
> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
> Source)
> at
> org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:186)
> at
> org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:156)
> at
> org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:115)
> at
> org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
> at
> org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
> at connection.BugZillaConnection.main(BugZillaConnection.java:25)
>
>
> ------------------------------
>
> Message: 3
> Date: Thu, 30 Apr 2009 11:36:14 -0700 (PDT)
> From: sasha <acherny...@gmail.com>
> To: support-...@lists.mozilla.org
> Subject: Re: Bugzilla 3.2.3/GMAIL/SMTP
> Message-ID:
> <e80fd619-b08a-4069...@w31g2000prd.googlegroups.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On Apr 30, 1:41?am, "skochka...@gmail.com" <skochka...@gmail.com>
> wrote:
> > I used perl package Email-Send-Gmail. It required almost no changes in
> > bugzilla code.
>
> Could you please post your exact steps?
> I am trying to install 3.2.3 with perl 5.10 on windows server 2003.
>
> Thank you.
>
>
> ------------------------------
>
> _______________________________________________
> support-bugzilla mailing list
> support-...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/support-bugzilla
>
>
> End of support-bugzilla Digest, Vol 40, Issue 51
> ************************************************
>

Thorsten Schöning

unread,
May 1, 2009, 7:39:25 AM5/1/09
to support-...@lists.mozilla.org
Guten Tag Kapila Kohli,
am Freitag, 1. Mai 2009 um 07:39 schrieben Sie:

> I need to find out the list of files checked in for a particular bugId for
> CVS env.
> Should be able to execute on windows & linux both, any one have idea about
> this?
> i.e a kinda a script in which we give argument as bugID & it generate all
> the checked in files?

I'm not sure I understand what exactly you want to do. What do you
mean with checked in files in CVS environment? Do you look for an
integration of CVS commit messages with Bugzilla bugs? Do you mean
attachments to a specific bug?

Integration of Bugzilla and CVS is achievable in many ways, one is
SCMBug. In most cases the files in a commit and the message of the
commit is just appended as a special formatted commit to a Bugzilla
bug. If you want to get the list of files after committing, what to do
highly depends on your integration mechanism and is not that easy.

http://www.mkgnu.net/

Mit freundlichen Grüßen,

Thorsten Schöning

--
Thorsten Schöning
AM-SoFT IT-Systeme - Hameln | Potsdam | Leipzig

Telefon: Potsdam: 0331-743881-0
E-Mail: tscho...@am-soft.de
Web: http://www.am-soft.de

AM-SoFT GmbH IT-Systeme, Konsumhof 1-5, 14482 Potsdam
Amtsgericht Potsdam HRB 21278 P, Geschäftsführer: Andreas Muchow

kapila...@gmail.com

unread,
May 5, 2009, 12:56:51 AM5/5/09
to
> E-Mail:  tschoen...@am-soft.de

> Web:    http://www.am-soft.de
>
> AM-SoFT GmbH IT-Systeme, Konsumhof 1-5, 14482 Potsdam
> Amtsgericht Potsdam HRB 21278 P, Geschäftsführer: Andreas Muchow

Hi Thorsten,
Thanks once again for reply. My ques is not about integration, but
ways to find out CVS checked in files wrt a bugid in bugzilla.
I have a written a one liner -
mysql user -ppassword -e "SELECT thetext FROM longdescs where
bug_id=14403;"|awk -F"IN:" '{print $2}'|sed 's/[^ ]* //'|sed 's/[$ ]
* //'|sed -e 's/\\n//g'

thsi gives list of files like-

TESTKK/testing-file.txt\t1.16 1.17
TESTKK/testing-file.txt\t1.17 1.18
TESTKK/testing-file.txt\t1.51 1.52
TESTKK/testing-file.txt\t1.52 1.53
TESTKK/testing-file.txt\t1.53 NONE
TESTKK/testing-file.txt\t1.53 NONE
TESTKK/testing-file.txt\t1.53 1.54
TESTKK/testing-file.txt\t1.54 NONE


But this is applicable only if i give a username & paswwrd. + not god
format for printing.
Can you suggest any thing in this?

Thorsten Schöning

unread,
May 5, 2009, 2:18:49 AM5/5/09
to support-...@lists.mozilla.org
Guten Tag kapila...@gmail.com,
am Dienstag, 5. Mai 2009 um 06:56 schrieben Sie:

> TESTKK/testing-file.txt\t1.16 1.17
> TESTKK/testing-file.txt\t1.17 1.18
> TESTKK/testing-file.txt\t1.51 1.52
> TESTKK/testing-file.txt\t1.52 1.53
> TESTKK/testing-file.txt\t1.53 NONE
> TESTKK/testing-file.txt\t1.53 NONE
> TESTKK/testing-file.txt\t1.53 1.54
> TESTKK/testing-file.txt\t1.54 NONE

> But this is applicable only if i give a username & paswwrd. + not god
> format for printing.
> Can you suggest any thing in this?

Seems you already have a working integration, right? Maybe you should
describe what you are really trying to achieve and someone has a idea
to implement it a proper way. SCMBug for example has something called
VDD generator and some web reporting tools, first one is capable of
mapping changes in CVS to bugs and provide xml with those changes. I
didn't use it yet but maybe you should have a look. Else I am not
aware of something that specific as you need it.

http://files.mkgnu.net/files/scmbug/SCMBUG_RELEASE_0-26-13/manual/html-multi/x1019.html

Possible ways to get what you want could be to use Bugzilla's search,
create some specified saved searches and create some custom templates
which are used with those specific saved searches. But those ideas
depend on what you really whant to do, where you need your list of
changed files whith what information for what purpose. Building
something upon Bugzilla could save you a lot or work since it already
has a template system and everything else to get the information you
need from the database.

Mit freundlichen Grüßen,

Thorsten Schöning

--
Thorsten Schöning
AM-SoFT IT-Systeme - Hameln | Potsdam | Leipzig

Telefon: Potsdam: 0331-743881-0

E-Mail: tscho...@am-soft.de

0 new messages