Hi Kristis,

We have following naming conventions in Bugzilla (we only use one
Bugzilla database):

Product = <customer name>/<project name>

Example: CustomerA/ProjectX

In the Subversion repo these are used at root level. So the example
above results in the following structure in the Subversion repo:

/CustomerA/ProjectX/trunk
/CustomerA/ProjectX/tags
/CustomerA/ProjectX/branches

In the glue config of the Subversion repo we have following:
        
        valid_product_name => {
            enabled => 1,
            type => 'auto',
            value => '([^/]+/[^/]+?)/'
            },

Meaning the lower two levels of the path including the '/' are used to
identify the product in Bugzilla (where the '/' is also included in the
product name.

Now when I want to add a new project for a new or an existing customer,
I create the necessary folder structure including trunk, tags and
branches folders and import these in the repo root using svn import. The
import then fails in the hook scripts, since no product name can be
found.

If valid_product_name is disabled, then the hook script still looks for
it.

If you have a better way of doing this, please let me know.

Peter

-----Original Message-----
From: Kristis Makris [mailto:[EMAIL PROTECTED] 
Sent: dinsdag 24 april 2007 20:01
To: Hofman, Peter
Cc: [email protected]
Subject: Re: [scmbug-users] Import new folders in root when scmbug
active

Hi Peter,

http://bugzilla.mkgnu.net/show_bug.cgi?id=966

On Tue, 2007-04-24 at 09:47 +0200, Hofman, Peter wrote:
> I installed scmbug (0.19.9-1) and installed the glue for several
repos.
> Scmbug is configured to use auto product recognision with a single 
> regular expression, since we have very strict naming conventions. Also

> most of the policies available in scmbug are enforced.
> The problem I am facing right now is that I cannot add a new project 
> to the repo, since the project (or product) is added in the root of 
> the repo, and therefor scmbug cannot detect a product name.

I could have sworn I tested that, and that adding the new product did
not cause problems if it indeed matched the expected naming convention.
Perhaps you could be more specific about your configuration and what you
tried ?

Have you updated the valid_product_name value (if needed) before adding
the new project ?

> Is there a way to get around this without disabling the hook scripts?
> I already tried stopping the scmbug daemon, but that does not help, 
> since the problem is in the hook scripts.
> Is there some configuration option that I overlooked?


You could disable the valid product name check be setting "enabled => 0"
as shown in:

http://files.mkgnu.net/files/scmbug/SCMBUG_RELEASE_0-19-9/manual/html-si
ngle/manual.html#VERIFICATION-CHECKS-VALID-PRODUCT-NAME

That should let you add your new project in the repository, and you can
later enable it again.





This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.
_______________________________________________
scmbug-users mailing list
[email protected]
http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users

Reply via email to