#632 closed task (fixed)
Simplify configuration options into a single string
Reported by: | Lewis Baker | Owned by: | ttressieres |
---|---|---|---|
Priority: | normal | Component: | PerforcePlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description
It would be nice if the configuration options for the PerforcePlugin could be specified in the <TRAC_ENV>/conf/trac.ini
file's [trac]
section variable repository_dir
which is currently unused.
See also #2987.
One suggested format is:
[trac] repository_type = perforce repository_dir = p4://<user>:<password/ticket>@<host>:<port>
Attachments (1)
Change History (10)
comment:1 Changed 18 years ago by
Owner: | changed from Lewis Baker to ttressieres |
---|
comment:2 Changed 18 years ago by
Status: | new → assigned |
---|
Changed 18 years ago by
Attachment: | perforceplugin-632.patch added |
---|
first draft... to be better tested
comment:3 Changed 18 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
submit changes in [1323]
repository_dir can have two forms:
- p4
- the configuration is read from [perforce] section in trac.ini
- p4://user:ticket@host:port
- the [perforce] section is no more mandatory
Tee only setting necessary in [perforce] section is to specify unicode server, see #634 to remove this option.
comment:4 follow-up: 5 Changed 18 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
I don't think you need to split up the 'host:port'
part of the url as the Connection.port
attribute accepts strings of this format.
The Connection.host
attribute actually refers to the hostname of the Perforce client and so can just be left at its default value.
comment:5 Changed 18 years ago by
Replying to lewisbaker:
I don't think you need to split up the
'host:port'
part of the url as theConnection.port
attribute accepts strings of this format.The
Connection.host
attribute actually refers to the hostname of the Perforce client and so can just be left at its default value.
Hi Lewis, nice to habe some news from you.
I've setup Trac 0.10 with PerforcePlugin for my team last week, it works very well... Thank you for the great job !!!
I've corrected the small problem in [1340]
comment:6 follow-up: 7 Changed 18 years ago by
[1340] looks good.
Was just thinking that you could use the url query string to allow setting additional options and dispense with the [perforce]
section altogether.
eg. 'p4://username:password@perforce:1666?unicode=1'
comment:7 Changed 18 years ago by
Replying to lewisbaker:
[1340] looks good.
Was just thinking that you could use the url query string to allow setting additional options and dispense with the
[perforce]
section altogether.eg.
'p4://username:password@perforce:1666?unicode=1'
Yes, nice idea, i will try to implement it today.
Maybe, we can also integrate solution to #694, with a string like this:
'p4://username:password@perforce:1666//path_to_part_of_depot?unicode=1'
comment:8 Changed 18 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
comment:9 Changed 18 years ago by
is it possible to use a client spec name instead of path_of_depot? The solution to #694 has a client spec, which is much more powerful than a single path.
I have a first draft to resolve this task, maybe i could submit it this week-end.