| Index: hgrc |
| =================================================================== |
| new file mode 100644 |
| --- /dev/null |
| +++ b/hgrc |
| @@ -0,0 +1,105 @@ |
| +# This .hgrc is recommended for working on the Adblock Plus project. |
| +# |
| +# When using this as your .hgrc as-is, it provides a nicer user interface and |
| +# enables some extensions that are useful for working on pretty much any |
| +# project. |
| +# |
| +# The commented parts do either not work on all systems, are a matter of taste, |
|
Wladimir Palant
2016/02/22 11:05:27
do either => either do
Felix Dahlke
2016/02/22 22:16:53
Done.
|
| +# or specific to the Adblock Plus project and might not make sense for everyone. |
| +# Have a good look and decide for yourself what you want to enable. |
| + |
| +## User interface controls |
| +[ui] |
| + |
| +# Sets your global user name. If you do not uncomment this, you will have to |
| +# set it on a per-repository basis. |
| +#username = Jane Doe <jdoe@example.com> |
| + |
| +## Diff (i.e. patch) format configuration |
| +[diff] |
| + |
| +# We ue Git's extended diff format which includes more information (such as |
|
Wladimir Palant
2016/02/22 11:05:27
ue => use
Felix Dahlke
2016/02/22 22:16:53
Done.
|
| +# changes to binary files). |
| +git = true |
|
Wladimir Palant
2016/02/22 11:05:27
Might want to add the following:
# Uncomment this
Felix Dahlke
2016/02/22 22:16:53
Done. Made it a default since I believe it's saner
|
| + |
| +## Defaults |
| +# |
| +# These change the default behaviour of common Mercurial commands. |
| +[defaults] |
| + |
| +# `hg log` shows the history of all branches by default, not just that of the |
| +# current branch. The `--graph` option shows this as an ASCII tree, which makes |
| +# the history a lot easier to read. |
|
Wladimir Palant
2016/02/22 11:05:28
How about adding: It will also mark the revision y
Felix Dahlke
2016/02/22 22:16:53
Done.
|
| +log = --graph |
| + |
| +# The "master" bookmark |
| +# |
| +# Most repositories of the Adblock Plus project use bookmarked branches to track |
| +# multiple lines of development. The bookmark for the main line of development |
| +# is, by convention, called "master". |
| +# |
| +# Unless you are working with Mercurial repositories that do not have a "master" |
| +# bookmark, it is recommended that you uncomment the following defaults. |
| + |
| +# `hg clone` updates to "tip" by default, which is just the latest changeset, on |
| +# any branch. You most likely want to update to the "master" bookmark instead, |
|
Wladimir Palant
2016/02/22 11:05:27
This isn't correct - hg clone updates to the lates
Felix Dahlke
2016/02/22 22:16:53
Oh indeed, I was pretty sure it would update to ti
|
| +# which you can do by adding `--updaterev master`. By uncommenting the following |
| +# line, you won't have to worry about that: |
| +#clone = --updaterev master |
| + |
| +# `hg push` and `hg outgoing` will by default include all changesets, including |
| +# bookmarked branches that you might want to just keep locally. To avoid this, |
| +# you need to add `--rev master`. By uncommenting the following two lines, you |
|
Wladimir Palant
2016/02/22 11:05:27
Here as well, you can say that one can always spec
Felix Dahlke
2016/02/22 22:16:53
Done.
|
| +# won't have to worry about that: |
| +#push = --rev master |
| +#outgoing = --rev master |
| + |
|
Wladimir Palant
2016/02/22 11:05:27
So, what about update? I checked and there are two
Felix Dahlke
2016/02/22 22:16:53
Yes me too, we're both pretty used to Mercurial by
Wladimir Palant
2016/02/23 10:52:18
Ouch... As you probably noticed, I always specify
Felix Dahlke
2016/02/23 16:31:38
Yeah, my vote is for getting started. Wanna add th
|
| +## Extensions |
| +# |
| +# Mercurial is, out of the box, fairly minimal. A lot of useful functionality |
| +# comes as extensions. Most of the useful extensions are even part of the |
| +# default Mercurial distribution, but not enabled by default. |
| +[extensions] |
| + |
| +# Progress extension, shows an ASCII progress bar for operations that take |
| +# longer. |
| +progress = |
| + |
| +# Color extension, colors the output of commands like `hg log`. Enable it if |
| +# your terminal supports colors (assuming you like colors). |
| +#color = |
| + |
| +# Pager extension, shows the output of commands like `hg log` in the terminal |
| +# pager (e.g. less) configured below in the [pager] section. |
| +#pager = |
| + |
| +# Record extension, provides the `hg record` command that allows you to make |
| +# partial commits. |
| +record = |
| + |
| +# Purge extension, provides the `hg purge` (aliased to `hg clean`) command that |
| +# allows you to remove unversioned files. |
| +purge = |
| + |
| +# Rebase extension, provides the `hg rebase` command, see: |
| +# https://www.mercurial-scm.org/wiki/RebaseExtension |
| +rebase = |
| + |
| +# Strip extension, provides the `hg strip` command that allows you to remove |
| +# existing changesets. |
| +strip = |
| + |
| +# Histedit extension. Provides the `hg histedit` command that allows you to |
| +# change and merge existing changesets, see: |
| +# https://www.mercurial-scm.org/wiki/HisteditExtension |
| +histedit = |
| + |
| +# Shelve extension, provides the `hg shelve` command that allows you to set |
| +# pending changes aside, see: |
| +# https://www.mercurial-scm.org/wiki/ShelveExtension |
| +shelve = |
| + |
| +# Configuration for the pager extension. This doesn't have any effect unless |
| +# you enable the pager extension above. |
| +[pager] |
| +pager = LESS='FSRX' less |