On 17-9-2012 19:19, Paolo Bolzoni wrote:
I host few small projects on Fossil, and I also use Fossil to distribute
the files.

I openend a branch for an experimental feature I wanted to try.
Now when I click on ``File'' the site does not show the last check-in
of Trunk, but the last check-in of the experimental branch.

Is there a way to set that Files shows the files of the trunk leaf?
So visitors can download the ``stable'' version with ease?

Yes. Under the [Admin] section, edit the 'Header' HTML.
In that HTML, there, you'll find the following code to create the 'Files' menu:

        if {[hascap oh]} {
           menulink "dir" "/dir?ci=tip" Files
        }

If you change "/dir?ci=tip" to "/dir?ci=trunk", clicking the 'Files' button will show all the files of 'trunk':

        if {[hascap oh]} {
           menulink "dir" "/dir?ci=trunk" Files
        }

If you change it to "/dir" (leaving out the 'ci' parameter altogether), you'll get the list of files across all the versions; and clicking on a single file will lead to that file's history, instead of the contents of one specific version. It’s probably not what you want in the case you describe.

HTH,
--
Martijn Coppoolse

_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to