annotate contrib/win32/buildlocal.bat @ 41720:6704696141b8

templates: adding a config() function for template customization This allows templates to be written such that users can customize them easily, or that they can be customized based on other configuration of the system. For enterprise deployments, we often have complex template aliases, and right now the only way individual users can customize those is by replacing the whole template alias (which means they won't get company-wide updates to it anymore, plus most users don't want to have to get a complex template right). With this change, they can just set a config option which feeds into our templates for common changes (e.g. whether to limit commit descriptions to the width of their terminal or not). To work around the issue of having to register the config options, I declared a dedicated section [templateconfig] for these options to be dynamically declared. They can still reference any other config option that's registered elsewhere. I only did string, bool and int at this time - list and date would add other complications with parsing the default so I'll leave that as an exercise to the reader :) Differential Revision: https://phab.mercurial-scm.org/D5959
author rdamazio@google.com
date Wed, 13 Feb 2019 18:34:08 -0800
parents 70ef5b610222
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
13383
70ef5b610222 contrib: add win32/buildlocal.bat
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
1 @echo off
70ef5b610222 contrib: add win32/buildlocal.bat
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
2 rem Double-click this file to (re)build Mercurial for Windows in place.
70ef5b610222 contrib: add win32/buildlocal.bat
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
3 rem Useful for testing and development.
70ef5b610222 contrib: add win32/buildlocal.bat
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
4 cd ..\..
70ef5b610222 contrib: add win32/buildlocal.bat
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
5 del /Q mercurial\*.pyd
70ef5b610222 contrib: add win32/buildlocal.bat
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
6 del /Q mercurial\*.pyc
70ef5b610222 contrib: add win32/buildlocal.bat
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
7 rmdir /Q /S mercurial\locale
70ef5b610222 contrib: add win32/buildlocal.bat
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
8 python setup.py build_py -c -d . build_ext -i build_mo
70ef5b610222 contrib: add win32/buildlocal.bat
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
9 pause