dcf12ba8f3b31eead602c530a9fbfd5579c64630

Author
Nicolas Cavigneaux <nico@bounga.org>
Committer
Marc Cornellà <hello@mcornella.com>
Date

Message

fix(mercurial): show author name in `hgsl` alias log alias (#3500)

Closes #3500

Diff

 1diff --git a/plugins/mercurial/README.md b/plugins/mercurial/README.md
 2index 4beee0a95371c475d6c0f69d8fe914d2a2db858b..a362de4cec63b35f8d91444945d49fc4fbca5887 100644
 3--- a/plugins/mercurial/README.md
 4+++ b/plugins/mercurial/README.md
 5@@ -11,27 +11,28 @@ plugins=(... mercurial)
 6 
 7 ## Aliases
 8 
 9-| Alias  | Command                                                                                                     |
10-|--------|-------------------------------------------------------------------------------------------------------------|
11-| `hga`  | `hg add`                                                                                                    |
12-| `hgc`  | `hg commit`                                                                                                 |
13-| `hgca` | `hg commit --amend`                                                                                         |
14-| `hgb`  | `hg branch`                                                                                                 |
15-| `hgba` | `hg branches`                                                                                               |
16-| `hgbk` | `hg bookmarks`                                                                                              |
17-| `hgco` | `hg checkout`                                                                                               |
18-| `hgd`  | `hg diff`                                                                                                   |
19-| `hged` | `hg diffmerge`                                                                                              |
20-| `hgp`  | `hg push`                                                                                                   |
21-| `hgs`  | `hg status`                                                                                                 |
22-| `hgsl` | `hg log --limit 20 --template "{node|short} | {date|isodatesec} | {author|user}: {desc|strip|firstline}\n"` |
23-| `hgun` | `hg resolve --list`                                                                                         |
24-| `hgi`  | `hg incoming`                                                                                               |
25-| `hgl`  | `hg pull -u`                                                                                                |
26-| `hglr` | `hg pull --rebase`                                                                                          |
27-| `hgo`  | `hg outgoing`                                                                                               |
28-| `hglg` | `hg log --stat -v`                                                                                          |
29-| `hglgp`| `hg log --stat -p -v`                                                                                       |
30+| Alias   | Command                                     |
31+| ------- | ------------------------------------------- |
32+| `hga`   | `hg add`                                    |
33+| `hgc`   | `hg commit`                                 |
34+| `hgca`  | `hg commit --amend`                         |
35+| `hgb`   | `hg branch`                                 |
36+| `hgba`  | `hg branches`                               |
37+| `hgbk`  | `hg bookmarks`                              |
38+| `hgco`  | `hg checkout`                               |
39+| `hgd`   | `hg diff`                                   |
40+| `hged`  | `hg diffmerge`                              |
41+| `hgp`   | `hg push`                                   |
42+| `hgs`   | `hg status`                                 |
43+| `hgsl`  | `hg log --limit 20 --template "<template>"` |
44+| `hgun`  | `hg resolve --list`                         |
45+| `hgi`   | `hg incoming`                               |
46+| `hgl`   | `hg pull -u`                                |
47+| `hglr`  | `hg pull --rebase`                          |
48+| `hgo`   | `hg outgoing`                               |
49+| `hglg`  | `hg log --stat -v`                          |
50+| `hglgp` | `hg log --stat -p -v`                       |
51+
52 ## Prompt usage
53 
54 - Switch to a theme which uses `hg_prompt_info`
55diff --git a/plugins/mercurial/mercurial.plugin.zsh b/plugins/mercurial/mercurial.plugin.zsh
56index e098664c04d32299b9767076f5a8662dcbd75ff4..68a3d9a5c1721b48d7fdce139288fa3f82d701aa 100644
57--- a/plugins/mercurial/mercurial.plugin.zsh
58+++ b/plugins/mercurial/mercurial.plugin.zsh
59@@ -10,7 +10,7 @@ alias hgd='hg diff'
60 alias hged='hg diffmerge'
61 alias hgp='hg push'
62 alias hgs='hg status'
63-alias hgsl='hg log --limit 20 --template "{node|short} | {date|isodatesec} | {author|user}: {desc|strip|firstline}\n"'
64+alias hgsl='hg log --limit 20 --template "{node|short} | {date|isodatesec} | {author|person}: {desc|strip|firstline}\n" '
65 alias hgun='hg resolve --list'
66 # pull and update
67 alias hgi='hg incoming'