2014-08-06 20:43:59 +04:00
|
|
|
#require serve
|
2010-09-26 22:41:32 +04:00
|
|
|
|
|
|
|
$ hg init test
|
|
|
|
$ cd test
|
|
|
|
$ echo b > b
|
|
|
|
$ hg ci -Am "b"
|
|
|
|
adding b
|
|
|
|
$ echo a > a
|
|
|
|
$ hg ci -Am "first a"
|
|
|
|
adding a
|
2015-05-15 08:30:34 +03:00
|
|
|
$ hg tag -r 1 a-tag
|
|
|
|
$ hg bookmark -r 1 a-bookmark
|
2010-09-26 22:41:32 +04:00
|
|
|
$ hg rm a
|
|
|
|
$ hg ci -m "del a"
|
2015-05-15 08:30:34 +03:00
|
|
|
$ hg branch a-branch
|
|
|
|
marked working directory as branch a-branch
|
|
|
|
(branches are permanent and global, did you want a bookmark?)
|
2010-09-26 22:41:32 +04:00
|
|
|
$ echo b > a
|
|
|
|
$ hg ci -Am "second a"
|
|
|
|
adding a
|
|
|
|
$ hg rm a
|
|
|
|
$ hg ci -m "del2 a"
|
|
|
|
$ hg mv b c
|
|
|
|
$ hg ci -m "mv b"
|
|
|
|
$ echo c >> c
|
|
|
|
$ hg ci -m "change c"
|
|
|
|
$ hg log -p
|
2015-05-15 08:30:34 +03:00
|
|
|
changeset: 7:46c1a66bd8fc
|
|
|
|
branch: a-branch
|
2010-09-26 22:41:32 +04:00
|
|
|
tag: tip
|
|
|
|
user: test
|
|
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
|
|
summary: change c
|
|
|
|
|
2015-05-15 08:30:34 +03:00
|
|
|
diff -r c9637d3cc8ef -r 46c1a66bd8fc c
|
2010-09-26 22:41:32 +04:00
|
|
|
--- a/c Thu Jan 01 00:00:00 1970 +0000
|
|
|
|
+++ b/c Thu Jan 01 00:00:00 1970 +0000
|
|
|
|
@@ -1,1 +1,2 @@
|
|
|
|
b
|
|
|
|
+c
|
|
|
|
|
2015-05-15 08:30:34 +03:00
|
|
|
changeset: 6:c9637d3cc8ef
|
|
|
|
branch: a-branch
|
2010-09-26 22:41:32 +04:00
|
|
|
user: test
|
|
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
|
|
summary: mv b
|
|
|
|
|
2015-05-15 08:30:34 +03:00
|
|
|
diff -r 958bd88be4eb -r c9637d3cc8ef b
|
2010-09-26 22:41:32 +04:00
|
|
|
--- a/b Thu Jan 01 00:00:00 1970 +0000
|
|
|
|
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
|
|
|
|
@@ -1,1 +0,0 @@
|
|
|
|
-b
|
2015-05-15 08:30:34 +03:00
|
|
|
diff -r 958bd88be4eb -r c9637d3cc8ef c
|
2010-09-26 22:41:32 +04:00
|
|
|
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
|
|
|
|
+++ b/c Thu Jan 01 00:00:00 1970 +0000
|
|
|
|
@@ -0,0 +1,1 @@
|
|
|
|
+b
|
|
|
|
|
2015-05-15 08:30:34 +03:00
|
|
|
changeset: 5:958bd88be4eb
|
|
|
|
branch: a-branch
|
2010-09-26 22:41:32 +04:00
|
|
|
user: test
|
|
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
|
|
summary: del2 a
|
|
|
|
|
2015-05-15 08:30:34 +03:00
|
|
|
diff -r 3f41bc784e7e -r 958bd88be4eb a
|
2010-09-26 22:41:32 +04:00
|
|
|
--- a/a Thu Jan 01 00:00:00 1970 +0000
|
|
|
|
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
|
|
|
|
@@ -1,1 +0,0 @@
|
|
|
|
-b
|
|
|
|
|
2015-05-15 08:30:34 +03:00
|
|
|
changeset: 4:3f41bc784e7e
|
|
|
|
branch: a-branch
|
2010-09-26 22:41:32 +04:00
|
|
|
user: test
|
|
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
|
|
summary: second a
|
|
|
|
|
2015-05-15 08:30:34 +03:00
|
|
|
diff -r 292258f86fdf -r 3f41bc784e7e a
|
2010-09-26 22:41:32 +04:00
|
|
|
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
|
|
|
|
+++ b/a Thu Jan 01 00:00:00 1970 +0000
|
|
|
|
@@ -0,0 +1,1 @@
|
|
|
|
+b
|
|
|
|
|
2015-05-15 08:30:34 +03:00
|
|
|
changeset: 3:292258f86fdf
|
2010-09-26 22:41:32 +04:00
|
|
|
user: test
|
|
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
|
|
summary: del a
|
|
|
|
|
2015-05-15 08:30:34 +03:00
|
|
|
diff -r 94c9dd5ca9b4 -r 292258f86fdf a
|
2010-09-26 22:41:32 +04:00
|
|
|
--- a/a Thu Jan 01 00:00:00 1970 +0000
|
|
|
|
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
|
|
|
|
@@ -1,1 +0,0 @@
|
|
|
|
-a
|
|
|
|
|
2015-05-15 08:30:34 +03:00
|
|
|
changeset: 2:94c9dd5ca9b4
|
|
|
|
user: test
|
|
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
|
|
summary: Added tag a-tag for changeset 5ed941583260
|
|
|
|
|
|
|
|
diff -r 5ed941583260 -r 94c9dd5ca9b4 .hgtags
|
|
|
|
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
|
|
|
|
+++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
|
|
|
|
@@ -0,0 +1,1 @@
|
|
|
|
+5ed941583260248620985524192fdc382ef57c36 a-tag
|
|
|
|
|
2010-09-26 22:41:32 +04:00
|
|
|
changeset: 1:5ed941583260
|
2015-05-15 08:30:34 +03:00
|
|
|
bookmark: a-bookmark
|
|
|
|
tag: a-tag
|
2010-09-26 22:41:32 +04:00
|
|
|
user: test
|
|
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
|
|
summary: first a
|
|
|
|
|
|
|
|
diff -r 6563da9dcf87 -r 5ed941583260 a
|
|
|
|
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
|
|
|
|
+++ b/a Thu Jan 01 00:00:00 1970 +0000
|
|
|
|
@@ -0,0 +1,1 @@
|
|
|
|
+a
|
|
|
|
|
|
|
|
changeset: 0:6563da9dcf87
|
|
|
|
user: test
|
|
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
|
|
summary: b
|
|
|
|
|
|
|
|
diff -r 000000000000 -r 6563da9dcf87 b
|
|
|
|
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
|
|
|
|
+++ b/b Thu Jan 01 00:00:00 1970 +0000
|
|
|
|
@@ -0,0 +1,1 @@
|
|
|
|
+b
|
|
|
|
|
|
|
|
$ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log
|
|
|
|
$ cat hg.pid >> $DAEMON_PIDS
|
|
|
|
|
|
|
|
tip - two revisions
|
|
|
|
|
2015-06-08 22:44:30 +03:00
|
|
|
$ (get-with-headers.py localhost:$HGPORT 'log/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 history</title>
|
|
|
|
<link rel="alternate" type="application/atom+xml"
|
|
|
|
href="/atom-log/tip/a" title="Atom feed for test:a" />
|
|
|
|
<link rel="alternate" type="application/rss+xml"
|
|
|
|
href="/rss-log/tip/a" title="RSS feed for test:a" />
|
|
|
|
</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>
|
|
|
|
<li><a href="/diff/tip/a">diff</a></li>
|
|
|
|
<li><a href="/comparison/tip/a">comparison</a></li>
|
|
|
|
<li><a href="/annotate/tip/a">annotate</a></li>
|
2010-09-26 22:41:32 +04:00
|
|
|
<li class="active">file log</li>
|
2015-06-16 11:07:39 +03:00
|
|
|
<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>
|
2012-12-04 03:41:29 +04:00
|
|
|
<div class="atom-logo">
|
2015-12-28 18:48:03 +03:00
|
|
|
<a href="/atom-log/tip/a" title="subscribe to atom feed">
|
2015-01-10 12:54:24 +03:00
|
|
|
<img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed" />
|
|
|
|
</a>
|
2012-12-04 03:41:29 +04:00
|
|
|
</div>
|
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-11-13 13:31:58 +03:00
|
|
|
<h3>
|
|
|
|
log a @ 4:<a href="/rev/3f41bc784e7e">3f41bc784e7e</a>
|
|
|
|
<span class="branchname">a-branch</span>
|
|
|
|
</h3>
|
2010-09-26 22:41:32 +04:00
|
|
|
|
|
|
|
<form class="search" action="/log">
|
|
|
|
|
|
|
|
<p><input name="rev" id="search1" type="text" size="30" /></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="navigate">
|
2015-06-16 11:07:39 +03:00
|
|
|
<a href="/log/tip/a?revcount=30">less</a>
|
|
|
|
<a href="/log/tip/a?revcount=120">more</a>
|
2010-09-26 22:41:32 +04:00
|
|
|
| <a href="/log/5ed941583260/a">(0)</a> <a href="/log/tip/a">tip</a> </div>
|
|
|
|
|
|
|
|
<table class="bigtable">
|
2015-02-06 10:52:55 +03:00
|
|
|
<thead>
|
2010-09-26 22:41:32 +04:00
|
|
|
<tr>
|
|
|
|
<th class="age">age</th>
|
|
|
|
<th class="author">author</th>
|
|
|
|
<th class="description">description</th>
|
|
|
|
</tr>
|
2015-02-06 10:52:55 +03:00
|
|
|
</thead>
|
2013-07-13 18:03:35 +04:00
|
|
|
<tbody class="stripes2">
|
|
|
|
<tr>
|
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="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
|
2010-09-26 22:41:32 +04:00
|
|
|
<td class="author">test</td>
|
2015-05-14 21:07:43 +03:00
|
|
|
<td class="description">
|
2015-05-15 08:30:34 +03:00
|
|
|
<a href="/rev/3f41bc784e7e">second a</a>
|
|
|
|
<span class="branchname">a-branch</span>
|
2015-05-14 21:07:43 +03:00
|
|
|
</td>
|
2010-09-26 22:41:32 +04:00
|
|
|
</tr>
|
2013-07-13 18:03:35 +04:00
|
|
|
<tr>
|
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="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
|
2010-09-26 22:41:32 +04:00
|
|
|
<td class="author">test</td>
|
2015-05-14 21:07:43 +03:00
|
|
|
<td class="description">
|
|
|
|
<a href="/rev/5ed941583260">first a</a>
|
2015-05-15 07:19:51 +03:00
|
|
|
<span class="tag">a-tag</span> <span class="tag">a-bookmark</span>
|
2015-05-14 21:07:43 +03:00
|
|
|
</td>
|
2010-09-26 22:41:32 +04:00
|
|
|
</tr>
|
|
|
|
|
2013-07-13 18:03:35 +04:00
|
|
|
</tbody>
|
2010-09-26 22:41:32 +04:00
|
|
|
</table>
|
|
|
|
|
|
|
|
<div class="navigate">
|
2015-06-16 11:07:39 +03:00
|
|
|
<a href="/log/tip/a?revcount=30">less</a>
|
|
|
|
<a href="/log/tip/a?revcount=120">more</a>
|
2010-09-26 22:41:32 +04:00
|
|
|
| <a href="/log/5ed941583260/a">(0)</a> <a href="/log/tip/a">tip</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2011-04-28 19:02:39 +04:00
|
|
|
<script type="text/javascript">process_dates()</script>
|
2010-09-26 22:41:32 +04:00
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|
|
|
|
|
|
|
|
second version - two revisions
|
|
|
|
|
2015-06-08 22:44:30 +03:00
|
|
|
$ (get-with-headers.py localhost:$HGPORT 'log/4/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 history</title>
|
|
|
|
<link rel="alternate" type="application/atom+xml"
|
|
|
|
href="/atom-log/tip/a" title="Atom feed for test:a" />
|
|
|
|
<link rel="alternate" type="application/rss+xml"
|
|
|
|
href="/rss-log/tip/a" title="RSS feed for test:a" />
|
|
|
|
</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/4">log</a></li>
|
|
|
|
<li><a href="/graph/4">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/4">changeset</a></li>
|
|
|
|
<li><a href="/file/4">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/4/a">file</a></li>
|
|
|
|
<li><a href="/diff/4/a">diff</a></li>
|
|
|
|
<li><a href="/comparison/4/a">comparison</a></li>
|
|
|
|
<li><a href="/annotate/4/a">annotate</a></li>
|
2010-09-26 22:41:32 +04:00
|
|
|
<li class="active">file log</li>
|
2015-06-16 11:07:39 +03:00
|
|
|
<li><a href="/raw-file/4/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>
|
2012-12-04 03:41:29 +04:00
|
|
|
<div class="atom-logo">
|
2015-12-28 18:48:03 +03:00
|
|
|
<a href="/atom-log/tip/a" title="subscribe to atom feed">
|
2015-01-10 12:54:24 +03:00
|
|
|
<img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed" />
|
|
|
|
</a>
|
2012-12-04 03:41:29 +04:00
|
|
|
</div>
|
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-11-13 13:31:58 +03:00
|
|
|
<h3>
|
|
|
|
log a @ 4:<a href="/rev/3f41bc784e7e">3f41bc784e7e</a>
|
|
|
|
<span class="branchname">a-branch</span>
|
|
|
|
</h3>
|
2010-09-26 22:41:32 +04:00
|
|
|
|
|
|
|
<form class="search" action="/log">
|
|
|
|
|
|
|
|
<p><input name="rev" id="search1" type="text" size="30" /></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="navigate">
|
2015-06-16 11:07:39 +03:00
|
|
|
<a href="/log/4/a?revcount=30">less</a>
|
|
|
|
<a href="/log/4/a?revcount=120">more</a>
|
2010-09-26 22:41:32 +04:00
|
|
|
| <a href="/log/5ed941583260/a">(0)</a> <a href="/log/tip/a">tip</a> </div>
|
|
|
|
|
|
|
|
<table class="bigtable">
|
2015-02-06 10:52:55 +03:00
|
|
|
<thead>
|
2010-09-26 22:41:32 +04:00
|
|
|
<tr>
|
|
|
|
<th class="age">age</th>
|
|
|
|
<th class="author">author</th>
|
|
|
|
<th class="description">description</th>
|
|
|
|
</tr>
|
2015-02-06 10:52:55 +03:00
|
|
|
</thead>
|
2013-07-13 18:03:35 +04:00
|
|
|
<tbody class="stripes2">
|
|
|
|
<tr>
|
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="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
|
2010-09-26 22:41:32 +04:00
|
|
|
<td class="author">test</td>
|
2015-05-14 21:07:43 +03:00
|
|
|
<td class="description">
|
2015-05-15 08:30:34 +03:00
|
|
|
<a href="/rev/3f41bc784e7e">second a</a>
|
|
|
|
<span class="branchname">a-branch</span>
|
2015-05-14 21:07:43 +03:00
|
|
|
</td>
|
2010-09-26 22:41:32 +04:00
|
|
|
</tr>
|
2013-07-13 18:03:35 +04:00
|
|
|
<tr>
|
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="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
|
2010-09-26 22:41:32 +04:00
|
|
|
<td class="author">test</td>
|
2015-05-14 21:07:43 +03:00
|
|
|
<td class="description">
|
|
|
|
<a href="/rev/5ed941583260">first a</a>
|
2015-05-15 07:19:51 +03:00
|
|
|
<span class="tag">a-tag</span> <span class="tag">a-bookmark</span>
|
2015-05-14 21:07:43 +03:00
|
|
|
</td>
|
2010-09-26 22:41:32 +04:00
|
|
|
</tr>
|
|
|
|
|
2013-07-13 18:03:35 +04:00
|
|
|
</tbody>
|
2010-09-26 22:41:32 +04:00
|
|
|
</table>
|
|
|
|
|
|
|
|
<div class="navigate">
|
2015-06-16 11:07:39 +03:00
|
|
|
<a href="/log/4/a?revcount=30">less</a>
|
|
|
|
<a href="/log/4/a?revcount=120">more</a>
|
2010-09-26 22:41:32 +04:00
|
|
|
| <a href="/log/5ed941583260/a">(0)</a> <a href="/log/tip/a">tip</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2011-04-28 19:02:39 +04:00
|
|
|
<script type="text/javascript">process_dates()</script>
|
2010-09-26 22:41:32 +04:00
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|
|
|
|
|
|
|
|
first deleted - one revision
|
|
|
|
|
2015-06-08 22:44:30 +03:00
|
|
|
$ (get-with-headers.py localhost:$HGPORT 'log/3/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 history</title>
|
|
|
|
<link rel="alternate" type="application/atom+xml"
|
|
|
|
href="/atom-log/tip/a" title="Atom feed for test:a" />
|
|
|
|
<link rel="alternate" type="application/rss+xml"
|
|
|
|
href="/rss-log/tip/a" title="RSS feed for test:a" />
|
|
|
|
</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/3">log</a></li>
|
|
|
|
<li><a href="/graph/3">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/3">changeset</a></li>
|
|
|
|
<li><a href="/file/3">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/3/a">file</a></li>
|
|
|
|
<li><a href="/diff/3/a">diff</a></li>
|
|
|
|
<li><a href="/comparison/3/a">comparison</a></li>
|
|
|
|
<li><a href="/annotate/3/a">annotate</a></li>
|
2010-09-26 22:41:32 +04:00
|
|
|
<li class="active">file log</li>
|
2015-06-16 11:07:39 +03:00
|
|
|
<li><a href="/raw-file/3/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>
|
2012-12-04 03:41:29 +04:00
|
|
|
<div class="atom-logo">
|
2015-12-28 18:48:03 +03:00
|
|
|
<a href="/atom-log/tip/a" title="subscribe to atom feed">
|
2015-01-10 12:54:24 +03:00
|
|
|
<img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed" />
|
|
|
|
</a>
|
2012-12-04 03:41:29 +04:00
|
|
|
</div>
|
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-11-13 13:31:58 +03:00
|
|
|
<h3>
|
|
|
|
log a @ 1:<a href="/rev/5ed941583260">5ed941583260</a>
|
|
|
|
<span class="tag">a-tag</span> <span class="tag">a-bookmark</span>
|
|
|
|
</h3>
|
2010-09-26 22:41:32 +04:00
|
|
|
|
|
|
|
<form class="search" action="/log">
|
|
|
|
|
|
|
|
<p><input name="rev" id="search1" type="text" size="30" /></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="navigate">
|
2015-06-16 11:07:39 +03:00
|
|
|
<a href="/log/3/a?revcount=30">less</a>
|
|
|
|
<a href="/log/3/a?revcount=120">more</a>
|
2010-09-26 22:41:32 +04:00
|
|
|
| <a href="/log/5ed941583260/a">(0)</a> <a href="/log/tip/a">tip</a> </div>
|
|
|
|
|
|
|
|
<table class="bigtable">
|
2015-02-06 10:52:55 +03:00
|
|
|
<thead>
|
2010-09-26 22:41:32 +04:00
|
|
|
<tr>
|
|
|
|
<th class="age">age</th>
|
|
|
|
<th class="author">author</th>
|
|
|
|
<th class="description">description</th>
|
|
|
|
</tr>
|
2015-02-06 10:52:55 +03:00
|
|
|
</thead>
|
2013-07-13 18:03:35 +04:00
|
|
|
<tbody class="stripes2">
|
|
|
|
<tr>
|
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="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
|
2010-09-26 22:41:32 +04:00
|
|
|
<td class="author">test</td>
|
2015-05-14 21:07:43 +03:00
|
|
|
<td class="description">
|
|
|
|
<a href="/rev/5ed941583260">first a</a>
|
2015-05-15 07:19:51 +03:00
|
|
|
<span class="tag">a-tag</span> <span class="tag">a-bookmark</span>
|
2015-05-14 21:07:43 +03:00
|
|
|
</td>
|
2010-09-26 22:41:32 +04:00
|
|
|
</tr>
|
|
|
|
|
2013-07-13 18:03:35 +04:00
|
|
|
</tbody>
|
2010-09-26 22:41:32 +04:00
|
|
|
</table>
|
|
|
|
|
|
|
|
<div class="navigate">
|
2015-06-16 11:07:39 +03:00
|
|
|
<a href="/log/3/a?revcount=30">less</a>
|
|
|
|
<a href="/log/3/a?revcount=120">more</a>
|
2010-09-26 22:41:32 +04:00
|
|
|
| <a href="/log/5ed941583260/a">(0)</a> <a href="/log/tip/a">tip</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2011-04-28 19:02:39 +04:00
|
|
|
<script type="text/javascript">process_dates()</script>
|
2010-09-26 22:41:32 +04:00
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|
|
|
|
|
|
|
|
first version - one revision
|
|
|
|
|
2015-06-08 22:44:30 +03:00
|
|
|
$ (get-with-headers.py localhost:$HGPORT 'log/1/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 history</title>
|
|
|
|
<link rel="alternate" type="application/atom+xml"
|
|
|
|
href="/atom-log/tip/a" title="Atom feed for test:a" />
|
|
|
|
<link rel="alternate" type="application/rss+xml"
|
|
|
|
href="/rss-log/tip/a" title="RSS feed for test:a" />
|
|
|
|
</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/1">log</a></li>
|
|
|
|
<li><a href="/graph/1">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/1">changeset</a></li>
|
|
|
|
<li><a href="/file/1">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/1/a">file</a></li>
|
|
|
|
<li><a href="/diff/1/a">diff</a></li>
|
|
|
|
<li><a href="/comparison/1/a">comparison</a></li>
|
|
|
|
<li><a href="/annotate/1/a">annotate</a></li>
|
2010-09-26 22:41:32 +04:00
|
|
|
<li class="active">file log</li>
|
2015-06-16 11:07:39 +03:00
|
|
|
<li><a href="/raw-file/1/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>
|
2012-12-04 03:41:29 +04:00
|
|
|
<div class="atom-logo">
|
2015-12-28 18:48:03 +03:00
|
|
|
<a href="/atom-log/tip/a" title="subscribe to atom feed">
|
2015-01-10 12:54:24 +03:00
|
|
|
<img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed" />
|
|
|
|
</a>
|
2012-12-04 03:41:29 +04:00
|
|
|
</div>
|
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-11-13 13:31:58 +03:00
|
|
|
<h3>
|
|
|
|
log a @ 1:<a href="/rev/5ed941583260">5ed941583260</a>
|
|
|
|
<span class="tag">a-tag</span> <span class="tag">a-bookmark</span>
|
|
|
|
</h3>
|
2010-09-26 22:41:32 +04:00
|
|
|
|
|
|
|
<form class="search" action="/log">
|
|
|
|
|
|
|
|
<p><input name="rev" id="search1" type="text" size="30" /></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="navigate">
|
2015-06-16 11:07:39 +03:00
|
|
|
<a href="/log/1/a?revcount=30">less</a>
|
|
|
|
<a href="/log/1/a?revcount=120">more</a>
|
2010-09-26 22:41:32 +04:00
|
|
|
| <a href="/log/5ed941583260/a">(0)</a> <a href="/log/tip/a">tip</a> </div>
|
|
|
|
|
|
|
|
<table class="bigtable">
|
2015-02-06 10:52:55 +03:00
|
|
|
<thead>
|
2010-09-26 22:41:32 +04:00
|
|
|
<tr>
|
|
|
|
<th class="age">age</th>
|
|
|
|
<th class="author">author</th>
|
|
|
|
<th class="description">description</th>
|
|
|
|
</tr>
|
2015-02-06 10:52:55 +03:00
|
|
|
</thead>
|
2013-07-13 18:03:35 +04:00
|
|
|
<tbody class="stripes2">
|
|
|
|
<tr>
|
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="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
|
2010-09-26 22:41:32 +04:00
|
|
|
<td class="author">test</td>
|
2015-05-14 21:07:43 +03:00
|
|
|
<td class="description">
|
|
|
|
<a href="/rev/5ed941583260">first a</a>
|
2015-05-15 07:19:51 +03:00
|
|
|
<span class="tag">a-tag</span> <span class="tag">a-bookmark</span>
|
2015-05-14 21:07:43 +03:00
|
|
|
</td>
|
2010-09-26 22:41:32 +04:00
|
|
|
</tr>
|
|
|
|
|
2013-07-13 18:03:35 +04:00
|
|
|
</tbody>
|
2010-09-26 22:41:32 +04:00
|
|
|
</table>
|
|
|
|
|
|
|
|
<div class="navigate">
|
2015-06-16 11:07:39 +03:00
|
|
|
<a href="/log/1/a?revcount=30">less</a>
|
|
|
|
<a href="/log/1/a?revcount=120">more</a>
|
2010-09-26 22:41:32 +04:00
|
|
|
| <a href="/log/5ed941583260/a">(0)</a> <a href="/log/tip/a">tip</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2011-04-28 19:02:39 +04:00
|
|
|
<script type="text/javascript">process_dates()</script>
|
2010-09-26 22:41:32 +04:00
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|
|
|
|
|
|
|
|
before addition - error
|
|
|
|
|
2015-06-08 22:44:30 +03:00
|
|
|
$ (get-with-headers.py localhost:$HGPORT 'log/0/a')
|
2010-09-26 22:41:32 +04:00
|
|
|
404 Not Found
|
|
|
|
|
|
|
|
<!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: error</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" width=75 height=90 border=0 alt="mercurial" /></a>
|
|
|
|
</div>
|
|
|
|
<ul>
|
|
|
|
<li><a href="/shortlog">log</a></li>
|
|
|
|
<li><a href="/graph">graph</a></li>
|
|
|
|
<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>
|
2012-07-30 13:33:27 +04:00
|
|
|
</ul>
|
|
|
|
<ul>
|
2010-10-10 02:58:48 +04:00
|
|
|
<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>
|
2010-09-26 22:41:32 +04:00
|
|
|
<h3>error</h3>
|
|
|
|
|
|
|
|
<form class="search" action="/log">
|
|
|
|
|
|
|
|
<p><input name="rev" id="search1" type="text" size="30"></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">
|
|
|
|
<p>
|
|
|
|
An error occurred while processing your request:
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
a@6563da9dcf87: not found in manifest
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2011-04-28 19:02:39 +04:00
|
|
|
<script type="text/javascript">process_dates()</script>
|
2010-09-26 22:41:32 +04:00
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|
|
|
|
[1]
|
|
|
|
|
|
|
|
should show base link, use spartan because it shows it
|
|
|
|
|
2015-06-08 22:44:30 +03:00
|
|
|
$ (get-with-headers.py localhost:$HGPORT 'log/tip/c?style=spartan')
|
2010-09-26 22:41:32 +04:00
|
|
|
200 Script output follows
|
|
|
|
|
2014-01-16 18:23:31 +04:00
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
2010-09-26 22:41:32 +04:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<link rel="icon" href="/static/hgicon.png" type="image/png">
|
|
|
|
<meta name="robots" content="index, nofollow" />
|
|
|
|
<link rel="stylesheet" href="/static/style.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: c history</title>
|
|
|
|
<link rel="alternate" type="application/atom+xml"
|
|
|
|
href="/atom-log/tip/c" title="Atom feed for test:c">
|
|
|
|
<link rel="alternate" type="application/rss+xml"
|
|
|
|
href="/rss-log/tip/c" title="RSS feed for test:c">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<div class="buttons">
|
|
|
|
<a href="/log?style=spartan">changelog</a>
|
|
|
|
<a href="/shortlog?style=spartan">shortlog</a>
|
|
|
|
<a href="/graph?style=spartan">graph</a>
|
|
|
|
<a href="/tags?style=spartan">tags</a>
|
|
|
|
<a href="/branches?style=spartan">branches</a>
|
2015-06-16 06:52:10 +03:00
|
|
|
<a href="/file/tip/c?style=spartan">file</a>
|
|
|
|
<a href="/annotate/tip/c?style=spartan">annotate</a>
|
2010-10-10 02:58:48 +04:00
|
|
|
<a href="/help?style=spartan">help</a>
|
2010-09-26 22:41:32 +04:00
|
|
|
<a type="application/rss+xml" href="/rss-log/tip/c">rss</a>
|
|
|
|
<a type="application/atom+xml" href="/atom-log/tip/c" title="Atom feed for test:c">atom</a>
|
|
|
|
</div>
|
|
|
|
|
2013-01-09 04:16:29 +04:00
|
|
|
<h2><a href="/">Mercurial</a> / c revision history</h2>
|
2010-09-26 22:41:32 +04:00
|
|
|
|
2015-05-15 08:30:34 +03:00
|
|
|
<p>navigate: <small class="navigate"><a href="/log/c9637d3cc8ef/c?style=spartan">(0)</a> <a href="/log/tip/c?style=spartan">tip</a> </small></p>
|
2010-09-26 22:41:32 +04:00
|
|
|
|
|
|
|
<table class="logEntry parity0">
|
|
|
|
<tr>
|
2014-04-17 04:36:09 +04:00
|
|
|
<th class="label"><span class="age">Thu, 01 Jan 1970 00:00:00 +0000</span>:</th>
|
2015-05-15 08:30:34 +03:00
|
|
|
<th class="firstline"><a href="/rev/46c1a66bd8fc?style=spartan">change c</a></th>
|
2010-09-26 22:41:32 +04:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2015-01-10 12:44:54 +03:00
|
|
|
<th class="revision">revision 1:</th>
|
2010-09-26 22:41:32 +04:00
|
|
|
<td class="node">
|
2015-05-15 08:30:34 +03:00
|
|
|
<a href="/file/46c1a66bd8fc/c?style=spartan">46c1a66bd8fc</a>
|
|
|
|
<a href="/diff/46c1a66bd8fc/c?style=spartan">(diff)</a>
|
|
|
|
<a href="/annotate/46c1a66bd8fc/c?style=spartan">(annotate)</a>
|
2010-09-26 22:41:32 +04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<th class="author">author:</th>
|
|
|
|
<td class="author">test</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th class="date">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">Thu, 01 Jan 1970 00:00:00 +0000</td>
|
2010-09-26 22:41:32 +04:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<table class="logEntry parity1">
|
|
|
|
<tr>
|
2014-04-17 04:36:09 +04:00
|
|
|
<th class="label"><span class="age">Thu, 01 Jan 1970 00:00:00 +0000</span>:</th>
|
2015-05-15 08:30:34 +03:00
|
|
|
<th class="firstline"><a href="/rev/c9637d3cc8ef?style=spartan">mv b</a></th>
|
2010-09-26 22:41:32 +04:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2015-01-10 12:44:54 +03:00
|
|
|
<th class="revision">revision 0:</th>
|
2010-09-26 22:41:32 +04:00
|
|
|
<td class="node">
|
2015-05-15 08:30:34 +03:00
|
|
|
<a href="/file/c9637d3cc8ef/c?style=spartan">c9637d3cc8ef</a>
|
|
|
|
<a href="/diff/c9637d3cc8ef/c?style=spartan">(diff)</a>
|
|
|
|
<a href="/annotate/c9637d3cc8ef/c?style=spartan">(annotate)</a>
|
2010-09-26 22:41:32 +04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<th>base:</th>
|
|
|
|
<td>
|
|
|
|
<a href="/file/1e88685f5dde/b?style=spartan">
|
|
|
|
b@1e88685f5dde
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th class="author">author:</th>
|
|
|
|
<td class="author">test</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th class="date">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">Thu, 01 Jan 1970 00:00:00 +0000</td>
|
2010-09-26 22:41:32 +04:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-04-28 19:02:39 +04:00
|
|
|
<script type="text/javascript">process_dates()</script>
|
2010-09-26 22:41:32 +04:00
|
|
|
|
|
|
|
<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" width=75 height=90 border=0 alt="mercurial"></a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|
|
|
|
|
2011-03-07 00:03:30 +03:00
|
|
|
rss log
|
|
|
|
|
2015-06-08 22:44:30 +03:00
|
|
|
$ (get-with-headers.py localhost:$HGPORT 'rss-log/tip/a')
|
2011-03-07 00:03:30 +03:00
|
|
|
200 Script output follows
|
|
|
|
|
|
|
|
<?xml version="1.0" encoding="ascii"?>
|
|
|
|
<rss version="2.0">
|
|
|
|
<channel>
|
|
|
|
<link>http://*:$HGPORT/</link> (glob)
|
|
|
|
<language>en-us</language>
|
|
|
|
|
|
|
|
<title>test: a history</title>
|
|
|
|
<description>a revision history</description>
|
|
|
|
<item>
|
|
|
|
<title>second a</title>
|
2015-05-15 08:30:34 +03:00
|
|
|
<link>http://*:$HGPORT/log3f41bc784e7e/a</link> (glob)
|
2011-03-07 00:03:30 +03:00
|
|
|
<description><![CDATA[second a]]></description>
|
|
|
|
<author>test</author>
|
|
|
|
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<title>first a</title>
|
|
|
|
<link>http://*:$HGPORT/log5ed941583260/a</link> (glob)
|
|
|
|
<description><![CDATA[first a]]></description>
|
|
|
|
<author>test</author>
|
|
|
|
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
|
|
|
|
</item>
|
|
|
|
|
|
|
|
</channel>
|
|
|
|
</rss>
|
|
|
|
|
|
|
|
atom log
|
|
|
|
|
2015-06-08 22:44:30 +03:00
|
|
|
$ (get-with-headers.py localhost:$HGPORT 'atom-log/tip/a')
|
2011-03-07 00:03:30 +03:00
|
|
|
200 Script output follows
|
|
|
|
|
|
|
|
<?xml version="1.0" encoding="ascii"?>
|
|
|
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
|
|
|
<id>http://*:$HGPORT/atom-log/tip/a</id> (glob)
|
|
|
|
<link rel="self" href="http://*:$HGPORT/atom-log/tip/a"/> (glob)
|
|
|
|
<title>test: a history</title>
|
|
|
|
<updated>1970-01-01T00:00:00+00:00</updated>
|
|
|
|
|
|
|
|
<entry>
|
2015-05-15 08:30:34 +03:00
|
|
|
<title>[a-branch] second a</title>
|
|
|
|
<id>http://*:$HGPORT/#changeset-3f41bc784e7e73035c6d47112c6cc7efb673adf8</id> (glob)
|
|
|
|
<link href="http://*:$HGPORT/rev/3f41bc784e7e"/> (glob)
|
2011-03-07 00:03:30 +03:00
|
|
|
<author>
|
|
|
|
<name>test</name>
|
|
|
|
<email>test</email>
|
|
|
|
</author>
|
|
|
|
<updated>1970-01-01T00:00:00+00:00</updated>
|
|
|
|
<published>1970-01-01T00:00:00+00:00</published>
|
|
|
|
<content type="xhtml">
|
2016-06-29 17:48:32 +03:00
|
|
|
<table xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">changeset</th>
|
|
|
|
<td>3f41bc784e7e</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">branch</th>
|
|
|
|
<td>a-branch</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">bookmark</th>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">tag</th>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">user</th>
|
|
|
|
<td>test</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;vertical-align:top;">description</th>
|
|
|
|
<td>second a</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;vertical-align:top;">files</th>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2011-03-07 00:03:30 +03:00
|
|
|
</content>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<title>first a</title>
|
|
|
|
<id>http://*:$HGPORT/#changeset-5ed941583260248620985524192fdc382ef57c36</id> (glob)
|
|
|
|
<link href="http://*:$HGPORT/rev/5ed941583260"/> (glob)
|
|
|
|
<author>
|
|
|
|
<name>test</name>
|
|
|
|
<email>test</email>
|
|
|
|
</author>
|
|
|
|
<updated>1970-01-01T00:00:00+00:00</updated>
|
|
|
|
<published>1970-01-01T00:00:00+00:00</published>
|
|
|
|
<content type="xhtml">
|
2016-06-29 17:48:32 +03:00
|
|
|
<table xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">changeset</th>
|
|
|
|
<td>5ed941583260</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">branch</th>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">bookmark</th>
|
|
|
|
<td>a-bookmark</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">tag</th>
|
|
|
|
<td>a-tag</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">user</th>
|
|
|
|
<td>test</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;vertical-align:top;">description</th>
|
|
|
|
<td>first a</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;vertical-align:top;">files</th>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2011-03-07 00:03:30 +03:00
|
|
|
</content>
|
|
|
|
</entry>
|
|
|
|
|
|
|
|
</feed>
|
|
|
|
|
2010-09-26 22:41:32 +04:00
|
|
|
errors
|
|
|
|
|
|
|
|
$ cat errors.log
|
2012-06-11 03:40:51 +04:00
|
|
|
|
|
|
|
$ cd ..
|