Differences between revisions 7 and 8
Revision 7 as of 2019-06-17 20:56:45
Size: 1171
Editor: AugieFackler
Comment:
Revision 8 as of 2019-06-17 20:59:46
Size: 1527
Editor: AugieFackler
Comment:
Deletions are marked like this. Additions are marked like this.
Line 14: Line 14:
Show the previous position of bookmarks and the working copy. show the previous position of bookmarks and the working copy
Line 16: Line 16:
The journal is used to see the previous commits that bookmarks and the working copy pointed to. By default it shows the previous locations of the working copy. Passing a bookmark name will show all the previous positions of that bookmark. Passing --all will show the previous locations of all bookmarks and the working copy. The journal is used to see the previous commits that bookmarks and the
working copy pointed to. By default the previous locations for the working
copy. Passing a bookmark name will show all the previous positions of
that bookmark. Use the `--all` switch to show previous locations for all
bookmarks and the working copy; each line will then include the bookmark
name, or `
.` for the working copy, as well.
Line 18: Line 23:
''hg backups --recover <hash>'' can be used to recover a commit if it's no longer in your repository. If `name` starts with `re:`, the remainder of the name is treated as a
regular expression. To match a name that actually starts with `re:`, use
the prefix `literal:`.
Line 20: Line 27:
By default the reflog only shows the commit hash and the command that was running at that time. -v/--verbose will show the prior hash, the user, and the time at which it happened. By default `hg journal` only shows the commit hash and the command that was
running at that time. `-v`/`--verbose` will show the prior hash, the user, and
the time at which it happened.
Line 22: Line 31:
''hg reflog -T json'' can be used to produce machine readable output. Use `-c`/`--commits` to output log information on each commit hash; at this
point you can use the usual '--patch', '--git', '--stat' and '--template'
switches to alter the log output for these.
Line 24: Line 35:
'hg journal -T json' can be used to produce machine readable output.

Journal

Keep a journal of where names have pointed.

1. Status

This extension is distributed with Mercurial as experimental.

Author: Facebook, Inc

2. Overview

show the previous position of bookmarks and the working copy

The journal is used to see the previous commits that bookmarks and the working copy pointed to. By default the previous locations for the working copy. Passing a bookmark name will show all the previous positions of that bookmark. Use the --all switch to show previous locations for all bookmarks and the working copy; each line will then include the bookmark name, or . for the working copy, as well.

If name starts with re:, the remainder of the name is treated as a regular expression. To match a name that actually starts with re:, use the prefix literal:.

By default hg journal only shows the commit hash and the command that was running at that time. -v/--verbose will show the prior hash, the user, and the time at which it happened.

Use -c/--commits to output log information on each commit hash; at this point you can use the usual '--patch', '--git', '--stat' and '--template' switches to alter the log output for these.

'hg journal -T json' can be used to produce machine readable output.

3. Configuration

Configure your .hgrc to enable the extension by adding following lines:

[extensions]
journal =


CategoryExtensionsByOthers

JournalExtension (last edited 2019-06-17 21:00:54 by AugieFackler)