2014-08-06 20:43:59 +04:00
|
|
|
#require serve
|
2011-11-07 06:24:53 +04:00
|
|
|
|
2010-09-26 22:41:32 +04:00
|
|
|
setting up repo
|
|
|
|
|
|
|
|
$ hg init test
|
|
|
|
$ cd test
|
|
|
|
$ echo a > a
|
|
|
|
$ hg ci -Ama
|
|
|
|
adding a
|
|
|
|
$ hg rm a
|
|
|
|
$ hg ci -mdel
|
|
|
|
|
|
|
|
set up hgweb
|
|
|
|
|
2018-02-08 02:18:29 +03:00
|
|
|
$ hg serve -n test -p 0 --port-file $TESTTMP/.port -d --pid-file=hg.pid -A access.log -E errors.log
|
|
|
|
$ HGPORT=`cat $TESTTMP/.port`
|
2010-09-26 22:41:32 +04:00
|
|
|
$ cat hg.pid >> $DAEMON_PIDS
|
|
|
|
|
|
|
|
revision
|
|
|
|
|
2015-06-08 22:44:30 +03:00
|
|
|
$ get-with-headers.py localhost:$HGPORT 'rev/tip'
|
2010-09-26 22:41:32 +04:00
|
|
|
200 Script output follows
|
|
|
|
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
|
|
|
|
<head>
|
|
|
|
<link rel="icon" href="/static/hgicon.png" type="image/png" />
|
|
|
|
<meta name="robots" content="index, nofollow" />
|
|
|
|
<link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
|
2011-04-28 19:02:39 +04:00
|
|
|
<script type="text/javascript" src="/static/mercurial.js"></script>
|
2010-09-26 22:41:32 +04:00
|
|
|
|
|
|
|
<title>test: c78f6c5cbea9</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="container">
|
|
|
|
<div class="menu">
|
|
|
|
<div class="logo">
|
2015-09-30 23:43:49 +03:00
|
|
|
<a href="https://mercurial-scm.org/">
|
2010-09-26 22:41:32 +04:00
|
|
|
<img src="/static/hglogo.png" alt="mercurial" /></a>
|
|
|
|
</div>
|
|
|
|
<ul>
|
2015-06-16 11:07:39 +03:00
|
|
|
<li><a href="/shortlog/tip">log</a></li>
|
|
|
|
<li><a href="/graph/tip">graph</a></li>
|
2010-09-26 22:41:32 +04:00
|
|
|
<li><a href="/tags">tags</a></li>
|
2011-03-12 13:20:03 +03:00
|
|
|
<li><a href="/bookmarks">bookmarks</a></li>
|
2010-09-26 22:41:32 +04:00
|
|
|
<li><a href="/branches">branches</a></li>
|
|
|
|
</ul>
|
|
|
|
<ul>
|
|
|
|
<li class="active">changeset</li>
|
2015-06-16 11:07:39 +03:00
|
|
|
<li><a href="/raw-rev/tip">raw</a></li>
|
|
|
|
<li><a href="/file/tip">browse</a></li>
|
2010-09-26 22:41:32 +04:00
|
|
|
</ul>
|
|
|
|
<ul>
|
|
|
|
|
2010-10-09 21:27:14 +04:00
|
|
|
</ul>
|
|
|
|
<ul>
|
|
|
|
<li><a href="/help">help</a></li>
|
2010-09-26 22:41:32 +04:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="main">
|
|
|
|
|
2013-01-09 04:16:29 +04:00
|
|
|
<h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
|
2015-06-18 12:06:18 +03:00
|
|
|
<h3>
|
|
|
|
changeset 1:<a href="/rev/c78f6c5cbea9">c78f6c5cbea9</a>
|
2017-11-16 17:21:03 +03:00
|
|
|
<span class="phase">draft</span> <span class="branchhead">default</span> <span class="tag">tip</span>
|
2015-06-18 12:06:18 +03:00
|
|
|
</h3>
|
2010-09-26 22:41:32 +04:00
|
|
|
|
2017-06-09 23:59:13 +03:00
|
|
|
|
2010-09-26 22:41:32 +04:00
|
|
|
<form class="search" action="/log">
|
|
|
|
|
2017-06-09 23:59:13 +03:00
|
|
|
<p><input name="rev" id="search1" type="text" size="30" value="" /></p>
|
2013-09-06 13:30:57 +04:00
|
|
|
<div id="hint">Find changesets by keywords (author, files, the commit message), revision
|
|
|
|
number or hash, or <a href="/help/revsets">revset expression</a>.</div>
|
2010-09-26 22:41:32 +04:00
|
|
|
</form>
|
|
|
|
|
|
|
|
<div class="description">del</div>
|
|
|
|
|
|
|
|
<table id="changesetEntry">
|
|
|
|
<tr>
|
|
|
|
<th class="author">author</th>
|
|
|
|
<td class="author">test</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th class="date">date</th>
|
2015-01-10 16:37:42 +03:00
|
|
|
<td class="date age">Thu, 01 Jan 1970 00:00:00 +0000</td>
|
|
|
|
</tr>
|
2010-09-26 22:41:32 +04:00
|
|
|
<tr>
|
|
|
|
<th class="author">parents</th>
|
|
|
|
<td class="author"><a href="/rev/cb9a9f314b8b">cb9a9f314b8b</a> </td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th class="author">children</th>
|
|
|
|
<td class="author"></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th class="files">files</th>
|
|
|
|
<td class="files">a </td>
|
|
|
|
</tr>
|
2011-06-11 17:24:50 +04:00
|
|
|
<tr>
|
|
|
|
<th class="diffstat">diffstat</th>
|
|
|
|
<td class="diffstat">
|
|
|
|
1 files changed, 0 insertions(+), 1 deletions(-)
|
|
|
|
|
2015-01-10 13:00:57 +03:00
|
|
|
<a id="diffstatexpand" href="javascript:toggleDiffstat()">[<tt>+</tt>]</a>
|
2011-06-11 17:24:50 +04:00
|
|
|
<div id="diffstatdetails" style="display:none;">
|
2015-01-10 13:00:57 +03:00
|
|
|
<a href="javascript:toggleDiffstat()">[<tt>-</tt>]</a>
|
2015-02-05 15:34:30 +03:00
|
|
|
<table class="diffstat-table stripes2"> <tr>
|
2011-06-11 17:24:50 +04:00
|
|
|
<td class="diffstat-file"><a href="#l1.1">a</a></td>
|
|
|
|
<td class="diffstat-total" align="right">1</td>
|
|
|
|
<td class="diffstat-graph">
|
|
|
|
<span class="diffstat-add" style="width:0.0%;"> </span>
|
|
|
|
<span class="diffstat-remove" style="width:100.0%;"> </span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2010-09-26 22:41:32 +04:00
|
|
|
</table>
|
|
|
|
|
|
|
|
<div class="overflow">
|
2013-07-13 00:57:56 +04:00
|
|
|
<div class="sourcefirst linewraptoggle">line wrap: <a class="linewraplink" href="javascript:toggleLinewrap()">on</a></div>
|
2013-07-13 00:57:10 +04:00
|
|
|
<div class="sourcefirst"> line diff</div>
|
|
|
|
<div class="stripes2 diffblocks">
|
|
|
|
<div class="bottomline inc-lineno"><pre class="sourcelines wrap">
|
|
|
|
<span id="l1.1" class="minusline">--- a/a Thu Jan 01 00:00:00 1970 +0000</span><a href="#l1.1"></a>
|
|
|
|
<span id="l1.2" class="plusline">+++ /dev/null Thu Jan 01 00:00:00 1970 +0000</span><a href="#l1.2"></a>
|
|
|
|
<span id="l1.3" class="atline">@@ -1,1 +0,0 @@</span><a href="#l1.3"></a>
|
|
|
|
<span id="l1.4" class="minusline">-a</span><a href="#l1.4"></a></pre></div>
|
|
|
|
</div>
|
2010-09-26 22:41:32 +04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|
|
|
|
|
|
|
|
diff removed file
|
|
|
|
|
2015-06-08 22:44:30 +03:00
|
|
|
$ get-with-headers.py localhost:$HGPORT 'diff/tip/a'
|
2010-09-26 22:41:32 +04:00
|
|
|
200 Script output follows
|
|
|
|
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
|
|
|
|
<head>
|
|
|
|
<link rel="icon" href="/static/hgicon.png" type="image/png" />
|
|
|
|
<meta name="robots" content="index, nofollow" />
|
|
|
|
<link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
|
2011-04-28 19:02:39 +04:00
|
|
|
<script type="text/javascript" src="/static/mercurial.js"></script>
|
2010-09-26 22:41:32 +04:00
|
|
|
|
|
|
|
<title>test: a diff</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<div class="container">
|
|
|
|
<div class="menu">
|
|
|
|
<div class="logo">
|
2015-09-30 23:43:49 +03:00
|
|
|
<a href="https://mercurial-scm.org/">
|
2010-09-26 22:41:32 +04:00
|
|
|
<img src="/static/hglogo.png" alt="mercurial" /></a>
|
|
|
|
</div>
|
|
|
|
<ul>
|
2015-06-16 11:07:39 +03:00
|
|
|
<li><a href="/shortlog/tip">log</a></li>
|
|
|
|
<li><a href="/graph/tip">graph</a></li>
|
2010-09-26 22:41:32 +04:00
|
|
|
<li><a href="/tags">tags</a></li>
|
2011-03-12 13:20:03 +03:00
|
|
|
<li><a href="/bookmarks">bookmarks</a></li>
|
2010-09-26 22:41:32 +04:00
|
|
|
<li><a href="/branches">branches</a></li>
|
|
|
|
</ul>
|
|
|
|
<ul>
|
2015-06-16 11:07:39 +03:00
|
|
|
<li><a href="/rev/tip">changeset</a></li>
|
|
|
|
<li><a href="/file/tip">browse</a></li>
|
2010-09-26 22:41:32 +04:00
|
|
|
</ul>
|
|
|
|
<ul>
|
2015-06-16 11:07:39 +03:00
|
|
|
<li><a href="/file/tip/a">file</a></li>
|
2010-09-26 22:41:32 +04:00
|
|
|
<li><a href="/file/tip/a">latest</a></li>
|
|
|
|
<li class="active">diff</li>
|
2015-06-16 11:07:39 +03:00
|
|
|
<li><a href="/comparison/tip/a">comparison</a></li>
|
|
|
|
<li><a href="/annotate/tip/a">annotate</a></li>
|
|
|
|
<li><a href="/log/tip/a">file log</a></li>
|
|
|
|
<li><a href="/raw-file/tip/a">raw</a></li>
|
2010-09-26 22:41:32 +04:00
|
|
|
</ul>
|
2010-10-10 02:58:48 +04:00
|
|
|
<ul>
|
|
|
|
<li><a href="/help">help</a></li>
|
|
|
|
</ul>
|
2010-09-26 22:41:32 +04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="main">
|
2013-01-09 04:16:29 +04:00
|
|
|
<h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
|
2015-06-18 12:06:18 +03:00
|
|
|
<h3>
|
|
|
|
diff a @ 1:<a href="/rev/c78f6c5cbea9">c78f6c5cbea9</a>
|
2017-11-16 17:21:03 +03:00
|
|
|
<span class="phase">draft</span> <span class="branchhead">default</span> <span class="tag">tip</span>
|
2015-06-18 12:06:18 +03:00
|
|
|
</h3>
|
2010-09-26 22:41:32 +04:00
|
|
|
|
2017-06-09 23:59:13 +03:00
|
|
|
|
2010-09-26 22:41:32 +04:00
|
|
|
<form class="search" action="/log">
|
2017-06-09 23:59:13 +03:00
|
|
|
|
|
|
|
<p><input name="rev" id="search1" type="text" size="30" value="" /></p>
|
2013-09-06 13:30:57 +04:00
|
|
|
<div id="hint">Find changesets by keywords (author, files, the commit message), revision
|
|
|
|
number or hash, or <a href="/help/revsets">revset expression</a>.</div>
|
2010-09-26 22:41:32 +04:00
|
|
|
</form>
|
|
|
|
|
|
|
|
<div class="description">del</div>
|
|
|
|
|
|
|
|
<table id="changesetEntry">
|
|
|
|
<tr>
|
|
|
|
<th>author</th>
|
|
|
|
<td>test</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>date</th>
|
hgweb: fix dynamic date calculation not working under Safari
While Chrome, Firefox, and IE 6+ support the current date format being
passed to Date(), Safari doesn't:
> new Date('Mon Oct 24 13:58:01 2011 +0200')
Invalid Date
However, the rfc822date format--officially supported by
ECMAScript[1]--does work:
> new Date('Mon, 24 Oct 2011 13:58:01 +0200')
Mon Oct 24 2011 04:58:01 GMT-0700 (PDT)
This change replaces all instances of {date|date} in HTML with
{date|rfc822date}. For elements that only have the "age" class,
there's no outward change for users with JavaScript enabled. For
elements with both the "age" and "date" classes, the full date
displayed uses the new format.
Tested in IE 6, Safari 5.1.1, Google Chrome 15, and Firefox 7.0.1.
[1]: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/parse
2011-10-27 22:57:08 +04:00
|
|
|
<td class="date age">Thu, 01 Jan 1970 00:00:00 +0000</td>
|
2010-09-26 22:41:32 +04:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>parents</th>
|
|
|
|
<td><a href="/file/cb9a9f314b8b/a">cb9a9f314b8b</a> </td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>children</th>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<div class="overflow">
|
2013-07-13 00:57:56 +04:00
|
|
|
<div class="sourcefirst linewraptoggle">line wrap: <a class="linewraplink" href="javascript:toggleLinewrap()">on</a></div>
|
2013-07-13 00:57:10 +04:00
|
|
|
<div class="sourcefirst"> line diff</div>
|
|
|
|
<div class="stripes2 diffblocks">
|
|
|
|
<div class="bottomline inc-lineno"><pre class="sourcelines wrap">
|
|
|
|
<span id="l1.1" class="minusline">--- a/a Thu Jan 01 00:00:00 1970 +0000</span><a href="#l1.1"></a>
|
|
|
|
<span id="l1.2" class="plusline">+++ /dev/null Thu Jan 01 00:00:00 1970 +0000</span><a href="#l1.2"></a>
|
|
|
|
<span id="l1.3" class="atline">@@ -1,1 +0,0 @@</span><a href="#l1.3"></a>
|
|
|
|
<span id="l1.4" class="minusline">-a</span><a href="#l1.4"></a></pre></div>
|
|
|
|
</div>
|
2010-09-26 22:41:32 +04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|
2012-06-11 03:40:51 +04:00
|
|
|
|
|
|
|
$ cd ..
|