On 2/17/2010 11:22 PM, Armin Ronacher wrote:
Hi,

I have to admit, I run a heavily outdated version of trac and the
mercurial plugin for the pocoo tracs,

Bad boy! I still remember the not so distant past when the Pocoo Trac sites were my favorite showcases for Trac-0.11dev :-)

  but it appears that the
implementation is the same on the latest version of the plugin.
Basically if multiple branches are used per repository, the tip
switches between multiple branches and the file browser does this as
well. So from one checking to the other, the tip moves from default to
stable or something, and so does the browser's default view.

Would it be possible to have a configuration setting to set a branch
as default and let the browser display the most recent changeset from
that branch by default instead? Eg, tell the browser to show the most
recent changeset of the "trunk" or "default" branch instead of the
tip?

Certainly. This fits well with one of the last change to the versioncontrol API that I want to do before the freeze, namely a "get_branches" method that would return the (name,rev) pairs for the named branches and their youngest revisions (see also #8843). Work in progress...

The default_branch information will be one of the repository properties, so you could set it up in the [repositories] section in the trac.ini (<repos>.default_branch = ...), or in the database via trac-admin repository set <repos> default_branch <branch>, depending where the repository itself is defined.

-- Christian

--
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en.

Reply via email to