Software /
code /
prosody
Comparison
doc/hgrc.ini @ 13129:7039d0ec11c3
doc/hgrc: Some useful Mercurial settings
Some useful settings that might benefit new contributors and get them up
to speed with Modern Mercurial™ faster :)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 07 Jun 2023 16:42:59 +0200 |
comparison
equal
deleted
inserted
replaced
13128:38582771b593 | 13129:7039d0ec11c3 |
---|---|
1 [paths] | |
2 default = https://hg.prosody.im/trunk/ | |
3 default:pushrev = . | |
4 default:pushurl = ssh://hg@hg.prosody.im/prosody-hg/ | |
5 | |
6 contrib = https://hg.prosody.im/contrib/ | |
7 contrib:bookmarks.mode = ignore | |
8 contrib:pushrev = . | |
9 contrib:pushurl = ssh://hg@hg.prosody.im/contrib/ | |
10 | |
11 [ui] | |
12 | |
13 # The Mercurial project recommends enabling tweakdefaults to get slight | |
14 # improvements to the UI over time. Make sure to set HGPLAIN in the environment | |
15 # when writing scripts! | |
16 tweakdefaults = True | |
17 | |
18 [phases] | |
19 # Disable marking changesets as published when pushing to a local repository | |
20 publish = False | |
21 | |
22 [revsetalias] | |
23 # Convenient alias to find current trunk revision | |
24 trunk = last(public() and branch("default")) | |
25 [experimental] | |
26 # Require changes to have a topic branch | |
27 topic-mode = enforce | |
28 | |
29 [fix] | |
30 trailing-whitespace:command = sed | |
31 trailing-whitespace:linerange = -e '{first},{last}s/\s\+$//' | |
32 trailing-whitespace:pattern = set:not binary() | |
33 | |
34 astyle:command = astyle --indent=tab --attach-classes --indent-switches --break-blocks --pad-oper --unpad-paren --add-braces --align-pointer=name --lineend=linux | |
35 astyle:pattern = set:**.c | |
36 json:command = json_pp -json_opt canonical,pretty | |
37 json:pattern = set:**.json | |
38 | |
39 [extensions] | |
40 # The Mercurial Changeset Evolution plugin is strongly recommended | |
41 evolve = | |
42 # support for topic branches | |
43 topic = |