| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| 4 |
<head> |
| 5 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 6 |
<meta name="generator" content="Docutils 0.21.2: https://docutils.sourceforge.io/" /> |
| 7 |
<title>journal</title> |
| 8 |
<link rel="stylesheet" href="../style.css" type="text/css" /> |
| 9 |
</head> |
| 10 |
<body> |
| 11 |
<div class="document" id="journal"> |
| 12 |
<span id="ext-journal"></span> |
| 13 |
<h1 class="title">journal</h1> |
| 14 |
|
| 15 |
<div class="contents htmlonly topic" id="contents"> |
| 16 |
<p class="topic-title"><a class="reference internal" href="#top">Contents</a></p> |
| 17 |
<ul class="simple"> |
| 18 |
<li><a class="reference internal" href="#description" id="toc-entry-1">Description</a></li> |
| 19 |
<li><a class="reference internal" href="#commands" id="toc-entry-2">Commands</a><ul> |
| 20 |
<li><a class="reference internal" href="#change-organization" id="toc-entry-3">Change organization</a></li> |
| 21 |
</ul> |
| 22 |
</li> |
| 23 |
</ul> |
| 24 |
</div> |
| 25 |
<p>track previous positions of bookmarks (EXPERIMENTAL)</p> |
| 26 |
<div class="section" id="description"> |
| 27 |
<h1><a class="toc-backref" href="#contents">Description</a></h1> |
| 28 |
<p>This extension adds a new command: <cite>hg journal</cite>, which shows you where |
| 29 |
bookmarks were previously located.</p> |
| 30 |
</div> |
| 31 |
<div class="section" id="commands"> |
| 32 |
<h1><a class="toc-backref" href="#contents">Commands</a></h1> |
| 33 |
<div class="section" id="change-organization"> |
| 34 |
<h2><a class="toc-backref" href="#contents">Change organization</a></h2> |
| 35 |
<div class="section" id="journal-1"> |
| 36 |
<h3>journal</h3> |
| 37 |
<p>show the previous position of bookmarks and the working copy:</p> |
| 38 |
<pre class="literal-block"> |
| 39 |
hg journal [OPTION]... [BOOKMARKNAME] |
| 40 |
</pre> |
| 41 |
<p>The journal is used to see the previous commits that bookmarks and the |
| 42 |
working copy pointed to. By default the previous locations for the working |
| 43 |
copy. Passing a bookmark name will show all the previous positions of |
| 44 |
that bookmark. Use the --all switch to show previous locations for all |
| 45 |
bookmarks and the working copy; each line will then include the bookmark |
| 46 |
name, or '.' for the working copy, as well.</p> |
| 47 |
<p>If <cite>name</cite> starts with <cite>re:</cite>, the remainder of the name is treated as |
| 48 |
a regular expression. To match a name that actually starts with <cite>re:</cite>, |
| 49 |
use the prefix <cite>literal:</cite>.</p> |
| 50 |
<p>By default hg journal only shows the commit hash and the command that was |
| 51 |
running at that time. -v/--verbose will show the prior hash, the user, and |
| 52 |
the time at which it happened.</p> |
| 53 |
<p>Use -c/--commits to output log information on each commit hash; at this |
| 54 |
point you can use the usual <cite>--patch</cite>, <cite>--git</cite>, <cite>--stat</cite> and <cite>--template</cite> |
| 55 |
switches to alter the log output for these.</p> |
| 56 |
<p><cite>hg journal -T json</cite> can be used to produce machine readable output.</p> |
| 57 |
<p>Options:</p> |
| 58 |
<table class="docutils option-list" frame="void" rules="none"> |
| 59 |
<col class="option" /> |
| 60 |
<col class="description" /> |
| 61 |
<tbody valign="top"> |
| 62 |
<tr><td class="option-group"> |
| 63 |
<kbd><span class="option">--all</span></kbd></td> |
| 64 |
<td>show history for all names</td></tr> |
| 65 |
<tr><td class="option-group"> |
| 66 |
<kbd><span class="option">-c</span>, <span class="option">--commits</span></kbd></td> |
| 67 |
<td>show commit metadata</td></tr> |
| 68 |
<tr><td class="option-group"> |
| 69 |
<kbd><span class="option">-p</span>, <span class="option">--patch</span></kbd></td> |
| 70 |
<td>show patch</td></tr> |
| 71 |
<tr><td class="option-group"> |
| 72 |
<kbd><span class="option">-g</span>, <span class="option">--git</span></kbd></td> |
| 73 |
<td>use git extended diff format</td></tr> |
| 74 |
<tr><td class="option-group" colspan="2"> |
| 75 |
<kbd><span class="option">-l</span>, <span class="option">--limit <var><NUM></var></span></kbd></td> |
| 76 |
</tr> |
| 77 |
<tr><td> </td><td>limit number of changes displayed</td></tr> |
| 78 |
<tr><td class="option-group"> |
| 79 |
<kbd><span class="option">--stat</span></kbd></td> |
| 80 |
<td>output diffstat-style summary of changes</td></tr> |
| 81 |
<tr><td class="option-group" colspan="2"> |
| 82 |
<kbd><span class="option">--style <var><STYLE></var></span></kbd></td> |
| 83 |
</tr> |
| 84 |
<tr><td> </td><td>display using template map file (DEPRECATED)</td></tr> |
| 85 |
<tr><td class="option-group" colspan="2"> |
| 86 |
<kbd><span class="option">-T</span>, <span class="option">--template <var><TEMPLATE></var></span></kbd></td> |
| 87 |
</tr> |
| 88 |
<tr><td> </td><td>display with template</td></tr> |
| 89 |
</tbody> |
| 90 |
</table> |
| 91 |
</div> |
| 92 |
</div> |
| 93 |
</div> |
| 94 |
</div> |
| 95 |
</body> |
| 96 |
</html> |