UPDATING(3pm)
π¦ UPDATING π¦
ok so. You found UPDATING β that's the page title, and it lives in the User Contributed Perl Documentation, section 3pm. It's the whole lore on how to level up your SVN::Web install from an older version without nuking your setup. Sit down, hydrate, we're going through every single release note. We are NOT skipping the boring ones. There are no boring ones. π
π NAME π
UPDATING β¨
That's her. That's the name. Iconic, minimal, no notes.
π¦ SYNOPSIS π¦
It's literally notes on updating from previous versions of SVN::Web. That's the whole vibe check. π«Ά
β οΈ WARNING β οΈ
bestie. LISTEN. This is out of date for 0.60. π
I'm still giving you every single word of it exactly as written, because that's the assignment and the history is genuinely useful, but pls don't act brand new about it β this page is describing the before-times.
π DESCRIPTION π
So here's the dream scenario: you have not modified the supplied template files. Queen behaviour. In that case the update is genuinely just:
- Backing up your existing
config.yamlfile. Do NOT skip this. This is your whole personality in one file. π₯Ί - Removing all the files in your current
svnwebdirectory. All of them. Gone. That's the point. - Running
svnweb-installfrom this distribution. This will copy the new templates, as well as creating a newconfig.yaml. - Restoring the
config.yamlthat you backed up in step 1, and making any changes, as described below.
If you have made local modifications, then the following information should help you merge the changes in this version in to your modified files. Buckle up, we're going version by version. π
π 0.52 to 0.53 π
- Update the
versionkey in your configuration file to0.53. - Subversion paths are now escaped by SVN::Web before being passed to the templates, which means every template that contains a path has changed. In general, this means that where previously you would write:
[% path | uri | html %]
in a template, now you can just write:
[% path %]
If you do not re-run svnweb-install when you upgrade to this version you must update the templates by hand. No shortcuts, bestie. π
πΈ 0.51 to 0.52 πΈ
- Update the
versionkey in your configuration file to0.52.
π§ 0.50 to 0.51 π§
- Update the
versionkey in your configuration file to0.51.
β¨ 0.49 to 0.50 β¨
- The configuration file must now contain a
versionkey, the value of which must match the SVN::Web version. If it is not present, or does not match, SVN::Web willdie(), and generate an appropriate error in the logs. π
Add this line:
version: 0.50
to config.yaml, after making sure that you have updated the configuration file to contain all the necessary new directives.
- There are many new configuration options for actions. Either run
svnweb-install, as advised above, or view the documentation for each action, which has been updated to show the new entries that should be placed inconfig.yamlfor the action.
This change has also affected all the action templates save for list and rss. There is a new Template/trac/_action_menu template. New template just dropped. π
SVN::Web::Blamehas been added, with an associatedTemplate/trac/blametemplate.- Diff generation has changed, resulting in changes to
Template/trac/diffandTemplate/trac/revision. There is a newTemplate/trac/_difftemplate. - The
Template/trac/logtemplate has changed to support paging through results and changing how many results are displayed per page. - The
Template/trac/rsstemplate has changed to wrap the contents of the<description>element in a CDATA marker. - The
I18N/en.polocalisation file contains several new and updated entries.
π¦ 0.48 to 0.49 π¦
Template/trac/header,Template/trac/browse,Template/trac/log,Template/trav/view, andStyle/trac/browser.csshave been updated for HTML compliance.Template/trac/diffno longer uses the CGI module to retrieve the current URL.
π 0.47 to 0.48 π
I18N/fr.pohas a small update. The diff is athttp://jc.ngo.org.uk/svnweb/jc/diff/nik/CPAN/SVN-Web/trunk/lib/SVN/Web/I18N/fr.po?rev1=958;rev2=959.I18N/en.pohas a small update. The diff is athttp://jc.ngo.org.uk/svnweb/jc/diff/nik/CPAN/SVN-Web/trunk/lib/SVN/Web/I18N/en.po?rev1=972;rev2=973.I18N/zh_cn.pohas a small update. The diff is athttp://jc.ngo.org.uk/svnweb/jc/diff/nik/CPAN/SVN-Web/trunk/lib/SVN/Web/I18N/zh_cn.po?rev1=898;rev2=899.- There have been several changes to the templates to support new RSS feeds and the new timedate formatting options.
The diffs are:
trac/browseβhttp://jc.ngo.org.uk/svnweb/jc/diff/nik/CPAN/SVN-Web/trunk/lib/SVN/Web/Template/trac/browse?revs=977&revs=881trac/diffβhttp://jc.ngo.org.uk/svnweb/jc/diff/nik/CPAN/SVN-Web/trunk/lib/SVN/Web/Template/trac/diff?rev1=894;rev2=895trac/headerβhttp://jc.ngo.org.uk/svnweb/jc/diff/nik/CPAN/SVN-Web/trunk/lib/SVN/Web/Template/trac/header?revs=977&revs=959trac/listβhttp://jc.ngo.org.uk/svnweb/jc/diff/nik/CPAN/SVN-Web/trunk/lib/SVN/Web/Template/trac/list?rev1=894;rev2=895trac/logβhttp://jc.ngo.org.uk/svnweb/jc/diff/nik/CPAN/SVN-Web/trunk/lib/SVN/Web/Template/trac/log?revs=975&revs=891trac/revisionβhttp://jc.ngo.org.uk/svnweb/jc/diff/nik/CPAN/SVN-Web/trunk/lib/SVN/Web/Template/trac/revision?revs=895&revs=890trac/viewβhttp://jc.ngo.org.uk/svnweb/jc/diff/nik/CPAN/SVN-Web/trunk/lib/SVN/Web/Template/trac/view?revs=977&revs=891trac/xβhttp://jc.ngo.org.uk/svnweb/jc/diff/nik/CPAN/SVN-Web/trunk/lib/SVN/Web/Template/trac/x?rev1=894;rev2=895
In addition, there is a new trac/rss template, and a new Style/trac/feed-icon-16x16.png, both of which must be copied in to place.
Style/trac/browser.csscontains changes to support the new language selection box. The diff is athttp://jc.ngo.org.uk/svnweb/jc/diff/nik/CPAN/SVN-Web/trunk/lib/SVN/Web/Style/trac/browser.css?rev1=958;rev2=959.
π 0.46 to 0.47 π
I18N/en.pocontains changes relating to caching and bug fixes. The diffs for these changes are athttp://jc.ngo.org.uk/svnweb/jc/diff/nik/CPAN/SVN-Web/trunk/lib/SVN/Web/I18N/en.po?rev1=863;rev2=864andhttp://jc.ngo.org.uk/svnweb/jc/diff/nik/CPAN/SVN-Web/trunk/lib/SVN/Web/I18N/en.po?rev1=879;rev2=880.- All of the
trac/templates have been updated to URI escape paths and filenames in appropriate places. The revisions showing these changes arehttp://jc.ngo.org.uk/svnweb/jc/revision/?rev=879andhttp://jc.ngo.org.uk/svnweb/jc/revision/?rev=881. trac/headerandtrac/loghave been updated to use theat_headvariable. The revision with the change ishttp://jc.ngo.org.uk/svnweb/jc/revision/?rev=871.
π 0.45 to 0.46 π
This was a bug fix release, with no changes to the templates, localisation, or configuration files. A rare quiet era. Enjoy it. π
πΊ 0.44 to 0.45 πΊ
This was a bug fix release, with no changes to the templates, localisation, or configuration files. Again. Peaceful. β¨
π 0.43 to 0.44 π
If you have not modified the supplied templates and localisation files, the update can be carried out by:
- Backing up your existing
config.yamlfile. - Removing all the files in your current
svnwebdirectory. - Running
svnweb-installfrom this distribution. This will copy the new templates and localisation files, as well as creating a newconfig.yaml. - Restoring the
config.yamlthat you backed up in step 1.
If you have made local modifications then the following information should help you merge the changes in this version in to your modified files.
- The
trac/logtemplate has been changed to remove some output from comments. Although this output was never seen, generating it used CPU and memory. This was especially apparent on changes that affected many files. Using the newtrac/logtemplate (or merging the change in by hand) will speed up log browsing. β‘
The diff for these changes is at http://jc.ngo.org.uk/svnweb/jc/revision/?rev=793.
I18N/en.pohas been updated with a new error message when an invalid revision number is specified.
The diff for these changes is at http://jc.ngo.org.uk/svnweb/jc/diff/nik/CPAN/SVN-Web/trunk/lib/SVN/Web/I18N/en.po?revs=794&revs=788.
I18N/en.poandtrac/browsehave been updated to show a file's age, relative to the last commit that affected it.
The diffs for these changes are at http://jc.ngo.org.uk/svnweb/jc/diff/nik/CPAN/SVN-Web/trunk/lib/SVN/Web/I18N/en.po?revs=788&revs=719 and http://jc.ngo.org.uk/svnweb/jc/diff/nik/CPAN/SVN-Web/trunk/lib/SVN/Web/Template/trac/browse?revs=788&revs=553.
π 0.42 to 0.43 π
- The
en.polocalisation file and diff template have been changed to support viewing plain text diffs. Either copy the supplied files over your copies, or merge the changes in by hand if you are using your own templates.
The diff for these changes is at http://jc.ngo.org.uk/svnweb/jc/revision/?rev=719.
SVN::Web::Revisionhas a new option controlling whether or not diffs are shown when viewing a revision. To support it the revision template has changed. Either copy the supplied template over your copy, or merge the changes by hand if you are using your own template.
The diff for this change is at http://jc.ngo.org.uk/svnweb/jc/revision?rev=721.
- The templates
trac/trac.cssandtrac/code.csshave been changed to remove references to images that are not shipped in this distribution. This will stop web browsers requesting them, and keepssvnweb-serverquiet. It's not essential that you update your copies accordingly, but it doesn't hurt either. π€·
The diff for this change is at http://jc.ngo.org.uk/svnweb/jc/revision?rev=764.
π 0.41 to 0.42 π
- The format for specifying actions in the configuration file has changed. In addition, there are no longer any default actions β any actions not specified in the configuration file will be ignored. π
To retain existing functionality you must ensure that the following appears in config.yaml.
actions:
browse:
class: SVN::Web::Browse
checkout:
class: SVN::Web::Checkout
diff:
class: SVN::Web::Diff
list:
class: SVN::Web::List
log:
class: SVN::Web::Log
revision:
class: SVN::Web::Revision
rss:
class: SVN::Web::RSS
view:
class: SVN::Web::View
- There have been several changes to the
tractemplates. If you have made any local modifications then you will need to merge your changes in to the new templates. - Use of the
templatedirconfiguration directive is now deprecated. You should usetemplatedirsinstead. This is to support third party actions that supply their own templates in different directories.
templatedir in the configuration file will continue to work, but you should change existing entries of the form:
templatedir: '/path/to/directory'
to this form:
templatedirs:
- '/path/to/directory'
A configuration file that specifies both templatedir and templatedirs will generate an exception when anyone browses the repository. π¨
π¦ 0.40 to 0.41
Okay so after you install the new module, bestie, you gotta copy lib/Templates/trac/header over to <dir>/template/trac/header β and <dir> here is literally the directory where you ran svnweb-install. Just that one move, no cap. π
π Anything < 0.40 to 0.40
The 0.40 release? Iconic. It came with sweeping changes to the templates plus additional functionality plus new configuration directives, which is a whole lot of glow-up all at once, honestly. Peep CHANGES for the details, fr fr. π
The simplest approach β and the one you want β is to back up your existing config.yaml first, and then re-run svnweb-install. That's gonna generate a brand-new config.yaml for you and copy over the new templates and all the other files too. β¨
Migrating your old configuration directives over to the new configuration file should be easy, so don't stress, you got this. π«Ά
And that's a wrap on UPDATING(3pm)! This one came from the perl v5.40.1 source, dated 2025-04-09 π go forth and upgrade responsibly, bestie πΈ
π¦ where this page comes from
- debian trixie: libsvn-web-perl 0.63-4 Β· Artistic-1.0-Perl
- ubuntu resolute: libsvn-web-perl 0.63-4 Β· Artistic-1.0-Perl
- ubuntu stonking: libsvn-web-perl 0.63-4 Β· Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms