| Left: | ||
| Right: |
| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # This .hgrc is recommended for working on the Adblock Plus project. | |
| 2 # | |
| 3 # When using this as your .hgrc as-is, it provides a nicer user interface and | |
| 4 # enables some extensions that are useful for working on pretty much any | |
| 5 # project. | |
| 6 # | |
| 7 # 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.
| |
| 8 # or specific to the Adblock Plus project and might not make sense for everyone. | |
| 9 # Have a good look and decide for yourself what you want to enable. | |
| 10 | |
| 11 ## User interface controls | |
| 12 [ui] | |
| 13 | |
| 14 # Sets your global user name. If you do not uncomment this, you will have to | |
| 15 # set it on a per-repository basis. | |
| 16 #username = Jane Doe <jdoe@example.com> | |
| 17 | |
| 18 ## Diff (i.e. patch) format configuration | |
| 19 [diff] | |
| 20 | |
| 21 # 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.
| |
| 22 # changes to binary files). | |
| 23 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
| |
| 24 | |
| 25 ## Defaults | |
| 26 # | |
| 27 # These change the default behaviour of common Mercurial commands. | |
| 28 [defaults] | |
| 29 | |
| 30 # `hg log` shows the history of all branches by default, not just that of the | |
| 31 # current branch. The `--graph` option shows this as an ASCII tree, which makes | |
| 32 # 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.
| |
| 33 log = --graph | |
| 34 | |
| 35 # The "master" bookmark | |
| 36 # | |
| 37 # Most repositories of the Adblock Plus project use bookmarked branches to track | |
| 38 # multiple lines of development. The bookmark for the main line of development | |
| 39 # is, by convention, called "master". | |
| 40 # | |
| 41 # Unless you are working with Mercurial repositories that do not have a "master" | |
| 42 # bookmark, it is recommended that you uncomment the following defaults. | |
| 43 | |
| 44 # `hg clone` updates to "tip" by default, which is just the latest changeset, on | |
| 45 # 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
| |
| 46 # which you can do by adding `--updaterev master`. By uncommenting the following | |
| 47 # line, you won't have to worry about that: | |
| 48 #clone = --updaterev master | |
| 49 | |
| 50 # `hg push` and `hg outgoing` will by default include all changesets, including | |
| 51 # bookmarked branches that you might want to just keep locally. To avoid this, | |
| 52 # 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.
| |
| 53 # won't have to worry about that: | |
| 54 #push = --rev master | |
| 55 #outgoing = --rev master | |
| 56 | |
|
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
| |
| 57 ## Extensions | |
| 58 # | |
| 59 # Mercurial is, out of the box, fairly minimal. A lot of useful functionality | |
| 60 # comes as extensions. Most of the useful extensions are even part of the | |
| 61 # default Mercurial distribution, but not enabled by default. | |
| 62 [extensions] | |
| 63 | |
| 64 # Progress extension, shows an ASCII progress bar for operations that take | |
| 65 # longer. | |
| 66 progress = | |
| 67 | |
| 68 # Color extension, colors the output of commands like `hg log`. Enable it if | |
| 69 # your terminal supports colors (assuming you like colors). | |
| 70 #color = | |
| 71 | |
| 72 # Pager extension, shows the output of commands like `hg log` in the terminal | |
| 73 # pager (e.g. less) configured below in the [pager] section. | |
| 74 #pager = | |
| 75 | |
| 76 # Record extension, provides the `hg record` command that allows you to make | |
| 77 # partial commits. | |
| 78 record = | |
| 79 | |
| 80 # Purge extension, provides the `hg purge` (aliased to `hg clean`) command that | |
| 81 # allows you to remove unversioned files. | |
| 82 purge = | |
| 83 | |
| 84 # Rebase extension, provides the `hg rebase` command, see: | |
| 85 # https://www.mercurial-scm.org/wiki/RebaseExtension | |
| 86 rebase = | |
| 87 | |
| 88 # Strip extension, provides the `hg strip` command that allows you to remove | |
| 89 # existing changesets. | |
| 90 strip = | |
| 91 | |
| 92 # Histedit extension. Provides the `hg histedit` command that allows you to | |
| 93 # change and merge existing changesets, see: | |
| 94 # https://www.mercurial-scm.org/wiki/HisteditExtension | |
| 95 histedit = | |
| 96 | |
| 97 # Shelve extension, provides the `hg shelve` command that allows you to set | |
| 98 # pending changes aside, see: | |
| 99 # https://www.mercurial-scm.org/wiki/ShelveExtension | |
| 100 shelve = | |
| 101 | |
| 102 # Configuration for the pager extension. This doesn't have any effect unless | |
| 103 # you enable the pager extension above. | |
| 104 [pager] | |
| 105 pager = LESS='FSRX' less | |
| OLD | NEW |