Mercurial > vim-lawrencium
comparison doc/lawrencium.txt @ 91:e21a1819ab27
New command to export a patch and allow existing log command to take options.
* Hglogexport command takes patch name as input. If the env variable
HG_EXPORT_PATCH_DIR is set, then the patch will be created under it.
Otherwise, it will be created in the directory from which vim
was launched.
* HgLog command takes options that can be passed to hg log command.
E.g., the following command will list just 3 logs by user bob.
:Hglog -u bob -l 3
Testing:
* Patch gets created under the right directory when env variable is set
and not set.
* Hglog command honors -u and -l options. It also works when current
file name is given as input --> :Hglog % -u bob -l 3
author | Kannan Rajah <krajah@maprtech.com> |
---|---|
date | Sat, 05 Jul 2014 17:16:42 -0700 |
parents | e688b658ce5b |
children | d38be34b403b |
comparison
equal
deleted
inserted
replaced
90:777063310a8d | 91:e21a1819ab27 |
---|---|
172 *:Hglog* | 172 *:Hglog* |
173 :Hglog | 173 :Hglog |
174 Opens the history (log) for the current repository | 174 Opens the history (log) for the current repository |
175 in the |preview-window|. Some extra-commands, along with | 175 in the |preview-window|. Some extra-commands, along with |
176 some default mappings, are available in this window. | 176 some default mappings, are available in this window. |
177 See |lawrencium-log-window|. | 177 See |lawrencium-log-window|. In addition, you can pass |
178 the usual hg log arguments like -u username, -l limit, etc. | |
178 | 179 |
179 *:Hglog_f* | 180 *:Hglog_f* |
180 :Hglog {file} Same as |:Hglog|, but opens the log for the specified | 181 :Hglog {file} Same as |:Hglog|, but opens the log for the specified |
181 file or direcotry instead of the whole repository. | 182 file or direcotry instead of the whole repository. |
182 | 183 |
183 *:Hglogthis* | 184 *:Hglogthis* |
184 :Hglogthis Same as |:Hglog| but opens the history (log) for the | 185 :Hglogthis Same as |:Hglog| but opens the history (log) for the |
185 currently edited file instead of the whole repository. | 186 currently edited file instead of the whole repository. |
187 | |
188 *:Hglogexport* | |
189 :Hglogexport Exports the commit under cursor to directory specified by | |
190 env variable HG_EXPORT_PATCH_DIR. If this variable is not | |
191 set, then it is exported to the current working directory | |
192 of vim. On Unix, if the user specified an absolute path, | |
193 then the env variable is ignored. | |
186 | 194 |
187 *:Hgannotate* | 195 *:Hgannotate* |
188 :Hgannotate Splits the current window to show annotations in the | 196 :Hgannotate Splits the current window to show annotations in the |
189 left window. These annotation are retrieved with `hg | 197 left window. These annotation are retrieved with `hg |
190 annotate`. | 198 annotate`. |