[Trac] Trouble setting up CommitTicketUpdater with TracMercurial

2011-06-14 Thread Eric Mann
OK, I've Googled, browsed endless FAQs, and scratched my head to no
end.  Now it's time to ask for help.

We're using Mercurial for source control, Review Board for code
reviews, and Trac for ticketing.  So far, everything's working ...
except for one feature.

When I used Trac with Subversion, I loved the ability to see commit
messages and changeset references in my tickets.  Knowing that a
commit could update and close a ticket made my workflow smoother and
kept all the developers happy.  But I can't seem to do that with
Mercurial.

Yes, Trac can see all of my repositories, and I can browse the code
and revision history just as I'd expect.  But if I commit (and push) a
changeset that references a Ticket ... nothing.

Example:
Rev: @31:80bfbcfe2bbe
Message: Fix a spacing issue - see #4.

In the revision log, #4 links to my ticket as I'd expect, but nothing
shows up in the ticket!

I went through and enabled the CommitTicketUpdater component, but I'm
still not seeing anything.  I've seen other references to post-commit
hooks, but this is where I'm stuck.  Do I put these post-commit hooks
in my local clone of the repository or in the central repository on
the development server?  I can't see how they'd work on the server,
because it's not actually committing anything.  But I can't see how
they'd work locally because I don't have local access to `trac-admin`
on the server.  Do I even need these hooks?  Maybe I've messed
something up somewhere else.

So, what do I need to do such that commits/pushes that reference
tickets are automatically added to the ticket using TracMercurial?

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



[Trac] Re: How Trac integrate with Subversion

2011-06-14 Thread fiona
I install ExampleCsPlugin, when I configure TortoiseSVN, it popup a
message:the issue tracker provider could not be created,please check
that is installed correctly, I installed it in a wrong way? I just
double click the .reg file.
.
On 6月2日, 下午2时51分, "Cooke, Mark"  wrote:
> (scroll down for comments...)
>
>
>
>
>
> > > > > On 5月31日, 下午3时30分, Erik Andersson  wrote:
> > > > > > On Tue, May 31, 2011 at 8:59 AM, fiona
> >  wrote:
> > > > > > > Now we usetracas the bugtracking systems, when I
> > commit some
> > > > > > > modifies, I can't find the ticket in thetrac, I
> > don't know how to
> > > > > > > configure the Subversion, if mytracURL is
> > http:///trac,how to
> > > > > > > configure and where the ticket locates?
>
> > > > > > Hi
>
> > > > > > WhatTracversion?
>
> > > > > > See:
>
> > >http://trac.edgewall.org/wiki/TracFaq#can-trac-automatically-
> > update-a...
>
> > > > > > Cheers / Erik
>
> > > > Hi
>
> > > > Please always reply to list.
>
> > > > 2011/5/31 fiona 
>
> > > > > Version istrac.0.12
>
> > > > did you
> > read:http://trac.edgewall.org/wiki/TracFaq#can-trac-automatica
> > lly-update-a...
>
> >  > update-a...>Cheers
> > > > / Erik
>
> > On 6月1日, 上午10时25分, fiona  wrote:
> > > Hi
> > > I have
> > readhttp://trac.edgewall.org/wiki/TracFaq#can-trac-automatical
> > ly-update-a...
> > > I still can't find the ticket about I commit.anyone can tell me the
> > > workflow betweentracand Subversion, They work not like
> > clearcase and clearquest?
>
> No,Tracand subversion are two Open Souce separate products by different 
> people, not two parts of one commercial product designed to work with each 
> other.  In fact, subversion is mostly ignorant ofTracwhilstTraconly 
> "supports" subversion.
>
> > -Original Message-
> > From:trac-users@googlegroups.com
> > [mailto:trac-users@googlegroups.com] On Behalf Of fiona
> > Sent: 01 June 2011 07:24
> > To:TracUsers
> > Subject: [Trac] Re: HowTracintegrate with Subversion
>
> > I think the workflow as follows:
> > one situation is that ontracyou create a ticket and assign to
> > someone,when the people commit, there will be a list(including the
> > ticket assigned to him),the people can choose the relate item in the
> > list;
> > the other situation is that when someone commit a bug, there should
> > produce a ticket ontrac.
> > now it seems to work not like this, really I have a mistake?
>
> There are however ways to get them to work together.  If you are 
> usingTrac0.12 you can configure the new (optional) CommitTicketUpdater 
> plugin, for previous versions ofTracthere are post-commit scripts.  For more 
> information see 
> theTracFAQ:-http://trac.edgewall.org/wiki/TracFaq#can-trac-automatically-update-a...
>
> If you are using TortoiseSVN on windows, then this can be configured to 
> provide a list of assigned tickets when committing, see the TortoiseSVN 
> help:http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-bugtracke...
>
> I hope that helps...
>
> ~ Mark C- 隐藏被引用文字 -
>
> - 显示引用的文字 -

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



[Trac] Re: How Trac integrate with Subversion

2011-06-14 Thread fiona
I have read 
http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-bugtracke...
,I can't get a list of open issues assigned to me, I must install
issue tracker plugin?how to install? it seems like very complicate. Is
there any simple method?

On 6月2日, 下午2时51分, "Cooke, Mark"  wrote:
> (scroll down for comments...)
>
>
>
>
>
> > > > > On 5月31日, 下午3时30分, Erik Andersson  wrote:
> > > > > > On Tue, May 31, 2011 at 8:59 AM, fiona
> >  wrote:
> > > > > > > Now we usetracas the bugtracking systems, when I
> > commit some
> > > > > > > modifies, I can't find the ticket in thetrac, I
> > don't know how to
> > > > > > > configure the Subversion, if mytracURL is
> > http:///trac,how to
> > > > > > > configure and where the ticket locates?
>
> > > > > > Hi
>
> > > > > > WhatTracversion?
>
> > > > > > See:
>
> > >http://trac.edgewall.org/wiki/TracFaq#can-trac-automatically-
> > update-a...
>
> > > > > > Cheers / Erik
>
> > > > Hi
>
> > > > Please always reply to list.
>
> > > > 2011/5/31 fiona 
>
> > > > > Version istrac.0.12
>
> > > > did you
> > read:http://trac.edgewall.org/wiki/TracFaq#can-trac-automatica
> > lly-update-a...
>
> >  > update-a...>Cheers
> > > > / Erik
>
> > On 6月1日, 上午10时25分, fiona  wrote:
> > > Hi
> > > I have
> > readhttp://trac.edgewall.org/wiki/TracFaq#can-trac-automatical
> > ly-update-a...
> > > I still can't find the ticket about I commit.anyone can tell me the
> > > workflow betweentracand Subversion, They work not like
> > clearcase and clearquest?
>
> No,Tracand subversion are two Open Souce separate products by different 
> people, not two parts of one commercial product designed to work with each 
> other.  In fact, subversion is mostly ignorant ofTracwhilstTraconly 
> "supports" subversion.
>
> > -Original Message-
> > From:trac-users@googlegroups.com
> > [mailto:trac-users@googlegroups.com] On Behalf Of fiona
> > Sent: 01 June 2011 07:24
> > To:TracUsers
> > Subject: [Trac] Re: HowTracintegrate with Subversion
>
> > I think the workflow as follows:
> > one situation is that ontracyou create a ticket and assign to
> > someone,when the people commit, there will be a list(including the
> > ticket assigned to him),the people can choose the relate item in the
> > list;
> > the other situation is that when someone commit a bug, there should
> > produce a ticket ontrac.
> > now it seems to work not like this, really I have a mistake?
>
> There are however ways to get them to work together.  If you are 
> usingTrac0.12 you can configure the new (optional) CommitTicketUpdater 
> plugin, for previous versions ofTracthere are post-commit scripts.  For more 
> information see 
> theTracFAQ:-http://trac.edgewall.org/wiki/TracFaq#can-trac-automatically-update-a...
>
> If you are using TortoiseSVN on windows, then this can be configured to 
> provide a list of assigned tickets when committing, see the TortoiseSVN 
> help:http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-bugtracke...
>
> I hope that helps...
>
> ~ Mark C- 隐藏被引用文字 -
>
> - 显示引用的文字 -

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



[Trac] Problem with custom shapes and DiaVisView plugin

2011-06-14 Thread Chris Nelson
I'm using DiaVisView plugin to include diagrams made with Dia 0.97 into a wiki 
page.  I've done this for years and it works great except... Today I started 
trying to do it with a diagram that includes custom shapes and they don't show 
up.  Any thoughts?  Do I need to put my shapes on the server or something?

-- 
Christopher Nelson, Software Engineering Manager
SIXNET - Solutions for Your Industrial Networking Challenges
331 Ushers Road, Ballston Lake, NY  12019
Tel: +1.518.877.5173, Fax: +1.518.877.8346 www.sixnet.com 

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



[Trac] trac-git plugin

2011-06-14 Thread Jan Čermák
Hi, sorry, but i have problem and 2 day I don't know, how solved it.
Plesase, trac said me:

Unsupported version control system "git": Can't find an appropriate
component, maybe the corresponding plugin was not enabled?

I follow all steps on http://trac-hacks.org/wiki/GitPlugin but is not
worked. Please, help me. My trac.ini


[git]
cached_repository = true
git_bin = /usr/src/git-dev/git
persistent_cache = true
shortrev_len = 6

[trac]
authz_file =
authz_module_name =
auto_reload = False
backup_dir = db
base_url =
check_auth_ip = false
database = sqlite:db/trac.db
debug_sql = False
default_charset = utf-8
htdocs_location =
ignore_auth_case = false
mainnav = wiki,timeline,roadmap,browser,tickets,newticket,search
metanav = login,logout,prefs,help,about
mysqldump_path = mysqldump
never_obfuscate_mailto = false
permission_policies = DefaultPermissionPolicy, LegacyAttachmentPolicy
permission_store = DefaultPermissionStore
pg_dump_path = pg_dump
repository_dir = /mnt/data/git/repositories/multilogin.git
repository_type = git
repository_sync_per_request =
secure_cookies = False
show_email_addresses = false
show_ip_addresses = false
timeout = 20
use_base_url_for_redirect = False


[components]
tracext.git.* = enabled
tracopt.ticket.commit_updater.committicketreferencemacro = enabled
tracopt.ticket.commit_updater.committicketupdater = enabled



Thanks.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



Re: [Trac] max attachment size (not the usual trac.ini fix)

2011-06-14 Thread Matthew Caron

configure him to let this work?  I know mod_python is a dead dodo,
what do the newer versions of TRAC use in it's place?


mod_wsgi

--
Matthew Caron
Build Engineer
Sixnet | www.sixnet.com
O +1 518 877 5173 Ext. 138
F +1 518 602 9209
matt.ca...@sixnet.com

--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



RE: [Trac] Question concerning trac database size

2011-06-14 Thread Chris Nelson
On 2011-06-14 at 10:36:00, Chen wrote:
> Our trac database is growing steadily. Is there a limit for how big it
> can be?
> 
> Thanks in advance.

I would imagine that would depend on what DBMS you are using.  Likely as
the size grows, your performance will get worse and worse so searching
for things will take forever.

We've coming up on 3 years of use and nearly 8k tickets with many, many
attachments and it's slowing down some.  I'd be curious to hear from
other users if they have much bigger installations and how they handle
performance issues.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



[Trac] Question concerning trac database size

2011-06-14 Thread Chen
Our trac database is growing steadily. Is there a limit for how big it
can be?

Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



[Trac] max attachment size (not the usual trac.ini fix)

2011-06-14 Thread Joe
Alright, looking to put tarfiles of our deliveries up on TRAC (~100MB
each).

I have setup the trac.ini file to allow me to put up a maximum of a
500MB file, but when I try to attach a large file I get:

Traceback (most recent call last):
  File "D:\usr\python25\lib\site-packages\trac-0.11.1-py2.5.egg\trac
\web\main.py", line 423, in _dispatch_request
dispatcher.dispatch(req)
  File "D:\usr\python25\lib\site-packages\trac-0.11.1-py2.5.egg\trac
\web\main.py", line 164, in dispatch
if handler.match_request(req):
  File "D:\usr\python25\lib\site-packages\trac-0.11.1-py2.5.egg\trac
\attachment.py", line 354, in match_request
req.args['realm'] = realm
  File "D:\usr\python25\lib\site-packages\trac-0.11.1-py2.5.egg\trac
\web\api.py", line 169, in __getattr__
value = self.callbacks[name](self)
  File "D:\usr\python25\lib\site-packages\trac-0.11.1-py2.5.egg\trac
\web\api.py", line 443, in _parse_args
fs = cgi.FieldStorage(fp, environ=self.environ,
keep_blank_values=True)
  File "D:\usr\python25\Lib\cgi.py", line 534, in __init__
self.read_multi(environ, keep_blank_values, strict_parsing)
  File "D:\usr\python25\Lib\cgi.py", line 657, in read_multi
headers = rfc822.Message(self.fp)
  File "D:\usr\python25\Lib\rfc822.py", line 104, in __init__
self.readheaders()
  File "D:\usr\python25\Lib\rfc822.py", line 151, in readheaders
line = self.fp.readline()
  File "D:\usr\python25\lib\site-packages\trac-0.11.1-py2.5.egg\trac
\web\modpython_frontend.py", line 50, in readline
return self.req.readline(size)
MemoryError

Gah, mod_python is gaking on the large file.  Is there a way to
configure him to let this work?  I know mod_python is a dead dodo,
what do the newer versions of TRAC use in it's place?  Should I bite
the bullet and upgrade and see if it just works with 0.12?

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



Re: [Trac] Query tickets from the command line

2011-06-14 Thread W. Martin Borgert

Quoting "Erik Andersson" :

On Tue, Jun 14, 2011 at 2:20 PM, W. Martin Borgert wrote:

this issue has been discussed some years back:

http://www.mail-archive.com/trac-users@googlegroups.com/msg06606.html


What is your use case? It might help if we understand better what you are
trying to achieve.


Tickets with certain properties (custom flag xxx=1) should
be listed in a documentation (id, summary).


My Trac system (still 0.11, sorry) runs on a dedicated server
with PostgreSQL, so accessing the database directly is not
possible.


Why not? Can you connect with ssh to the server?


Not all Trac users have an account on the server (nor do I want
to have them direct access to the database). The query on the
command line must be limited in the same way it is in Trac.

Cheers

--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



Re: [Trac] Query tickets from the command line

2011-06-14 Thread Erik Andersson
On Tue, Jun 14, 2011 at 2:20 PM, W. Martin Borgert wrote:

> Hi,
>
> this issue has been discussed some years back:
>
> http://www.mail-archive.com/trac-users@googlegroups.com/msg06606.html
>
> What is your use case? It might help if we understand better what you are
trying to achieve.

> My Trac system (still 0.11, sorry) runs on a dedicated server
> with PostgreSQL, so accessing the database directly is not
> possible.
>
Why not? Can you connect with ssh to the server?

Cheers / Erik

>
> The most practical solution seems to be to download the query
> as CSV with the right parameters. Are there any better options?
>
> TIA!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Trac Users" group.
> To post to this group, send email to trac-users@googlegroups.com.
> To unsubscribe from this group, send email to
> trac-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/trac-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



[Trac] Query tickets from the command line

2011-06-14 Thread W. Martin Borgert

Hi,

this issue has been discussed some years back:

http://www.mail-archive.com/trac-users@googlegroups.com/msg06606.html

My Trac system (still 0.11, sorry) runs on a dedicated server
with PostgreSQL, so accessing the database directly is not
possible.

The most practical solution seems to be to download the query
as CSV with the right parameters. Are there any better options?

TIA!

--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.