Index: hgrc |
=================================================================== |
new file mode 100644 |
--- /dev/null |
+++ b/hgrc |
@@ -0,0 +1,85 @@ |
+# This .hgrc is recommended for working on the Adblock Plus project. |
Wladimir Palant
2016/02/20 17:50:48
General notes:
1) The order is wrong, obvious stu
Felix Dahlke
2016/02/20 20:16:38
Don't feel nearly as strong about that, changed it
|
+# |
+# When using this as your .hgrc as-is, it provides a nicer user interface and |
+# enables some extensions that are useful for working on any project. |
+# |
+# The commented parts are more specific to the Adblock Plus project and might |
+# not make sense if you also work on other Mercurial projects. Have a look and |
+# decide for yourself what you want to enable. When you are not working on any |
+# other projects using Mercurial, it is recommended that you uncomment |
+# everything. |
+ |
+# 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] |
+ |
+# Pager extension, shows the output of commands like `hg log` in a pager. |
+pager = |
Wladimir Palant
2016/02/20 17:50:48
I don't use that, find it pretty annoying actually
Felix Dahlke
2016/02/20 20:16:38
Hm, didn't think anyone would not want that. So yo
Wladimir Palant
2016/02/22 11:05:26
Yes, I have "log = -l 5" set under [defaults].
|
+ |
+# Color extension, colours the output of commands lke `hg log`. |
+color = |
Wladimir Palant
2016/02/20 17:50:48
Same here. While this is usually useful, it produc
Felix Dahlke
2016/02/20 20:16:38
Done.
|
+ |
+# Progress extension, shows an ASCII progress bar for operations that take, |
+# longer. |
Wladimir Palant
2016/02/20 17:50:48
No comma after take.
Felix Dahlke
2016/02/20 20:16:39
Done.
|
+progress = |
+ |
+# Rebase extension, provides the `hg rebase` command, see: |
+# https://www.mercurial-scm.org/wiki/RebaseExtension |
+rebase = |
+ |
+# 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 clean unversioned files. |
Wladimir Palant
2016/02/20 17:50:48
Nit: You need to close that parenthesis somewhere.
Felix Dahlke
2016/02/20 20:16:38
Done.
|
+purge = |
+ |
+# Shelve extension, provides the `hg shelve` command that allows you to set |
+# pending changes aside, see: |
+# https://www.mercurial-scm.org/wiki/ShelveExtension |
+shelve = |
Wladimir Palant
2016/02/20 17:50:48
I couldn't find any use for that when working with
Felix Dahlke
2016/02/20 20:16:39
Not? I use it on a weekly basis, just like git sta
|
+ |
+# 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 = |
+ |
+# Configuration for the pager extension, see above. |
+[pager] |
+pager = LESS='FSRX' less |
+ |
+# 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 Bloggs <jane@adblockplus.org> |
Wladimir Palant
2016/02/20 17:50:48
I hope we never hire a Jane...
The explanation is
Felix Dahlke
2016/02/20 20:16:38
Is that what happens for you? I always get this:
Wladimir Palant
2016/02/22 11:05:26
Weird, same here - supposedly working like that si
|
+ |
+# Aliases |
+# |
+# These change the default behaviour of common Mercurial commands. |
+[alias] |
Felix Dahlke
2016/02/20 12:01:37
Any other suggestions for useful aliases I couldn'
|
+ |
+# `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. |
+log = log --graph |
+ |
+# `hg clone` updates to the tip by default, which is just the latest changeset, |
+# on any branch. You most likely want to update to the "master" bookmark |
+# instead, which you can do by adding `--updaterev master`. By uncommenting the |
+# following alias, you won't have to worry about that: |
+#clone = clone --updaterev master |
+ |
+# `hg push` will by default attempt to push 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 alias, you won't have to |
+# worry about that: |
+#push = push --rev master |
Wladimir Palant
2016/02/20 17:50:47
You are misusing aliases here, you should use [def
Felix Dahlke
2016/02/20 20:16:38
Oh nice, forgot that that's possible. Using aliase
|