On Tuesday, May 10, 2016 at 6:59:35 AM UTC-7, Cooke, Mark wrote:
>
> Folks, 
>
> I have one svn repository that is used by two Trac environments (the 
> second created after a major re-write).  Unfortunately there is some 
> duplication of ticket numbers and I want to make sure that the commit 
> message gets to the correct ticket. 
>
> I found this thread:- 
>
> https://groups.google.com/forum/#!topic/trac-users/JmePlTBHklM 
>
> ...but it is not clear to me how to solve my problem. 
>
> A solution that occurs to me is to use different 'envelope' characters for 
> each Trac (e.g. "[]" or "<>") so that only one of the two tracs picks up 
> the message, then set my post-commit hook to call both: 
>
> @start C:\Python26\Scripts\trac-admin.exe D:\trac\env1 changeset added 
> "%1" "%2" 
> @start C:\Python26\Scripts\trac-admin.exe D:\trac\env2 changeset added 
> "%1" "%2" 
>
> (note I am on windoze here!) 
>
> Can anyone suggest a better solution? 
>
> Many thanks, 
>
> ~ Mark C 
>

Using an envelope is an interesting idea. Thinking similarly, you could 
define  commit_ticket_update_commands.close 
and commit_ticket_update_commands.refs uniquely for each environment. For 
example, instead of the token "refs", you could define the token 
"refs:proj1" or "proj1:refs".

There is also:
https://trac-hacks.org/wiki/MultiProjectCommitTicketUpdaterPlugin

Another possibility is to set the starting ticket number for one of the 
environments to a large-enough value that the sequences will never overlap.

I'll be interested to hear what solution you end up going with. I could see 
Trac doing something as an incremental step towards a multiproject 
environment.

- Ryan

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to