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
|
|
|
An attempt at more fully testing the hgweb web interface.
|
|
|
|
The following things are tested elsewhere and are therefore omitted:
|
|
|
|
- archive, tested in test-archive
|
|
|
|
- unbundle, tested in test-push-http
|
|
|
|
- changegroupsubset, tested in test-pull
|
|
|
|
|
2015-10-20 13:25:51 +03:00
|
|
|
$ cat << EOF >> $HGRCPATH
|
|
|
|
> [format]
|
|
|
|
> usegeneraldelta=yes
|
|
|
|
> EOF
|
|
|
|
|
2010-09-26 22:41:32 +04:00
|
|
|
Set up the repo
|
|
|
|
|
|
|
|
$ hg init test
|
|
|
|
$ cd test
|
|
|
|
$ mkdir da
|
|
|
|
$ echo foo > da/foo
|
|
|
|
$ echo foo > foo
|
|
|
|
$ hg ci -Ambase
|
|
|
|
adding da/foo
|
|
|
|
adding foo
|
|
|
|
$ hg tag 1.0
|
2011-03-12 13:19:44 +03:00
|
|
|
$ hg bookmark something
|
2011-04-10 05:01:37 +04:00
|
|
|
$ hg bookmark -r0 anotherthing
|
2010-09-26 22:41:32 +04:00
|
|
|
$ echo another > foo
|
|
|
|
$ hg branch stable
|
|
|
|
marked working directory as branch stable
|
2011-12-09 00:32:44 +04:00
|
|
|
(branches are permanent and global, did you want a bookmark?)
|
2010-09-26 22:41:32 +04:00
|
|
|
$ hg ci -Ambranch
|
2012-01-22 16:35:26 +04:00
|
|
|
$ hg branch unstable
|
|
|
|
marked working directory as branch unstable
|
2012-10-15 20:43:34 +04:00
|
|
|
>>> open('msg', 'wb').write('branch commit with null character: \0\n')
|
|
|
|
$ hg ci -l msg
|
|
|
|
$ rm msg
|
|
|
|
|
2014-05-17 13:09:46 +04:00
|
|
|
$ cat > .hg/hgrc <<EOF
|
|
|
|
> [graph]
|
|
|
|
> default.width = 3
|
|
|
|
> stable.width = 3
|
|
|
|
> stable.color = FF0000
|
2014-05-17 13:10:23 +04:00
|
|
|
> [websub]
|
|
|
|
> append = s|(.*)|\1(websub)|
|
2014-05-17 13:09:46 +04:00
|
|
|
> EOF
|
|
|
|
|
2018-02-08 02:18:29 +03:00
|
|
|
$ hg serve --config server.uncompressed=False -n test -p 0 --port-file $TESTTMP/.port -d --pid-file=hg.pid -E errors.log
|
|
|
|
$ HGPORT=`cat $TESTTMP/.port`
|
2010-09-26 22:41:32 +04:00
|
|
|
$ cat hg.pid >> $DAEMON_PIDS
|
2012-07-30 01:16:20 +04:00
|
|
|
$ hg log -G --template '{rev}:{node|short} {desc}\n'
|
2012-10-15 20:43:34 +04:00
|
|
|
@ 3:cad8025a2e87 branch commit with null character: \x00 (esc)
|
2012-07-30 01:16:20 +04:00
|
|
|
|
|
|
|
|
o 2:1d22e65f027e branch
|
|
|
|
|
|
|
|
|
o 1:a4f92ed23982 Added tag 1.0 for changeset 2ef0ac749a14
|
|
|
|
|
|
|
|
|
o 0:2ef0ac749a14 base
|
|
|
|
|
2010-09-26 22:41:32 +04:00
|
|
|
|
|
|
|
Logs and changes
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'log/?style=atom'
|
2010-09-26 22:41:32 +04:00
|
|
|
200 Script output follows
|
|
|
|
|
|
|
|
<?xml version="1.0" encoding="ascii"?>
|
|
|
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
|
|
|
<!-- Changelog -->
|
2010-10-09 07:36:11 +04:00
|
|
|
<id>http://*:$HGPORT/</id> (glob)
|
|
|
|
<link rel="self" href="http://*:$HGPORT/atom-log"/> (glob)
|
|
|
|
<link rel="alternate" href="http://*:$HGPORT/"/> (glob)
|
2010-09-26 22:41:32 +04:00
|
|
|
<title>test Changelog</title>
|
|
|
|
<updated>1970-01-01T00:00:00+00:00</updated>
|
|
|
|
|
2012-01-22 16:35:26 +04:00
|
|
|
<entry>
|
2014-04-16 20:31:37 +04:00
|
|
|
<title>[unstable] branch commit with null character: </title>
|
2012-10-15 20:43:34 +04:00
|
|
|
<id>http://*:$HGPORT/#changeset-cad8025a2e87f88c06259790adfa15acb4080123</id> (glob)
|
|
|
|
<link href="http://*:$HGPORT/rev/cad8025a2e87"/> (glob)
|
2012-01-22 16:35:26 +04: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>cad8025a2e87</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">branch</th>
|
|
|
|
<td>unstable</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">bookmark</th>
|
|
|
|
<td>something</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">tag</th>
|
|
|
|
<td>tip</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>branch commit with null character: (websub)</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;vertical-align:top;">files</th>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2012-01-22 16:35:26 +04:00
|
|
|
</content>
|
|
|
|
</entry>
|
2010-09-26 22:41:32 +04:00
|
|
|
<entry>
|
2014-04-16 20:31:37 +04:00
|
|
|
<title>[stable] branch</title>
|
2010-10-09 07:36:11 +04:00
|
|
|
<id>http://*:$HGPORT/#changeset-1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe</id> (glob)
|
|
|
|
<link href="http://*:$HGPORT/rev/1d22e65f027e"/> (glob)
|
2010-09-26 22:41:32 +04: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>1d22e65f027e</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">branch</th>
|
|
|
|
<td>stable</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>branch(websub)</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;vertical-align:top;">files</th>
|
|
|
|
<td>foo<br /></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2010-09-26 22:41:32 +04:00
|
|
|
</content>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
2014-04-16 20:31:37 +04:00
|
|
|
<title>[default] Added tag 1.0 for changeset 2ef0ac749a14</title>
|
2010-10-09 07:36:11 +04:00
|
|
|
<id>http://*:$HGPORT/#changeset-a4f92ed23982be056b9852de5dfe873eaac7f0de</id> (glob)
|
|
|
|
<link href="http://*:$HGPORT/rev/a4f92ed23982"/> (glob)
|
2010-09-26 22:41:32 +04: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>a4f92ed23982</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">branch</th>
|
|
|
|
<td>default</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>Added tag 1.0 for changeset 2ef0ac749a14(websub)</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;vertical-align:top;">files</th>
|
|
|
|
<td>.hgtags<br /></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2010-09-26 22:41:32 +04:00
|
|
|
</content>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<title>base</title>
|
2010-10-09 07:36:11 +04:00
|
|
|
<id>http://*:$HGPORT/#changeset-2ef0ac749a14e4f57a5a822464a0902c6f7f448f</id> (glob)
|
|
|
|
<link href="http://*:$HGPORT/rev/2ef0ac749a14"/> (glob)
|
2010-09-26 22:41:32 +04: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>2ef0ac749a14</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">branch</th>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">bookmark</th>
|
|
|
|
<td>anotherthing</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">tag</th>
|
|
|
|
<td>1.0</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>base(websub)</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;vertical-align:top;">files</th>
|
|
|
|
<td>da/foo<br />foo<br /></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2010-09-26 22:41:32 +04:00
|
|
|
</content>
|
|
|
|
</entry>
|
|
|
|
|
|
|
|
</feed>
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'log/?style=rss'
|
2014-05-17 13:09:10 +04: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 Changelog</title>
|
|
|
|
<description>test Changelog</description>
|
|
|
|
<item>
|
|
|
|
<title>[unstable] branch commit with null character: </title>
|
|
|
|
<guid isPermaLink="true">http://*:$HGPORT/rev/cad8025a2e87</guid> (glob)
|
2016-06-29 15:19:04 +03:00
|
|
|
<link>http://*:$HGPORT/rev/cad8025a2e87</link> (glob)
|
2014-05-17 13:09:10 +04:00
|
|
|
<description>
|
2016-06-29 15:19:04 +03:00
|
|
|
<![CDATA[
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">changeset</th>
|
|
|
|
<td>cad8025a2e87</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">branch</th>
|
|
|
|
<td>unstable</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">bookmark</th>
|
|
|
|
<td>something</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">tag</th>
|
|
|
|
<td>tip</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;vertical-align:top;">user</th>
|
|
|
|
<td>test</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;vertical-align:top;">description</th>
|
|
|
|
<td>branch commit with null character: (websub)</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;vertical-align:top;">files</th>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
]]>
|
|
|
|
</description>
|
2014-05-17 13:09:10 +04:00
|
|
|
<author>test</author>
|
|
|
|
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<title>[stable] branch</title>
|
|
|
|
<guid isPermaLink="true">http://*:$HGPORT/rev/1d22e65f027e</guid> (glob)
|
2016-06-29 15:19:04 +03:00
|
|
|
<link>http://*:$HGPORT/rev/1d22e65f027e</link> (glob)
|
2014-05-17 13:09:10 +04:00
|
|
|
<description>
|
2016-06-29 15:19:04 +03:00
|
|
|
<![CDATA[
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">changeset</th>
|
|
|
|
<td>1d22e65f027e</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">branch</th>
|
|
|
|
<td>stable</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;vertical-align:top;">user</th>
|
|
|
|
<td>test</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;vertical-align:top;">description</th>
|
|
|
|
<td>branch(websub)</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;vertical-align:top;">files</th>
|
|
|
|
<td>foo<br /></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
]]>
|
|
|
|
</description>
|
2014-05-17 13:09:10 +04:00
|
|
|
<author>test</author>
|
|
|
|
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<title>[default] Added tag 1.0 for changeset 2ef0ac749a14</title>
|
|
|
|
<guid isPermaLink="true">http://*:$HGPORT/rev/a4f92ed23982</guid> (glob)
|
2016-06-29 15:19:04 +03:00
|
|
|
<link>http://*:$HGPORT/rev/a4f92ed23982</link> (glob)
|
2014-05-17 13:09:10 +04:00
|
|
|
<description>
|
2016-06-29 15:19:04 +03:00
|
|
|
<![CDATA[
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">changeset</th>
|
|
|
|
<td>a4f92ed23982</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">branch</th>
|
|
|
|
<td>default</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;vertical-align:top;">user</th>
|
|
|
|
<td>test</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;vertical-align:top;">description</th>
|
|
|
|
<td>Added tag 1.0 for changeset 2ef0ac749a14(websub)</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;vertical-align:top;">files</th>
|
|
|
|
<td>.hgtags<br /></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
]]>
|
|
|
|
</description>
|
2014-05-17 13:09:10 +04:00
|
|
|
<author>test</author>
|
|
|
|
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<title>base</title>
|
|
|
|
<guid isPermaLink="true">http://*:$HGPORT/rev/2ef0ac749a14</guid> (glob)
|
2016-06-29 15:19:04 +03:00
|
|
|
<link>http://*:$HGPORT/rev/2ef0ac749a14</link> (glob)
|
2014-05-17 13:09:10 +04:00
|
|
|
<description>
|
2016-06-29 15:19:04 +03:00
|
|
|
<![CDATA[
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">changeset</th>
|
|
|
|
<td>2ef0ac749a14</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">branch</th>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">bookmark</th>
|
|
|
|
<td>anotherthing</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">tag</th>
|
|
|
|
<td>1.0</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;vertical-align:top;">user</th>
|
|
|
|
<td>test</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;vertical-align:top;">description</th>
|
|
|
|
<td>base(websub)</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;vertical-align:top;">files</th>
|
|
|
|
<td>da/foo<br />foo<br /></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
]]>
|
|
|
|
</description>
|
2014-05-17 13:09:10 +04:00
|
|
|
<author>test</author>
|
|
|
|
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
|
|
|
|
</item>
|
|
|
|
|
|
|
|
</channel>
|
|
|
|
</rss> (no-eol)
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'log/1/?style=atom'
|
2010-09-26 22:41:32 +04:00
|
|
|
200 Script output follows
|
|
|
|
|
|
|
|
<?xml version="1.0" encoding="ascii"?>
|
|
|
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
|
|
|
<!-- Changelog -->
|
2010-10-09 07:36:11 +04:00
|
|
|
<id>http://*:$HGPORT/</id> (glob)
|
|
|
|
<link rel="self" href="http://*:$HGPORT/atom-log"/> (glob)
|
|
|
|
<link rel="alternate" href="http://*:$HGPORT/"/> (glob)
|
2010-09-26 22:41:32 +04:00
|
|
|
<title>test Changelog</title>
|
|
|
|
<updated>1970-01-01T00:00:00+00:00</updated>
|
|
|
|
|
|
|
|
<entry>
|
2014-04-16 20:31:37 +04:00
|
|
|
<title>[default] Added tag 1.0 for changeset 2ef0ac749a14</title>
|
2010-10-09 07:36:11 +04:00
|
|
|
<id>http://*:$HGPORT/#changeset-a4f92ed23982be056b9852de5dfe873eaac7f0de</id> (glob)
|
|
|
|
<link href="http://*:$HGPORT/rev/a4f92ed23982"/> (glob)
|
2010-09-26 22:41:32 +04: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>a4f92ed23982</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">branch</th>
|
|
|
|
<td>default</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>Added tag 1.0 for changeset 2ef0ac749a14(websub)</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;vertical-align:top;">files</th>
|
|
|
|
<td>.hgtags<br /></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2010-09-26 22:41:32 +04:00
|
|
|
</content>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<title>base</title>
|
2010-10-09 07:36:11 +04:00
|
|
|
<id>http://*:$HGPORT/#changeset-2ef0ac749a14e4f57a5a822464a0902c6f7f448f</id> (glob)
|
|
|
|
<link href="http://*:$HGPORT/rev/2ef0ac749a14"/> (glob)
|
2010-09-26 22:41:32 +04: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>2ef0ac749a14</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">branch</th>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">bookmark</th>
|
|
|
|
<td>anotherthing</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">tag</th>
|
|
|
|
<td>1.0</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>base(websub)</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;vertical-align:top;">files</th>
|
|
|
|
<td>da/foo<br />foo<br /></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2010-09-26 22:41:32 +04:00
|
|
|
</content>
|
|
|
|
</entry>
|
|
|
|
|
|
|
|
</feed>
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'log/1/?style=rss'
|
2014-05-17 13:09:10 +04: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 Changelog</title>
|
|
|
|
<description>test Changelog</description>
|
|
|
|
<item>
|
|
|
|
<title>[default] Added tag 1.0 for changeset 2ef0ac749a14</title>
|
|
|
|
<guid isPermaLink="true">http://*:$HGPORT/rev/a4f92ed23982</guid> (glob)
|
2016-06-29 15:19:04 +03:00
|
|
|
<link>http://*:$HGPORT/rev/a4f92ed23982</link> (glob)
|
2014-05-17 13:09:10 +04:00
|
|
|
<description>
|
2016-06-29 15:19:04 +03:00
|
|
|
<![CDATA[
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">changeset</th>
|
|
|
|
<td>a4f92ed23982</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">branch</th>
|
|
|
|
<td>default</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;vertical-align:top;">user</th>
|
|
|
|
<td>test</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;vertical-align:top;">description</th>
|
|
|
|
<td>Added tag 1.0 for changeset 2ef0ac749a14(websub)</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;vertical-align:top;">files</th>
|
|
|
|
<td>.hgtags<br /></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
]]>
|
|
|
|
</description>
|
2014-05-17 13:09:10 +04:00
|
|
|
<author>test</author>
|
|
|
|
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<title>base</title>
|
|
|
|
<guid isPermaLink="true">http://*:$HGPORT/rev/2ef0ac749a14</guid> (glob)
|
2016-06-29 15:19:04 +03:00
|
|
|
<link>http://*:$HGPORT/rev/2ef0ac749a14</link> (glob)
|
2014-05-17 13:09:10 +04:00
|
|
|
<description>
|
2016-06-29 15:19:04 +03:00
|
|
|
<![CDATA[
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">changeset</th>
|
|
|
|
<td>2ef0ac749a14</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">branch</th>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">bookmark</th>
|
|
|
|
<td>anotherthing</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">tag</th>
|
|
|
|
<td>1.0</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;vertical-align:top;">user</th>
|
|
|
|
<td>test</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;vertical-align:top;">description</th>
|
|
|
|
<td>base(websub)</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;vertical-align:top;">files</th>
|
|
|
|
<td>da/foo<br />foo<br /></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
]]>
|
|
|
|
</description>
|
2014-05-17 13:09:10 +04:00
|
|
|
<author>test</author>
|
|
|
|
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
|
|
|
|
</item>
|
|
|
|
|
|
|
|
</channel>
|
|
|
|
</rss> (no-eol)
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'log/1/foo/?style=atom'
|
2010-09-26 22:41:32 +04:00
|
|
|
200 Script output follows
|
|
|
|
|
|
|
|
<?xml version="1.0" encoding="ascii"?>
|
|
|
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
2010-10-09 07:36:11 +04:00
|
|
|
<id>http://*:$HGPORT/atom-log/tip/foo</id> (glob)
|
|
|
|
<link rel="self" href="http://*:$HGPORT/atom-log/tip/foo"/> (glob)
|
2010-09-26 22:41:32 +04:00
|
|
|
<title>test: foo history</title>
|
|
|
|
<updated>1970-01-01T00:00:00+00:00</updated>
|
|
|
|
|
|
|
|
<entry>
|
|
|
|
<title>base</title>
|
2010-10-09 07:36:11 +04:00
|
|
|
<id>http://*:$HGPORT/#changeset-2ef0ac749a14e4f57a5a822464a0902c6f7f448f</id> (glob)
|
|
|
|
<link href="http://*:$HGPORT/rev/2ef0ac749a14"/> (glob)
|
2010-09-26 22:41:32 +04: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>2ef0ac749a14</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">branch</th>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">bookmark</th>
|
|
|
|
<td>anotherthing</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;">tag</th>
|
|
|
|
<td>1.0</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>base(websub)</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="text-align:left;vertical-align:top;">files</th>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2010-09-26 22:41:32 +04:00
|
|
|
</content>
|
|
|
|
</entry>
|
|
|
|
|
|
|
|
</feed>
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'log/1/foo/?style=rss'
|
2014-05-17 13:09:10 +04: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: foo history</title>
|
|
|
|
<description>foo revision history</description>
|
|
|
|
<item>
|
|
|
|
<title>base</title>
|
2016-12-08 18:59:36 +03:00
|
|
|
<link>http://*:$HGPORT/log/2ef0ac749a14/foo</link> (glob)
|
2014-05-17 13:10:23 +04:00
|
|
|
<description><![CDATA[base(websub)]]></description>
|
2014-05-17 13:09:10 +04:00
|
|
|
<author>test</author>
|
|
|
|
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
|
|
|
|
</item>
|
|
|
|
|
|
|
|
</channel>
|
|
|
|
</rss>
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'shortlog/'
|
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: log</title>
|
|
|
|
<link rel="alternate" type="application/atom+xml"
|
|
|
|
href="/atom-log" title="Atom feed for test" />
|
|
|
|
<link rel="alternate" type="application/rss+xml"
|
|
|
|
href="/rss-log" title="RSS feed for test" />
|
|
|
|
</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>
|
|
|
|
<li class="active">log</li>
|
2015-06-16 11:07:39 +03:00
|
|
|
<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>
|
|
|
|
|
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>
|
2012-12-04 03:41:29 +04:00
|
|
|
<div class="atom-logo">
|
|
|
|
<a href="/atom-log" 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" />
|
2012-12-04 03:41:29 +04:00
|
|
|
</a>
|
|
|
|
</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>
|
2010-09-26 22:41:32 +04:00
|
|
|
<h3>log</h3>
|
|
|
|
|
2017-06-09 23:59:13 +03:00
|
|
|
|
2010-09-26 22:41:32 +04:00
|
|
|
<form class="search" action="/log">
|
|
|
|
|
2013-07-11 17:01:54 +04: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="navigate">
|
2015-06-16 11:07:39 +03:00
|
|
|
<a href="/shortlog/tip?revcount=30">less</a>
|
|
|
|
<a href="/shortlog/tip?revcount=120">more</a>
|
2012-01-22 16:35:26 +04:00
|
|
|
| rev 3: <a href="/shortlog/2ef0ac749a14">(0)</a> <a href="/shortlog/tip">tip</a>
|
2010-09-26 22:41:32 +04:00
|
|
|
</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 17:59:00 +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/cad8025a2e87">branch commit with null character: </a>
|
2017-11-16 17:21:03 +03:00
|
|
|
<span class="phase">draft</span> <span class="branchhead">unstable</span> <span class="tag">tip</span> <span class="tag">something</span>
|
2015-05-14 21:07:43 +03:00
|
|
|
</td>
|
2010-09-26 22:41:32 +04:00
|
|
|
</tr>
|
2013-07-13 17:59:00 +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/1d22e65f027e">branch</a>
|
2017-11-16 17:21:03 +03:00
|
|
|
<span class="phase">draft</span> <span class="branchhead">stable</span>
|
2015-05-14 21:07:43 +03:00
|
|
|
</td>
|
2010-09-26 22:41:32 +04:00
|
|
|
</tr>
|
2013-07-13 17:59:00 +04:00
|
|
|
<tr>
|
2012-01-22 16:35:26 +04:00
|
|
|
<td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
|
|
|
|
<td class="author">test</td>
|
2015-05-14 21:07:43 +03:00
|
|
|
<td class="description">
|
|
|
|
<a href="/rev/a4f92ed23982">Added tag 1.0 for changeset 2ef0ac749a14</a>
|
2017-11-16 17:21:03 +03:00
|
|
|
<span class="phase">draft</span> <span class="branchhead">default</span>
|
2015-05-14 21:07:43 +03:00
|
|
|
</td>
|
2012-01-22 16:35:26 +04:00
|
|
|
</tr>
|
2013-07-13 17:59:00 +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/2ef0ac749a14">base</a>
|
2017-11-16 17:21:03 +03:00
|
|
|
<span class="phase">draft</span> <span class="tag">1.0</span> <span class="tag">anotherthing</span>
|
2015-05-14 21:07:43 +03:00
|
|
|
</td>
|
2010-09-26 22:41:32 +04:00
|
|
|
</tr>
|
|
|
|
|
2013-07-13 17:59:00 +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="/shortlog/tip?revcount=30">less</a>
|
|
|
|
<a href="/shortlog/tip?revcount=120">more</a>
|
2012-01-22 16:35:26 +04:00
|
|
|
| rev 3: <a href="/shortlog/2ef0ac749a14">(0)</a> <a href="/shortlog/tip">tip</a>
|
2010-09-26 22:41:32 +04:00
|
|
|
</div>
|
|
|
|
|
2013-09-06 13:30:57 +04:00
|
|
|
<script type="text/javascript">
|
|
|
|
ajaxScrollInit(
|
2013-09-22 14:18:23 +04:00
|
|
|
'/shortlog/%next%',
|
2013-09-06 13:30:57 +04:00
|
|
|
'', <!-- NEXTHASH
|
2013-09-22 14:18:23 +04:00
|
|
|
function (htmlText, previousVal) {
|
|
|
|
var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/);
|
|
|
|
return m ? m[1] : null;
|
|
|
|
},
|
2015-05-07 01:46:39 +03:00
|
|
|
'.bigtable > tbody',
|
2013-09-06 13:30:57 +04:00
|
|
|
'<tr class="%class%">\
|
|
|
|
<td colspan="3" style="text-align: center;">%text%</td>\
|
|
|
|
</tr>'
|
|
|
|
);
|
|
|
|
</script>
|
|
|
|
|
2010-09-26 22:41:32 +04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'rev/0/'
|
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: 2ef0ac749a14</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/0">log</a></li>
|
|
|
|
<li><a href="/graph/0">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/0">raw</a></li>
|
|
|
|
<li><a href="/file/0">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 0:<a href="/rev/2ef0ac749a14">2ef0ac749a14</a>
|
2017-11-16 17:21:03 +03:00
|
|
|
<span class="phase">draft</span> <span class="tag">1.0</span> <span class="tag">anotherthing</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>
|
|
|
|
|
2014-05-17 13:10:23 +04:00
|
|
|
<div class="description">base(websub)</div>
|
2010-09-26 22:41:32 +04:00
|
|
|
|
|
|
|
<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"></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th class="author">children</th>
|
|
|
|
<td class="author"> <a href="/rev/a4f92ed23982">a4f92ed23982</a></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th class="files">files</th>
|
|
|
|
<td class="files"><a href="/file/2ef0ac749a14/da/foo">da/foo</a> <a href="/file/2ef0ac749a14/foo">foo</a> </td>
|
|
|
|
</tr>
|
2011-06-11 17:24:50 +04:00
|
|
|
<tr>
|
|
|
|
<th class="diffstat">diffstat</th>
|
|
|
|
<td class="diffstat">
|
|
|
|
2 files changed, 2 insertions(+), 0 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">da/foo</a></td>
|
|
|
|
<td class="diffstat-total" align="right">1</td>
|
|
|
|
<td class="diffstat-graph">
|
|
|
|
<span class="diffstat-add" style="width:100.0%;"> </span>
|
|
|
|
<span class="diffstat-remove" style="width:0.0%;"> </span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2013-07-13 18:06:57 +04:00
|
|
|
<tr>
|
2011-06-11 17:24:50 +04:00
|
|
|
<td class="diffstat-file"><a href="#l2.1">foo</a></td>
|
|
|
|
<td class="diffstat-total" align="right">1</td>
|
|
|
|
<td class="diffstat-graph">
|
|
|
|
<span class="diffstat-add" style="width:100.0%;"> </span>
|
|
|
|
<span class="diffstat-remove" style="width:0.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">--- /dev/null Thu Jan 01 00:00:00 1970 +0000</span><a href="#l1.1"></a>
|
|
|
|
<span id="l1.2" class="plusline">+++ b/da/foo Thu Jan 01 00:00:00 1970 +0000</span><a href="#l1.2"></a>
|
|
|
|
<span id="l1.3" class="atline">@@ -0,0 +1,1 @@</span><a href="#l1.3"></a>
|
|
|
|
<span id="l1.4" class="plusline">+foo</span><a href="#l1.4"></a></pre></div><div class="bottomline inc-lineno"><pre class="sourcelines wrap">
|
|
|
|
<span id="l2.1" class="minusline">--- /dev/null Thu Jan 01 00:00:00 1970 +0000</span><a href="#l2.1"></a>
|
|
|
|
<span id="l2.2" class="plusline">+++ b/foo Thu Jan 01 00:00:00 1970 +0000</span><a href="#l2.2"></a>
|
|
|
|
<span id="l2.3" class="atline">@@ -0,0 +1,1 @@</span><a href="#l2.3"></a>
|
|
|
|
<span id="l2.4" class="plusline">+foo</span><a href="#l2.4"></a></pre></div>
|
|
|
|
</div>
|
2010-09-26 22:41:32 +04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'rev/1/?style=raw'
|
2010-09-26 22:41:32 +04:00
|
|
|
200 Script output follows
|
|
|
|
|
|
|
|
|
|
|
|
# HG changeset patch
|
|
|
|
# User test
|
|
|
|
# Date 0 0
|
|
|
|
# Node ID a4f92ed23982be056b9852de5dfe873eaac7f0de
|
|
|
|
# Parent 2ef0ac749a14e4f57a5a822464a0902c6f7f448f
|
|
|
|
Added tag 1.0 for changeset 2ef0ac749a14
|
|
|
|
|
|
|
|
diff -r 2ef0ac749a14 -r a4f92ed23982 .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 @@
|
|
|
|
+2ef0ac749a14e4f57a5a822464a0902c6f7f448f 1.0
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'log?rev=base'
|
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: searching for base</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>
|
2015-06-12 10:29:12 +03: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>searching for 'base'</h3>
|
|
|
|
|
2013-09-06 13:30:56 +04:00
|
|
|
<p>
|
|
|
|
Assuming literal keyword search.
|
2013-09-06 13:30:56 +04:00
|
|
|
|
|
|
|
|
2013-09-06 13:30:56 +04:00
|
|
|
</p>
|
|
|
|
|
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="base" /></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">
|
2014-11-21 08:58:49 +03:00
|
|
|
<a href="/log?rev=base&revcount=5">less</a>
|
|
|
|
<a href="/log?rev=base&revcount=20">more</a>
|
2010-09-26 22:41:32 +04:00
|
|
|
</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 17:59:00 +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/2ef0ac749a14">base</a>
|
2017-11-16 17:21:03 +03:00
|
|
|
<span class="phase">draft</span> <span class="tag">1.0</span> <span class="tag">anotherthing</span>
|
2015-05-14 21:07:43 +03:00
|
|
|
</td>
|
2010-09-26 22:41:32 +04:00
|
|
|
</tr>
|
|
|
|
|
2013-07-13 17:59:00 +04:00
|
|
|
</tbody>
|
2010-09-26 22:41:32 +04:00
|
|
|
</table>
|
|
|
|
|
|
|
|
<div class="navigate">
|
2014-11-21 08:58:49 +03:00
|
|
|
<a href="/log?rev=base&revcount=5">less</a>
|
|
|
|
<a href="/log?rev=base&revcount=20">more</a>
|
2010-09-26 22:41:32 +04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'log?rev=stable&style=raw' | grep 'revision:'
|
2013-07-19 02:09:13 +04:00
|
|
|
revision: 2
|
2010-09-26 22:41:32 +04:00
|
|
|
|
2013-09-06 13:30:56 +04:00
|
|
|
Search with revset syntax
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'log?rev=tip^&style=raw'
|
2013-09-06 13:30:56 +04:00
|
|
|
200 Script output follows
|
|
|
|
|
|
|
|
|
|
|
|
# HG changesets search
|
|
|
|
# Node ID cad8025a2e87f88c06259790adfa15acb4080123
|
|
|
|
# Query "tip^"
|
2013-09-06 13:30:56 +04:00
|
|
|
# Mode revset expression search
|
2013-09-06 13:30:56 +04:00
|
|
|
|
|
|
|
changeset: 1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe
|
|
|
|
revision: 2
|
|
|
|
user: test
|
|
|
|
date: Thu, 01 Jan 1970 00:00:00 +0000
|
|
|
|
summary: branch
|
|
|
|
branch: stable
|
|
|
|
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'log?rev=last(all(),2)^&style=raw'
|
2013-09-06 13:30:56 +04:00
|
|
|
200 Script output follows
|
|
|
|
|
|
|
|
|
|
|
|
# HG changesets search
|
|
|
|
# Node ID cad8025a2e87f88c06259790adfa15acb4080123
|
|
|
|
# Query "last(all(),2)^"
|
2013-09-06 13:30:56 +04:00
|
|
|
# Mode revset expression search
|
2013-09-06 13:30:56 +04:00
|
|
|
|
|
|
|
changeset: 1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe
|
|
|
|
revision: 2
|
|
|
|
user: test
|
|
|
|
date: Thu, 01 Jan 1970 00:00:00 +0000
|
|
|
|
summary: branch
|
|
|
|
branch: stable
|
|
|
|
|
|
|
|
changeset: a4f92ed23982be056b9852de5dfe873eaac7f0de
|
|
|
|
revision: 1
|
|
|
|
user: test
|
|
|
|
date: Thu, 01 Jan 1970 00:00:00 +0000
|
|
|
|
summary: Added tag 1.0 for changeset 2ef0ac749a14
|
|
|
|
branch: default
|
|
|
|
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'log?rev=last(all(,2)^&style=raw'
|
2013-09-06 13:30:56 +04:00
|
|
|
200 Script output follows
|
|
|
|
|
|
|
|
|
|
|
|
# HG changesets search
|
|
|
|
# Node ID cad8025a2e87f88c06259790adfa15acb4080123
|
|
|
|
# Query "last(all(,2)^"
|
2013-09-06 13:30:56 +04:00
|
|
|
# Mode literal keyword search
|
2013-09-06 13:30:56 +04:00
|
|
|
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'log?rev=last(al(),2)^&style=raw'
|
2013-09-06 13:30:56 +04:00
|
|
|
200 Script output follows
|
|
|
|
|
|
|
|
|
|
|
|
# HG changesets search
|
|
|
|
# Node ID cad8025a2e87f88c06259790adfa15acb4080123
|
|
|
|
# Query "last(al(),2)^"
|
2013-09-06 13:30:56 +04:00
|
|
|
# Mode literal keyword search
|
2013-09-06 13:30:56 +04:00
|
|
|
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'log?rev=bookmark(anotherthing)&style=raw'
|
2013-09-06 13:30:56 +04:00
|
|
|
200 Script output follows
|
|
|
|
|
|
|
|
|
|
|
|
# HG changesets search
|
|
|
|
# Node ID cad8025a2e87f88c06259790adfa15acb4080123
|
|
|
|
# Query "bookmark(anotherthing)"
|
2013-09-06 13:30:56 +04:00
|
|
|
# Mode revset expression search
|
2013-09-06 13:30:56 +04:00
|
|
|
|
|
|
|
changeset: 2ef0ac749a14e4f57a5a822464a0902c6f7f448f
|
|
|
|
revision: 0
|
|
|
|
user: test
|
|
|
|
date: Thu, 01 Jan 1970 00:00:00 +0000
|
|
|
|
summary: base
|
|
|
|
tag: 1.0
|
|
|
|
bookmark: anotherthing
|
|
|
|
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'log?rev=bookmark(abc)&style=raw'
|
2013-09-06 13:30:56 +04:00
|
|
|
200 Script output follows
|
|
|
|
|
|
|
|
|
|
|
|
# HG changesets search
|
|
|
|
# Node ID cad8025a2e87f88c06259790adfa15acb4080123
|
|
|
|
# Query "bookmark(abc)"
|
2013-09-06 13:30:56 +04:00
|
|
|
# Mode literal keyword search
|
2013-09-06 13:30:56 +04:00
|
|
|
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'log?rev=deadbeef:&style=raw'
|
2013-09-06 13:30:56 +04:00
|
|
|
200 Script output follows
|
|
|
|
|
|
|
|
|
|
|
|
# HG changesets search
|
|
|
|
# Node ID cad8025a2e87f88c06259790adfa15acb4080123
|
|
|
|
# Query "deadbeef:"
|
2013-09-06 13:30:56 +04:00
|
|
|
# Mode literal keyword search
|
2013-09-06 13:30:56 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'log?rev=user("test")&style=raw'
|
2013-09-06 13:30:56 +04:00
|
|
|
200 Script output follows
|
|
|
|
|
|
|
|
|
|
|
|
# HG changesets search
|
|
|
|
# Node ID cad8025a2e87f88c06259790adfa15acb4080123
|
|
|
|
# Query "user("test")"
|
2013-09-06 13:30:56 +04:00
|
|
|
# Mode revset expression search
|
2013-09-06 13:30:56 +04:00
|
|
|
|
|
|
|
changeset: cad8025a2e87f88c06259790adfa15acb4080123
|
|
|
|
revision: 3
|
|
|
|
user: test
|
|
|
|
date: Thu, 01 Jan 1970 00:00:00 +0000
|
|
|
|
summary: branch commit with null character: \x00 (esc)
|
|
|
|
branch: unstable
|
|
|
|
tag: tip
|
|
|
|
bookmark: something
|
|
|
|
|
|
|
|
changeset: 1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe
|
|
|
|
revision: 2
|
|
|
|
user: test
|
|
|
|
date: Thu, 01 Jan 1970 00:00:00 +0000
|
|
|
|
summary: branch
|
|
|
|
branch: stable
|
|
|
|
|
|
|
|
changeset: a4f92ed23982be056b9852de5dfe873eaac7f0de
|
|
|
|
revision: 1
|
|
|
|
user: test
|
|
|
|
date: Thu, 01 Jan 1970 00:00:00 +0000
|
|
|
|
summary: Added tag 1.0 for changeset 2ef0ac749a14
|
|
|
|
branch: default
|
|
|
|
|
|
|
|
changeset: 2ef0ac749a14e4f57a5a822464a0902c6f7f448f
|
|
|
|
revision: 0
|
|
|
|
user: test
|
|
|
|
date: Thu, 01 Jan 1970 00:00:00 +0000
|
|
|
|
summary: base
|
|
|
|
tag: 1.0
|
|
|
|
bookmark: anotherthing
|
|
|
|
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'log?rev=user("re:test")&style=raw'
|
2013-09-06 13:30:56 +04:00
|
|
|
200 Script output follows
|
|
|
|
|
|
|
|
|
|
|
|
# HG changesets search
|
|
|
|
# Node ID cad8025a2e87f88c06259790adfa15acb4080123
|
|
|
|
# Query "user("re:test")"
|
2013-09-06 13:30:56 +04:00
|
|
|
# Mode literal keyword search
|
2013-09-06 13:30:56 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
2010-09-26 22:41:32 +04:00
|
|
|
File-related
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'file/1/foo/?style=raw'
|
2010-09-26 22:41:32 +04:00
|
|
|
200 Script output follows
|
|
|
|
|
|
|
|
foo
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'annotate/1/foo/?style=raw'
|
2010-09-26 22:41:32 +04:00
|
|
|
200 Script output follows
|
|
|
|
|
|
|
|
|
|
|
|
test@0: foo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'file/1/?style=raw'
|
2010-09-26 22:41:32 +04:00
|
|
|
200 Script output follows
|
|
|
|
|
|
|
|
|
|
|
|
drwxr-xr-x da
|
|
|
|
-rw-r--r-- 45 .hgtags
|
|
|
|
-rw-r--r-- 4 foo
|
|
|
|
|
|
|
|
|
hgweb: show as same parents as "hg parents -r REV FILE" in pages for file
Before this patch, "parents" in pages for file doesn't show as same
parents as "hg parents -r REV FILE", when the specified file is not
modified in the specified revision.
For example, it is assumed that revision A, B and D change file "f".
changelog (A) ---> (B) ---> (C) ---> (D)
filelog "f" (x) ---> (y) ------------> (z)
"/file/D/f" invokes "webutil.parents()" with filectx(z) gotten from
changectx(D), and it returns changectx(B). This is as same result as
"hg parents -r D f".
In the other hand, "/file/C/f" invokes "webutil.parents()" with
filectx(y') gotten from changectx(C), and it returns changectx(A),
because filectx(y') is linked to changectx(B), and works like
filectx(y) in some cases.
In this case, revision B is hidden from users browsing file "f" in
revision C.
This patch shows as same parents as "hg parents -r REV FILE" in pages
for file, by making "webutil.parents()" return:
- "linkrev()"-ed revision only, if:
- specified context instance is "filectx" (because
"webutil.parents()" is invoked with changectx, too), and
- (1) the revision from which filectx is gotten and (2) the one to
which filectx is linked are different from each other
- revision gotten from "ctx.parents()", otherwise
2014-04-17 04:36:08 +04:00
|
|
|
$ hg log --template "{file_mods}\n" -r 1
|
|
|
|
|
|
|
|
$ hg parents --template "{node|short}\n" -r 1
|
|
|
|
2ef0ac749a14
|
|
|
|
$ hg parents --template "{node|short}\n" -r 1 foo
|
|
|
|
2ef0ac749a14
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'file/1/foo'
|
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: a4f92ed23982 foo</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/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>
|
2014-04-17 04:36:08 +04: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>
|
|
|
|
<li class="active">file</li>
|
|
|
|
<li><a href="/file/tip/foo">latest</a></li>
|
2015-06-16 11:07:39 +03:00
|
|
|
<li><a href="/diff/1/foo">diff</a></li>
|
|
|
|
<li><a href="/comparison/1/foo">comparison</a></li>
|
|
|
|
<li><a href="/annotate/1/foo">annotate</a></li>
|
|
|
|
<li><a href="/log/1/foo">file log</a></li>
|
|
|
|
<li><a href="/raw-file/1/foo">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>
|
|
|
|
view foo @ 1:<a href="/rev/a4f92ed23982">a4f92ed23982</a>
|
2017-11-16 17:21:03 +03:00
|
|
|
<span class="phase">draft</span> <span class="branchhead">default</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>
|
|
|
|
|
2014-05-17 13:10:23 +04:00
|
|
|
<div class="description">Added tag 1.0 for changeset 2ef0ac749a14(websub)</div>
|
2010-09-26 22:41:32 +04:00
|
|
|
|
|
|
|
<table id="changesetEntry">
|
|
|
|
<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 age">Thu, 01 Jan 1970 00:00:00 +0000</td>
|
2010-09-26 22:41:32 +04:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th class="author">parents</th>
|
hgweb: show as same parents as "hg parents -r REV FILE" in pages for file
Before this patch, "parents" in pages for file doesn't show as same
parents as "hg parents -r REV FILE", when the specified file is not
modified in the specified revision.
For example, it is assumed that revision A, B and D change file "f".
changelog (A) ---> (B) ---> (C) ---> (D)
filelog "f" (x) ---> (y) ------------> (z)
"/file/D/f" invokes "webutil.parents()" with filectx(z) gotten from
changectx(D), and it returns changectx(B). This is as same result as
"hg parents -r D f".
In the other hand, "/file/C/f" invokes "webutil.parents()" with
filectx(y') gotten from changectx(C), and it returns changectx(A),
because filectx(y') is linked to changectx(B), and works like
filectx(y) in some cases.
In this case, revision B is hidden from users browsing file "f" in
revision C.
This patch shows as same parents as "hg parents -r REV FILE" in pages
for file, by making "webutil.parents()" return:
- "linkrev()"-ed revision only, if:
- specified context instance is "filectx" (because
"webutil.parents()" is invoked with changectx, too), and
- (1) the revision from which filectx is gotten and (2) the one to
which filectx is linked are different from each other
- revision gotten from "ctx.parents()", otherwise
2014-04-17 04:36:08 +04:00
|
|
|
<td class="author"><a href="/file/2ef0ac749a14/foo">2ef0ac749a14</a> </td>
|
2010-09-26 22:41:32 +04:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th class="author">children</th>
|
|
|
|
<td class="author"><a href="/file/1d22e65f027e/foo">1d22e65f027e</a> </td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<div class="overflow">
|
2013-07-12 15:58:13 +04:00
|
|
|
<div class="sourcefirst linewraptoggle">line wrap: <a class="linewraplink" href="javascript:toggleLinewrap()">on</a></div>
|
2010-09-26 22:41:32 +04:00
|
|
|
<div class="sourcefirst"> line source</div>
|
2017-06-21 18:07:51 +03:00
|
|
|
<pre class="sourcelines stripes4 wrap bottomline"
|
|
|
|
data-logurl="/log/1/foo"
|
|
|
|
data-selectabletag="SPAN"
|
|
|
|
data-ishead="0">
|
|
|
|
|
|
|
|
<span id="l1">foo</span><a href="#l1"></a>
|
|
|
|
</pre>
|
2010-09-26 22:41:32 +04:00
|
|
|
</div>
|
2017-03-29 23:26:16 +03:00
|
|
|
|
2017-04-03 11:02:55 +03:00
|
|
|
<script type="text/javascript" src="/static/followlines.js"></script>
|
2017-03-29 23:26:16 +03:00
|
|
|
|
2010-09-26 22:41:32 +04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'filediff/0/foo/?style=raw'
|
2010-09-26 22:41:32 +04:00
|
|
|
200 Script output follows
|
|
|
|
|
|
|
|
|
2012-05-14 14:56:43 +04:00
|
|
|
diff -r 000000000000 -r 2ef0ac749a14 foo
|
2010-09-26 22:41:32 +04:00
|
|
|
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
|
|
|
|
+++ b/foo Thu Jan 01 00:00:00 1970 +0000
|
|
|
|
@@ -0,0 +1,1 @@
|
|
|
|
+foo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'filediff/1/foo/?style=raw'
|
2012-05-14 14:56:43 +04:00
|
|
|
200 Script output follows
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
hgweb: show as same parents as "hg parents -r REV FILE" in pages for file
Before this patch, "parents" in pages for file doesn't show as same
parents as "hg parents -r REV FILE", when the specified file is not
modified in the specified revision.
For example, it is assumed that revision A, B and D change file "f".
changelog (A) ---> (B) ---> (C) ---> (D)
filelog "f" (x) ---> (y) ------------> (z)
"/file/D/f" invokes "webutil.parents()" with filectx(z) gotten from
changectx(D), and it returns changectx(B). This is as same result as
"hg parents -r D f".
In the other hand, "/file/C/f" invokes "webutil.parents()" with
filectx(y') gotten from changectx(C), and it returns changectx(A),
because filectx(y') is linked to changectx(B), and works like
filectx(y) in some cases.
In this case, revision B is hidden from users browsing file "f" in
revision C.
This patch shows as same parents as "hg parents -r REV FILE" in pages
for file, by making "webutil.parents()" return:
- "linkrev()"-ed revision only, if:
- specified context instance is "filectx" (because
"webutil.parents()" is invoked with changectx, too), and
- (1) the revision from which filectx is gotten and (2) the one to
which filectx is linked are different from each other
- revision gotten from "ctx.parents()", otherwise
2014-04-17 04:36:08 +04:00
|
|
|
$ hg log --template "{file_mods}\n" -r 2
|
|
|
|
foo
|
|
|
|
$ hg parents --template "{node|short}\n" -r 2
|
|
|
|
a4f92ed23982
|
|
|
|
$ hg parents --template "{node|short}\n" -r 2 foo
|
|
|
|
2ef0ac749a14
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'file/2/foo'
|
hgweb: show as same parents as "hg parents -r REV FILE" in pages for file
Before this patch, "parents" in pages for file doesn't show as same
parents as "hg parents -r REV FILE", when the specified file is not
modified in the specified revision.
For example, it is assumed that revision A, B and D change file "f".
changelog (A) ---> (B) ---> (C) ---> (D)
filelog "f" (x) ---> (y) ------------> (z)
"/file/D/f" invokes "webutil.parents()" with filectx(z) gotten from
changectx(D), and it returns changectx(B). This is as same result as
"hg parents -r D f".
In the other hand, "/file/C/f" invokes "webutil.parents()" with
filectx(y') gotten from changectx(C), and it returns changectx(A),
because filectx(y') is linked to changectx(B), and works like
filectx(y) in some cases.
In this case, revision B is hidden from users browsing file "f" in
revision C.
This patch shows as same parents as "hg parents -r REV FILE" in pages
for file, by making "webutil.parents()" return:
- "linkrev()"-ed revision only, if:
- specified context instance is "filectx" (because
"webutil.parents()" is invoked with changectx, too), and
- (1) the revision from which filectx is gotten and (2) the one to
which filectx is linked are different from each other
- revision gotten from "ctx.parents()", otherwise
2014-04-17 04:36:08 +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" />
|
|
|
|
<script type="text/javascript" src="/static/mercurial.js"></script>
|
|
|
|
|
|
|
|
<title>test: 1d22e65f027e foo</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/">
|
hgweb: show as same parents as "hg parents -r REV FILE" in pages for file
Before this patch, "parents" in pages for file doesn't show as same
parents as "hg parents -r REV FILE", when the specified file is not
modified in the specified revision.
For example, it is assumed that revision A, B and D change file "f".
changelog (A) ---> (B) ---> (C) ---> (D)
filelog "f" (x) ---> (y) ------------> (z)
"/file/D/f" invokes "webutil.parents()" with filectx(z) gotten from
changectx(D), and it returns changectx(B). This is as same result as
"hg parents -r D f".
In the other hand, "/file/C/f" invokes "webutil.parents()" with
filectx(y') gotten from changectx(C), and it returns changectx(A),
because filectx(y') is linked to changectx(B), and works like
filectx(y) in some cases.
In this case, revision B is hidden from users browsing file "f" in
revision C.
This patch shows as same parents as "hg parents -r REV FILE" in pages
for file, by making "webutil.parents()" return:
- "linkrev()"-ed revision only, if:
- specified context instance is "filectx" (because
"webutil.parents()" is invoked with changectx, too), and
- (1) the revision from which filectx is gotten and (2) the one to
which filectx is linked are different from each other
- revision gotten from "ctx.parents()", otherwise
2014-04-17 04:36:08 +04:00
|
|
|
<img src="/static/hglogo.png" alt="mercurial" /></a>
|
|
|
|
</div>
|
|
|
|
<ul>
|
2015-06-16 11:07:39 +03:00
|
|
|
<li><a href="/shortlog/2">log</a></li>
|
|
|
|
<li><a href="/graph/2">graph</a></li>
|
hgweb: show as same parents as "hg parents -r REV FILE" in pages for file
Before this patch, "parents" in pages for file doesn't show as same
parents as "hg parents -r REV FILE", when the specified file is not
modified in the specified revision.
For example, it is assumed that revision A, B and D change file "f".
changelog (A) ---> (B) ---> (C) ---> (D)
filelog "f" (x) ---> (y) ------------> (z)
"/file/D/f" invokes "webutil.parents()" with filectx(z) gotten from
changectx(D), and it returns changectx(B). This is as same result as
"hg parents -r D f".
In the other hand, "/file/C/f" invokes "webutil.parents()" with
filectx(y') gotten from changectx(C), and it returns changectx(A),
because filectx(y') is linked to changectx(B), and works like
filectx(y) in some cases.
In this case, revision B is hidden from users browsing file "f" in
revision C.
This patch shows as same parents as "hg parents -r REV FILE" in pages
for file, by making "webutil.parents()" return:
- "linkrev()"-ed revision only, if:
- specified context instance is "filectx" (because
"webutil.parents()" is invoked with changectx, too), and
- (1) the revision from which filectx is gotten and (2) the one to
which filectx is linked are different from each other
- revision gotten from "ctx.parents()", otherwise
2014-04-17 04:36:08 +04:00
|
|
|
<li><a href="/tags">tags</a></li>
|
|
|
|
<li><a href="/bookmarks">bookmarks</a></li>
|
|
|
|
<li><a href="/branches">branches</a></li>
|
|
|
|
</ul>
|
|
|
|
<ul>
|
2015-06-16 11:07:39 +03:00
|
|
|
<li><a href="/rev/2">changeset</a></li>
|
|
|
|
<li><a href="/file/2/">browse</a></li>
|
hgweb: show as same parents as "hg parents -r REV FILE" in pages for file
Before this patch, "parents" in pages for file doesn't show as same
parents as "hg parents -r REV FILE", when the specified file is not
modified in the specified revision.
For example, it is assumed that revision A, B and D change file "f".
changelog (A) ---> (B) ---> (C) ---> (D)
filelog "f" (x) ---> (y) ------------> (z)
"/file/D/f" invokes "webutil.parents()" with filectx(z) gotten from
changectx(D), and it returns changectx(B). This is as same result as
"hg parents -r D f".
In the other hand, "/file/C/f" invokes "webutil.parents()" with
filectx(y') gotten from changectx(C), and it returns changectx(A),
because filectx(y') is linked to changectx(B), and works like
filectx(y) in some cases.
In this case, revision B is hidden from users browsing file "f" in
revision C.
This patch shows as same parents as "hg parents -r REV FILE" in pages
for file, by making "webutil.parents()" return:
- "linkrev()"-ed revision only, if:
- specified context instance is "filectx" (because
"webutil.parents()" is invoked with changectx, too), and
- (1) the revision from which filectx is gotten and (2) the one to
which filectx is linked are different from each other
- revision gotten from "ctx.parents()", otherwise
2014-04-17 04:36:08 +04:00
|
|
|
</ul>
|
|
|
|
<ul>
|
|
|
|
<li class="active">file</li>
|
|
|
|
<li><a href="/file/tip/foo">latest</a></li>
|
2015-06-16 11:07:39 +03:00
|
|
|
<li><a href="/diff/2/foo">diff</a></li>
|
|
|
|
<li><a href="/comparison/2/foo">comparison</a></li>
|
|
|
|
<li><a href="/annotate/2/foo">annotate</a></li>
|
|
|
|
<li><a href="/log/2/foo">file log</a></li>
|
|
|
|
<li><a href="/raw-file/2/foo">raw</a></li>
|
hgweb: show as same parents as "hg parents -r REV FILE" in pages for file
Before this patch, "parents" in pages for file doesn't show as same
parents as "hg parents -r REV FILE", when the specified file is not
modified in the specified revision.
For example, it is assumed that revision A, B and D change file "f".
changelog (A) ---> (B) ---> (C) ---> (D)
filelog "f" (x) ---> (y) ------------> (z)
"/file/D/f" invokes "webutil.parents()" with filectx(z) gotten from
changectx(D), and it returns changectx(B). This is as same result as
"hg parents -r D f".
In the other hand, "/file/C/f" invokes "webutil.parents()" with
filectx(y') gotten from changectx(C), and it returns changectx(A),
because filectx(y') is linked to changectx(B), and works like
filectx(y) in some cases.
In this case, revision B is hidden from users browsing file "f" in
revision C.
This patch shows as same parents as "hg parents -r REV FILE" in pages
for file, by making "webutil.parents()" return:
- "linkrev()"-ed revision only, if:
- specified context instance is "filectx" (because
"webutil.parents()" is invoked with changectx, too), and
- (1) the revision from which filectx is gotten and (2) the one to
which filectx is linked are different from each other
- revision gotten from "ctx.parents()", otherwise
2014-04-17 04:36:08 +04:00
|
|
|
</ul>
|
|
|
|
<ul>
|
|
|
|
<li><a href="/help">help</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="main">
|
|
|
|
<h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
|
2015-06-18 12:06:18 +03:00
|
|
|
<h3>
|
|
|
|
view foo @ 2:<a href="/rev/1d22e65f027e">1d22e65f027e</a>
|
2017-11-16 17:21:03 +03:00
|
|
|
<span class="phase">draft</span> <span class="branchhead">stable</span>
|
2015-06-18 12:06:18 +03:00
|
|
|
</h3>
|
hgweb: show as same parents as "hg parents -r REV FILE" in pages for file
Before this patch, "parents" in pages for file doesn't show as same
parents as "hg parents -r REV FILE", when the specified file is not
modified in the specified revision.
For example, it is assumed that revision A, B and D change file "f".
changelog (A) ---> (B) ---> (C) ---> (D)
filelog "f" (x) ---> (y) ------------> (z)
"/file/D/f" invokes "webutil.parents()" with filectx(z) gotten from
changectx(D), and it returns changectx(B). This is as same result as
"hg parents -r D f".
In the other hand, "/file/C/f" invokes "webutil.parents()" with
filectx(y') gotten from changectx(C), and it returns changectx(A),
because filectx(y') is linked to changectx(B), and works like
filectx(y) in some cases.
In this case, revision B is hidden from users browsing file "f" in
revision C.
This patch shows as same parents as "hg parents -r REV FILE" in pages
for file, by making "webutil.parents()" return:
- "linkrev()"-ed revision only, if:
- specified context instance is "filectx" (because
"webutil.parents()" is invoked with changectx, too), and
- (1) the revision from which filectx is gotten and (2) the one to
which filectx is linked are different from each other
- revision gotten from "ctx.parents()", otherwise
2014-04-17 04:36:08 +04:00
|
|
|
|
2017-06-09 23:59:13 +03:00
|
|
|
|
hgweb: show as same parents as "hg parents -r REV FILE" in pages for file
Before this patch, "parents" in pages for file doesn't show as same
parents as "hg parents -r REV FILE", when the specified file is not
modified in the specified revision.
For example, it is assumed that revision A, B and D change file "f".
changelog (A) ---> (B) ---> (C) ---> (D)
filelog "f" (x) ---> (y) ------------> (z)
"/file/D/f" invokes "webutil.parents()" with filectx(z) gotten from
changectx(D), and it returns changectx(B). This is as same result as
"hg parents -r D f".
In the other hand, "/file/C/f" invokes "webutil.parents()" with
filectx(y') gotten from changectx(C), and it returns changectx(A),
because filectx(y') is linked to changectx(B), and works like
filectx(y) in some cases.
In this case, revision B is hidden from users browsing file "f" in
revision C.
This patch shows as same parents as "hg parents -r REV FILE" in pages
for file, by making "webutil.parents()" return:
- "linkrev()"-ed revision only, if:
- specified context instance is "filectx" (because
"webutil.parents()" is invoked with changectx, too), and
- (1) the revision from which filectx is gotten and (2) the one to
which filectx is linked are different from each other
- revision gotten from "ctx.parents()", otherwise
2014-04-17 04:36:08 +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>
|
hgweb: show as same parents as "hg parents -r REV FILE" in pages for file
Before this patch, "parents" in pages for file doesn't show as same
parents as "hg parents -r REV FILE", when the specified file is not
modified in the specified revision.
For example, it is assumed that revision A, B and D change file "f".
changelog (A) ---> (B) ---> (C) ---> (D)
filelog "f" (x) ---> (y) ------------> (z)
"/file/D/f" invokes "webutil.parents()" with filectx(z) gotten from
changectx(D), and it returns changectx(B). This is as same result as
"hg parents -r D f".
In the other hand, "/file/C/f" invokes "webutil.parents()" with
filectx(y') gotten from changectx(C), and it returns changectx(A),
because filectx(y') is linked to changectx(B), and works like
filectx(y) in some cases.
In this case, revision B is hidden from users browsing file "f" in
revision C.
This patch shows as same parents as "hg parents -r REV FILE" in pages
for file, by making "webutil.parents()" return:
- "linkrev()"-ed revision only, if:
- specified context instance is "filectx" (because
"webutil.parents()" is invoked with changectx, too), and
- (1) the revision from which filectx is gotten and (2) the one to
which filectx is linked are different from each other
- revision gotten from "ctx.parents()", otherwise
2014-04-17 04:36:08 +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>
|
|
|
|
</form>
|
|
|
|
|
2014-05-17 13:10:23 +04:00
|
|
|
<div class="description">branch(websub)</div>
|
hgweb: show as same parents as "hg parents -r REV FILE" in pages for file
Before this patch, "parents" in pages for file doesn't show as same
parents as "hg parents -r REV FILE", when the specified file is not
modified in the specified revision.
For example, it is assumed that revision A, B and D change file "f".
changelog (A) ---> (B) ---> (C) ---> (D)
filelog "f" (x) ---> (y) ------------> (z)
"/file/D/f" invokes "webutil.parents()" with filectx(z) gotten from
changectx(D), and it returns changectx(B). This is as same result as
"hg parents -r D f".
In the other hand, "/file/C/f" invokes "webutil.parents()" with
filectx(y') gotten from changectx(C), and it returns changectx(A),
because filectx(y') is linked to changectx(B), and works like
filectx(y) in some cases.
In this case, revision B is hidden from users browsing file "f" in
revision C.
This patch shows as same parents as "hg parents -r REV FILE" in pages
for file, by making "webutil.parents()" return:
- "linkrev()"-ed revision only, if:
- specified context instance is "filectx" (because
"webutil.parents()" is invoked with changectx, too), and
- (1) the revision from which filectx is gotten and (2) the one to
which filectx is linked are different from each other
- revision gotten from "ctx.parents()", otherwise
2014-04-17 04:36:08 +04:00
|
|
|
|
|
|
|
<table id="changesetEntry">
|
|
|
|
<tr>
|
|
|
|
<th class="author">author</th>
|
|
|
|
<td class="author">test</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th class="date">date</th>
|
|
|
|
<td class="date age">Thu, 01 Jan 1970 00:00:00 +0000</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th class="author">parents</th>
|
|
|
|
<td class="author"><a href="/file/2ef0ac749a14/foo">2ef0ac749a14</a> </td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th class="author">children</th>
|
|
|
|
<td class="author"></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<div class="overflow">
|
|
|
|
<div class="sourcefirst linewraptoggle">line wrap: <a class="linewraplink" href="javascript:toggleLinewrap()">on</a></div>
|
|
|
|
<div class="sourcefirst"> line source</div>
|
2017-06-21 18:07:51 +03:00
|
|
|
<pre class="sourcelines stripes4 wrap bottomline"
|
|
|
|
data-logurl="/log/2/foo"
|
|
|
|
data-selectabletag="SPAN"
|
|
|
|
data-ishead="1">
|
|
|
|
|
|
|
|
<span id="l1">another</span><a href="#l1"></a>
|
|
|
|
</pre>
|
hgweb: show as same parents as "hg parents -r REV FILE" in pages for file
Before this patch, "parents" in pages for file doesn't show as same
parents as "hg parents -r REV FILE", when the specified file is not
modified in the specified revision.
For example, it is assumed that revision A, B and D change file "f".
changelog (A) ---> (B) ---> (C) ---> (D)
filelog "f" (x) ---> (y) ------------> (z)
"/file/D/f" invokes "webutil.parents()" with filectx(z) gotten from
changectx(D), and it returns changectx(B). This is as same result as
"hg parents -r D f".
In the other hand, "/file/C/f" invokes "webutil.parents()" with
filectx(y') gotten from changectx(C), and it returns changectx(A),
because filectx(y') is linked to changectx(B), and works like
filectx(y) in some cases.
In this case, revision B is hidden from users browsing file "f" in
revision C.
This patch shows as same parents as "hg parents -r REV FILE" in pages
for file, by making "webutil.parents()" return:
- "linkrev()"-ed revision only, if:
- specified context instance is "filectx" (because
"webutil.parents()" is invoked with changectx, too), and
- (1) the revision from which filectx is gotten and (2) the one to
which filectx is linked are different from each other
- revision gotten from "ctx.parents()", otherwise
2014-04-17 04:36:08 +04:00
|
|
|
</div>
|
2017-03-29 23:26:16 +03:00
|
|
|
|
2017-04-03 11:02:55 +03:00
|
|
|
<script type="text/javascript" src="/static/followlines.js"></script>
|
2017-03-29 23:26:16 +03:00
|
|
|
|
hgweb: show as same parents as "hg parents -r REV FILE" in pages for file
Before this patch, "parents" in pages for file doesn't show as same
parents as "hg parents -r REV FILE", when the specified file is not
modified in the specified revision.
For example, it is assumed that revision A, B and D change file "f".
changelog (A) ---> (B) ---> (C) ---> (D)
filelog "f" (x) ---> (y) ------------> (z)
"/file/D/f" invokes "webutil.parents()" with filectx(z) gotten from
changectx(D), and it returns changectx(B). This is as same result as
"hg parents -r D f".
In the other hand, "/file/C/f" invokes "webutil.parents()" with
filectx(y') gotten from changectx(C), and it returns changectx(A),
because filectx(y') is linked to changectx(B), and works like
filectx(y) in some cases.
In this case, revision B is hidden from users browsing file "f" in
revision C.
This patch shows as same parents as "hg parents -r REV FILE" in pages
for file, by making "webutil.parents()" return:
- "linkrev()"-ed revision only, if:
- specified context instance is "filectx" (because
"webutil.parents()" is invoked with changectx, too), and
- (1) the revision from which filectx is gotten and (2) the one to
which filectx is linked are different from each other
- revision gotten from "ctx.parents()", otherwise
2014-04-17 04:36:08 +04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-09-26 22:41:32 +04:00
|
|
|
Overviews
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'raw-tags'
|
2010-09-26 22:41:32 +04:00
|
|
|
200 Script output follows
|
|
|
|
|
2012-10-15 20:43:34 +04:00
|
|
|
tip cad8025a2e87f88c06259790adfa15acb4080123
|
2010-09-26 22:41:32 +04:00
|
|
|
1.0 2ef0ac749a14e4f57a5a822464a0902c6f7f448f
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'raw-branches'
|
2010-09-26 22:41:32 +04:00
|
|
|
200 Script output follows
|
|
|
|
|
2012-10-15 20:43:34 +04:00
|
|
|
unstable cad8025a2e87f88c06259790adfa15acb4080123 open
|
2012-01-22 16:35:26 +04:00
|
|
|
stable 1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe inactive
|
2010-09-26 22:41:32 +04:00
|
|
|
default a4f92ed23982be056b9852de5dfe873eaac7f0de inactive
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'raw-bookmarks'
|
2011-04-10 01:37:20 +04:00
|
|
|
200 Script output follows
|
|
|
|
|
2012-10-15 20:43:34 +04:00
|
|
|
something cad8025a2e87f88c06259790adfa15acb4080123
|
2016-03-31 10:22:06 +03:00
|
|
|
anotherthing 2ef0ac749a14e4f57a5a822464a0902c6f7f448f
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'summary/?style=gitweb'
|
2010-09-26 22:41:32 +04:00
|
|
|
200 Script output follows
|
|
|
|
|
|
|
|
<?xml version="1.0" encoding="ascii"?>
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" 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-gitweb.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: Summary</title>
|
|
|
|
<link rel="alternate" type="application/atom+xml"
|
|
|
|
href="/atom-log" title="Atom feed for test"/>
|
|
|
|
<link rel="alternate" type="application/rss+xml"
|
|
|
|
href="/rss-log" title="RSS feed for test"/>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<div class="page_header">
|
2015-09-30 23:43:49 +03:00
|
|
|
<a href="https://mercurial-scm.org/" title="Mercurial" style="float: right;">Mercurial</a>
|
2013-01-09 04:16:29 +04:00
|
|
|
<a href="/">Mercurial</a> / summary
|
2010-09-26 22:41:32 +04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="page_nav">
|
2017-06-09 23:55:51 +03:00
|
|
|
<div>
|
2010-09-26 22:41:32 +04:00
|
|
|
summary |
|
|
|
|
<a href="/shortlog?style=gitweb">shortlog</a> |
|
|
|
|
<a href="/log?style=gitweb">changelog</a> |
|
|
|
|
<a href="/graph?style=gitweb">graph</a> |
|
|
|
|
<a href="/tags?style=gitweb">tags</a> |
|
2011-04-03 18:47:05 +04:00
|
|
|
<a href="/bookmarks?style=gitweb">bookmarks</a> |
|
2010-09-26 22:41:32 +04:00
|
|
|
<a href="/branches?style=gitweb">branches</a> |
|
2015-06-12 13:34:10 +03:00
|
|
|
<a href="/file?style=gitweb">files</a> |
|
2010-10-09 21:27:14 +04:00
|
|
|
<a href="/help?style=gitweb">help</a>
|
2017-06-09 23:55:51 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="search">
|
|
|
|
<form id="searchform" action="/log">
|
|
|
|
<input type="hidden" name="style" value="gitweb" />
|
|
|
|
<input name="rev" type="text" value="" size="40" />
|
|
|
|
<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>
|
|
|
|
</form>
|
|
|
|
</div>
|
2010-09-26 22:41:32 +04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="title"> </div>
|
|
|
|
<table cellspacing="0">
|
|
|
|
<tr><td>description</td><td>unknown</td></tr>
|
|
|
|
<tr><td>owner</td><td>Foo Bar <foo.bar@example.com></td></tr>
|
2017-11-21 15:28:57 +03:00
|
|
|
<tr><td>last change</td><td class="date age">Thu, 01 Jan 1970 00:00:00 +0000</td></tr>
|
2010-09-26 22:41:32 +04:00
|
|
|
</table>
|
|
|
|
|
|
|
|
<div><a class="title" href="/shortlog?style=gitweb">changes</a></div>
|
|
|
|
<table cellspacing="0">
|
|
|
|
|
|
|
|
<tr class="parity0">
|
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"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td>
|
2010-09-26 22:41:32 +04:00
|
|
|
<td><i>test</i></td>
|
|
|
|
<td>
|
2012-10-15 20:43:34 +04:00
|
|
|
<a class="list" href="/rev/cad8025a2e87?style=gitweb">
|
|
|
|
<b>branch commit with null character: </b>
|
2017-11-16 17:21:03 +03:00
|
|
|
<span class="logtags"><span class="phasetag" title="draft">draft</span> <span class="branchtag" title="unstable">unstable</span> <span class="tagtag" title="tip">tip</span> <span class="bookmarktag" title="something">something</span> </span>
|
2012-01-22 16:35:26 +04:00
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td class="link" nowrap>
|
2012-10-15 20:43:34 +04:00
|
|
|
<a href="/rev/cad8025a2e87?style=gitweb">changeset</a> |
|
|
|
|
<a href="/file/cad8025a2e87?style=gitweb">files</a>
|
2012-01-22 16:35:26 +04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="parity1">
|
|
|
|
<td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td>
|
|
|
|
<td><i>test</i></td>
|
|
|
|
<td>
|
2010-09-26 22:41:32 +04:00
|
|
|
<a class="list" href="/rev/1d22e65f027e?style=gitweb">
|
|
|
|
<b>branch</b>
|
2017-11-16 17:21:03 +03:00
|
|
|
<span class="logtags"><span class="phasetag" title="draft">draft</span> <span class="branchtag" title="stable">stable</span> </span>
|
2010-09-26 22:41:32 +04:00
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td class="link" nowrap>
|
|
|
|
<a href="/rev/1d22e65f027e?style=gitweb">changeset</a> |
|
|
|
|
<a href="/file/1d22e65f027e?style=gitweb">files</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2012-01-22 16:35:26 +04:00
|
|
|
<tr class="parity0">
|
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"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td>
|
2010-09-26 22:41:32 +04:00
|
|
|
<td><i>test</i></td>
|
|
|
|
<td>
|
|
|
|
<a class="list" href="/rev/a4f92ed23982?style=gitweb">
|
|
|
|
<b>Added tag 1.0 for changeset 2ef0ac749a14</b>
|
2017-11-16 17:21:03 +03:00
|
|
|
<span class="logtags"><span class="phasetag" title="draft">draft</span> <span class="branchtag" title="default">default</span> </span>
|
2010-09-26 22:41:32 +04:00
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td class="link" nowrap>
|
|
|
|
<a href="/rev/a4f92ed23982?style=gitweb">changeset</a> |
|
|
|
|
<a href="/file/a4f92ed23982?style=gitweb">files</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2012-01-22 16:35:26 +04:00
|
|
|
<tr class="parity1">
|
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"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td>
|
2010-09-26 22:41:32 +04:00
|
|
|
<td><i>test</i></td>
|
|
|
|
<td>
|
|
|
|
<a class="list" href="/rev/2ef0ac749a14?style=gitweb">
|
|
|
|
<b>base</b>
|
2017-11-16 17:21:03 +03:00
|
|
|
<span class="logtags"><span class="phasetag" title="draft">draft</span> <span class="tagtag" title="1.0">1.0</span> <span class="bookmarktag" title="anotherthing">anotherthing</span> </span>
|
2010-09-26 22:41:32 +04:00
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td class="link" nowrap>
|
|
|
|
<a href="/rev/2ef0ac749a14?style=gitweb">changeset</a> |
|
|
|
|
<a href="/file/2ef0ac749a14?style=gitweb">files</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="light"><td colspan="4"><a class="list" href="/shortlog?style=gitweb">...</a></td></tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<div><a class="title" href="/tags?style=gitweb">tags</a></div>
|
|
|
|
<table cellspacing="0">
|
|
|
|
|
|
|
|
<tr class="parity0">
|
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"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td>
|
2015-09-26 12:15:58 +03:00
|
|
|
<td><a class="list" href="/rev/1.0?style=gitweb"><b>1.0</b></a></td>
|
2010-09-26 22:41:32 +04:00
|
|
|
<td class="link">
|
|
|
|
<a href="/rev/2ef0ac749a14?style=gitweb">changeset</a> |
|
|
|
|
<a href="/log/2ef0ac749a14?style=gitweb">changelog</a> |
|
|
|
|
<a href="/file/2ef0ac749a14?style=gitweb">files</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="light"><td colspan="3"><a class="list" href="/tags?style=gitweb">...</a></td></tr>
|
|
|
|
</table>
|
|
|
|
|
2011-04-10 05:01:42 +04:00
|
|
|
<div><a class="title" href="/bookmarks?style=gitweb">bookmarks</a></div>
|
|
|
|
<table cellspacing="0">
|
|
|
|
|
|
|
|
<tr class="parity0">
|
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"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td>
|
2016-03-31 10:22:06 +03:00
|
|
|
<td><a class="list" href="/rev/something?style=gitweb"><b>something</b></a></td>
|
2011-04-10 05:01:42 +04:00
|
|
|
<td class="link">
|
2016-03-31 10:22:06 +03:00
|
|
|
<a href="/rev/cad8025a2e87?style=gitweb">changeset</a> |
|
|
|
|
<a href="/log/cad8025a2e87?style=gitweb">changelog</a> |
|
|
|
|
<a href="/file/cad8025a2e87?style=gitweb">files</a>
|
2011-04-10 05:01:42 +04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="parity1">
|
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"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td>
|
2016-03-31 10:22:06 +03:00
|
|
|
<td><a class="list" href="/rev/anotherthing?style=gitweb"><b>anotherthing</b></a></td>
|
2011-04-10 05:01:42 +04:00
|
|
|
<td class="link">
|
2016-03-31 10:22:06 +03:00
|
|
|
<a href="/rev/2ef0ac749a14?style=gitweb">changeset</a> |
|
|
|
|
<a href="/log/2ef0ac749a14?style=gitweb">changelog</a> |
|
|
|
|
<a href="/file/2ef0ac749a14?style=gitweb">files</a>
|
2011-04-10 05:01:42 +04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="light"><td colspan="3"><a class="list" href="/bookmarks?style=gitweb">...</a></td></tr>
|
|
|
|
</table>
|
|
|
|
|
2012-07-30 10:18:25 +04:00
|
|
|
<div><a class="title" href="/branches?style=gitweb">branches</a></div>
|
2010-09-26 22:41:32 +04:00
|
|
|
<table cellspacing="0">
|
|
|
|
|
|
|
|
<tr class="parity0">
|
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"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td>
|
2015-09-26 12:15:58 +03:00
|
|
|
<td class="open"><a class="list" href="/shortlog/unstable?style=gitweb"><b>unstable</b></a></td>
|
2012-01-22 16:35:26 +04:00
|
|
|
<td class="link">
|
2012-10-15 20:43:34 +04:00
|
|
|
<a href="/changeset/cad8025a2e87?style=gitweb">changeset</a> |
|
|
|
|
<a href="/log/cad8025a2e87?style=gitweb">changelog</a> |
|
|
|
|
<a href="/file/cad8025a2e87?style=gitweb">files</a>
|
2012-01-22 16:35:26 +04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="parity1">
|
|
|
|
<td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td>
|
2015-09-26 12:15:58 +03:00
|
|
|
<td class="inactive"><a class="list" href="/shortlog/stable?style=gitweb"><b>stable</b></a></td>
|
2010-09-26 22:41:32 +04:00
|
|
|
<td class="link">
|
|
|
|
<a href="/changeset/1d22e65f027e?style=gitweb">changeset</a> |
|
|
|
|
<a href="/log/1d22e65f027e?style=gitweb">changelog</a> |
|
|
|
|
<a href="/file/1d22e65f027e?style=gitweb">files</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2012-01-22 16:35:26 +04:00
|
|
|
<tr class="parity0">
|
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"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td>
|
2015-09-26 12:15:58 +03:00
|
|
|
<td class="inactive"><a class="list" href="/shortlog/default?style=gitweb"><b>default</b></a></td>
|
2010-09-26 22:41:32 +04:00
|
|
|
<td class="link">
|
|
|
|
<a href="/changeset/a4f92ed23982?style=gitweb">changeset</a> |
|
|
|
|
<a href="/log/a4f92ed23982?style=gitweb">changelog</a> |
|
|
|
|
<a href="/file/a4f92ed23982?style=gitweb">files</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="light">
|
2016-09-21 14:52:48 +03:00
|
|
|
<td colspan="3"><a class="list" href="/branches?style=gitweb">...</a></td>
|
2010-09-26 22:41:32 +04:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<div class="page_footer">
|
|
|
|
<div class="page_footer_text">test</div>
|
|
|
|
<div class="rss_logo">
|
|
|
|
<a href="/rss-log">RSS</a>
|
|
|
|
<a href="/atom-log">Atom</a>
|
|
|
|
</div>
|
|
|
|
<br />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'graph/?style=gitweb'
|
2010-09-26 22:41:32 +04:00
|
|
|
200 Script output follows
|
|
|
|
|
|
|
|
<?xml version="1.0" encoding="ascii"?>
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" 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-gitweb.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: Graph</title>
|
|
|
|
<link rel="alternate" type="application/atom+xml"
|
|
|
|
href="/atom-log" title="Atom feed for test"/>
|
|
|
|
<link rel="alternate" type="application/rss+xml"
|
|
|
|
href="/rss-log" title="RSS feed for test"/>
|
|
|
|
<!--[if IE]><script type="text/javascript" src="/static/excanvas.js"></script><![endif]-->
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<div class="page_header">
|
2015-09-30 23:43:49 +03:00
|
|
|
<a href="https://mercurial-scm.org/" title="Mercurial" style="float: right;">Mercurial</a>
|
2013-01-09 04:16:29 +04:00
|
|
|
<a href="/">Mercurial</a> / graph
|
2017-06-09 23:45:36 +03:00
|
|
|
</div>
|
2017-06-09 23:42:38 +03:00
|
|
|
|
2010-09-26 22:41:32 +04:00
|
|
|
<div class="page_nav">
|
2017-06-09 23:55:51 +03:00
|
|
|
<div>
|
2010-09-26 22:41:32 +04:00
|
|
|
<a href="/summary?style=gitweb">summary</a> |
|
2015-09-26 13:16:49 +03:00
|
|
|
<a href="/shortlog/tip?style=gitweb">shortlog</a> |
|
2015-06-16 09:37:53 +03:00
|
|
|
<a href="/log/tip?style=gitweb">changelog</a> |
|
2010-09-26 22:41:32 +04:00
|
|
|
graph |
|
|
|
|
<a href="/tags?style=gitweb">tags</a> |
|
2011-04-03 18:47:05 +04:00
|
|
|
<a href="/bookmarks?style=gitweb">bookmarks</a> |
|
2010-09-26 22:41:32 +04:00
|
|
|
<a href="/branches?style=gitweb">branches</a> |
|
2015-06-16 09:37:53 +03:00
|
|
|
<a href="/file/tip?style=gitweb">files</a> |
|
2010-10-09 21:27:14 +04:00
|
|
|
<a href="/help?style=gitweb">help</a>
|
2010-09-26 22:41:32 +04:00
|
|
|
<br/>
|
2015-06-16 09:37:53 +03:00
|
|
|
<a href="/graph/tip?revcount=30&style=gitweb">less</a>
|
|
|
|
<a href="/graph/tip?revcount=120&style=gitweb">more</a>
|
2017-06-09 23:55:51 +03:00
|
|
|
| <a href="/graph/2ef0ac749a14?style=gitweb">(0)</a> <a href="/graph/tip?style=gitweb">tip</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="search">
|
|
|
|
<form id="searchform" action="/log">
|
|
|
|
<input type="hidden" name="style" value="gitweb" />
|
|
|
|
<input name="rev" type="text" value="" size="40" />
|
|
|
|
<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>
|
|
|
|
</form>
|
|
|
|
</div>
|
2010-09-26 22:41:32 +04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="title"> </div>
|
|
|
|
|
|
|
|
<noscript>The revision graph only works with JavaScript-enabled browsers.</noscript>
|
|
|
|
|
|
|
|
<div id="wrapper">
|
|
|
|
<ul id="nodebgs"></ul>
|
2017-12-10 10:56:22 +03:00
|
|
|
<canvas id="graph"></canvas>
|
2017-12-04 12:43:45 +03:00
|
|
|
<ul id="graphnodes"><li data-node="cad8025a2e87">
|
|
|
|
<span class="desc">
|
|
|
|
<a class="list" href="/rev/cad8025a2e87?style=gitweb"><b>branch commit with null character: </b></a>
|
|
|
|
</span>
|
|
|
|
<span class="logtags"><span class="phasetag" title="draft">draft</span> <span class="branchtag" title="unstable">unstable</span> <span class="tagtag" title="tip">tip</span> <span class="bookmarktag" title="something">something</span> </span>
|
|
|
|
<span class="info">1970-01-01, by test</span>
|
|
|
|
</li>
|
|
|
|
<li data-node="1d22e65f027e">
|
|
|
|
<span class="desc">
|
|
|
|
<a class="list" href="/rev/1d22e65f027e?style=gitweb"><b>branch</b></a>
|
|
|
|
</span>
|
|
|
|
<span class="logtags"><span class="phasetag" title="draft">draft</span> <span class="branchtag" title="stable">stable</span> </span>
|
|
|
|
<span class="info">1970-01-01, by test</span>
|
|
|
|
</li>
|
|
|
|
<li data-node="a4f92ed23982">
|
|
|
|
<span class="desc">
|
|
|
|
<a class="list" href="/rev/a4f92ed23982?style=gitweb"><b>Added tag 1.0 for changeset 2ef0ac749a14</b></a>
|
|
|
|
</span>
|
|
|
|
<span class="logtags"><span class="phasetag" title="draft">draft</span> <span class="branchtag" title="default">default</span> </span>
|
|
|
|
<span class="info">1970-01-01, by test</span>
|
|
|
|
</li>
|
|
|
|
<li data-node="2ef0ac749a14">
|
|
|
|
<span class="desc">
|
|
|
|
<a class="list" href="/rev/2ef0ac749a14?style=gitweb"><b>base</b></a>
|
|
|
|
</span>
|
|
|
|
<span class="logtags"><span class="phasetag" title="draft">draft</span> <span class="tagtag" title="1.0">1.0</span> <span class="bookmarktag" title="anotherthing">anotherthing</span> </span>
|
|
|
|
<span class="info">1970-01-01, by test</span>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2010-09-26 22:41:32 +04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
hgweb: only include graph-related data in jsdata variable on /graph pages (BC)
Historically, client-side graph code was not only rendering the graph itself,
but it was also adding all of the changeset information to the page as well.
It meant that JavaScript code needed to construct valid HTML as a string
(although proper escaping was done server-side). It wasn't too clunky, even
though it meant that a lot of server-side things were duplicated client-side
for no good reason, but the worst thing about it was the data format it used.
It was somewhat future-proof, but not human-friendly, because it was just a
tuple: it was possible to append things to it (as was done in e.g.
4d7cfa1867b5), but you'd then have to remember the indices and reading the
resulting JS code wasn't easy, because cur[8] is not descriptive at all.
So what would need to happen for graph to have more features, such as more
changeset information or a different vertex style (branch-closing, obsolete)?
First you'd need to take some property, process it (e.g. escape and pass
through templatefilters function, and mind the encoding too), append it to
jsdata and remember its index, then go add nearly identical JavaScript code to
4 different hgweb themes that use jsdata to render HTML, and finally try and
forget how brittle it all felt. Oh yeah, and the indices go to double digits if
we add 2 more items, say phase and obsolescence, and there are more to come.
Rendering vertex in a different style would need another property (say,
character "o", "_", or "x"), except if you want to be backwards-compatible, it
would need to go after tags and bookmarks, and that just doesn't feel right.
So here I'm trying to fix both the duplication of code and the data format:
- changesets will be rendered by hgweb templates the same way as changelog and
other such pages, so jsdata won't need any information that's not needed for
rendering the graph itself
- jsdata will be a dict, or an Object in JS, which is a lot nicer to humans and
is a lot more future-proof in the long run, because it doesn't use numeric
indices
What about hgweb themes? Obviously, this will break all hgweb themes that
render graph in JavaScript, including 3rd-party custom ones. But this will also
reduce the size of client-side code and make it more uniform, so that it can be
shared across hgweb themes, further reducing its size. The next few patches
demonstrate that it's not hard to adapt a theme to these changes. And in a
later series, I'm planning to move duplicate JS code from */graph.tmpl to
mercurial.js and leave only 4 lines of code embedded in those <script>
elements, and even that would be just to allow redefining graph.vertex
function. So adapting a custom 3rd-party theme to these changes would mean:
- creating or copying graphnode.tmpl and adding it to the map file (if a theme
doesn't already use __base__)
- modifying one line in graph.tmpl and simply removing the bigger part of
JavaScript code from there
Making these changes in this patch and not updating every hgweb theme that uses
jsdata at the same time is a bit of a cheat to make this series more
manageable: /graph pages that use jsdata are broken by this patch, but since
there are no tests that would detect this, bisect works fine; and themes are
updated separately, in the next 4 patches of this series to ease reviewing.
2017-12-01 11:00:40 +03:00
|
|
|
var data = [{"edges": [[0, 0, 1, 3, "FF0000"]], "node": "cad8025a2e87", "vertex": [0, 1]}, {"edges": [[0, 0, 1, 3, ""]], "node": "1d22e65f027e", "vertex": [0, 1]}, {"edges": [[0, 0, 1, 3, ""]], "node": "a4f92ed23982", "vertex": [0, 1]}, {"edges": [], "node": "2ef0ac749a14", "vertex": [0, 1]}];
|
2010-09-26 22:41:32 +04:00
|
|
|
var graph = new Graph();
|
|
|
|
graph.scale(39);
|
|
|
|
|
2017-11-22 16:49:36 +03:00
|
|
|
graph.vertex = function(x, y, radius, color, parity, cur) {
|
2017-12-06 07:10:16 +03:00
|
|
|
Graph.prototype.vertex.apply(this, arguments);
|
|
|
|
return ['<li class="bg parity' + parity + '"></li>', ''];
|
2010-09-26 22:41:32 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
graph.render(data);
|
|
|
|
</script>
|
|
|
|
|
2017-06-21 06:53:29 +03:00
|
|
|
<div class="extra_nav">
|
2015-06-16 09:37:53 +03:00
|
|
|
<a href="/graph/tip?revcount=30&style=gitweb">less</a>
|
|
|
|
<a href="/graph/tip?revcount=120&style=gitweb">more</a>
|
2012-07-30 01:16:20 +04:00
|
|
|
| <a href="/graph/2ef0ac749a14?style=gitweb">(0)</a> <a href="/graph/tip?style=gitweb">tip</a>
|
2010-09-26 22:41:32 +04:00
|
|
|
</div>
|
|
|
|
|
2014-01-16 18:23:31 +04:00
|
|
|
<script type="text/javascript">
|
|
|
|
ajaxScrollInit(
|
2017-12-11 10:43:56 +03:00
|
|
|
'/graph/%next%?graphtop=cad8025a2e87f88c06259790adfa15acb4080123&style=gitweb',
|
|
|
|
'', <!-- NEXTHASH
|
|
|
|
function (htmlText, previousVal) {
|
|
|
|
var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/);
|
|
|
|
return m ? m[1] : null;
|
|
|
|
},
|
2014-01-16 18:23:31 +04:00
|
|
|
'#wrapper',
|
|
|
|
'<div class="%class%" style="text-align: center;">%text%</div>',
|
|
|
|
'graph'
|
|
|
|
);
|
|
|
|
</script>
|
|
|
|
|
2010-09-26 22:41:32 +04:00
|
|
|
<div class="page_footer">
|
|
|
|
<div class="page_footer_text">test</div>
|
|
|
|
<div class="rss_logo">
|
|
|
|
<a href="/rss-log">RSS</a>
|
|
|
|
<a href="/atom-log">Atom</a>
|
|
|
|
</div>
|
|
|
|
<br />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|
2012-05-21 02:20:05 +04:00
|
|
|
raw graph
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'graph/?style=raw'
|
2012-05-21 02:20:05 +04:00
|
|
|
200 Script output follows
|
|
|
|
|
|
|
|
|
|
|
|
# HG graph
|
2012-10-15 20:43:34 +04:00
|
|
|
# Node ID cad8025a2e87f88c06259790adfa15acb4080123
|
2012-05-21 02:20:05 +04:00
|
|
|
# Rows shown 4
|
|
|
|
|
2012-10-15 20:43:34 +04:00
|
|
|
changeset: cad8025a2e87
|
2012-05-21 02:20:05 +04:00
|
|
|
user: test
|
|
|
|
date: 1970-01-01
|
2012-10-15 20:43:34 +04:00
|
|
|
summary: branch commit with null character: \x00 (esc)
|
2012-05-21 02:20:05 +04:00
|
|
|
branch: unstable
|
|
|
|
tag: tip
|
|
|
|
bookmark: something
|
|
|
|
|
|
|
|
node: (0, 0) (color 1)
|
|
|
|
edge: (0, 0) -> (0, 1) (color 1)
|
|
|
|
|
|
|
|
changeset: 1d22e65f027e
|
|
|
|
user: test
|
|
|
|
date: 1970-01-01
|
|
|
|
summary: branch
|
|
|
|
branch: stable
|
|
|
|
|
|
|
|
node: (0, 1) (color 1)
|
|
|
|
edge: (0, 1) -> (0, 2) (color 1)
|
|
|
|
|
|
|
|
changeset: a4f92ed23982
|
|
|
|
user: test
|
|
|
|
date: 1970-01-01
|
|
|
|
summary: Added tag 1.0 for changeset 2ef0ac749a14
|
|
|
|
branch: default
|
|
|
|
|
|
|
|
node: (0, 2) (color 1)
|
|
|
|
edge: (0, 2) -> (0, 3) (color 1)
|
|
|
|
|
|
|
|
changeset: 2ef0ac749a14
|
|
|
|
user: test
|
|
|
|
date: 1970-01-01
|
|
|
|
summary: base
|
|
|
|
tag: 1.0
|
|
|
|
bookmark: anotherthing
|
|
|
|
|
|
|
|
node: (0, 3) (color 1)
|
|
|
|
|
|
|
|
|
2010-09-26 22:41:32 +04:00
|
|
|
|
|
|
|
capabilities
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT '?cmd=capabilities'; echo
|
2010-09-26 22:41:32 +04:00
|
|
|
200 Script output follows
|
|
|
|
|
2017-12-05 21:06:46 +03:00
|
|
|
lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch $USUAL_BUNDLE2_CAPS$ unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=*zlib (glob)
|
2010-09-26 22:41:32 +04:00
|
|
|
|
|
|
|
heads
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT '?cmd=heads'
|
2010-09-26 22:41:32 +04:00
|
|
|
200 Script output follows
|
|
|
|
|
2012-10-15 20:43:34 +04:00
|
|
|
cad8025a2e87f88c06259790adfa15acb4080123
|
2010-09-26 22:41:32 +04:00
|
|
|
|
|
|
|
branches
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT '?cmd=branches&nodes=0000000000000000000000000000000000000000'
|
2010-09-26 22:41:32 +04:00
|
|
|
200 Script output follows
|
|
|
|
|
|
|
|
0000000000000000000000000000000000000000 0000000000000000000000000000000000000000 0000000000000000000000000000000000000000 0000000000000000000000000000000000000000
|
|
|
|
|
|
|
|
changegroup
|
|
|
|
|
2018-02-10 00:08:38 +03:00
|
|
|
#if common-zlib
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT '?cmd=changegroup&roots=0000000000000000000000000000000000000000'
|
2010-09-26 22:41:32 +04:00
|
|
|
200 Script output follows
|
|
|
|
|
2012-10-15 20:43:34 +04:00
|
|
|
x\x9c\xbd\x94MHTQ\x14\xc7'+\x9d\xc66\x81\x89P\xc1\xa3\x14\xcct\xba\xef\xbe\xfb\xde\xbb\xcfr0\xb3"\x02\x11[%\x98\xdcO\xa7\xd2\x19\x98y\xd2\x07h"\x96\xa0e\xda\xa6lUY-\xca\x08\xa2\x82\x16\x96\xd1\xa2\xf0#\xc8\x95\x1b\xdd$!m*"\xc8\x82\xea\xbe\x9c\x01\x85\xc9\x996\x1d\xf8\xc1\xe3~\x9d\xff9\xef\x7f\xaf\xcf\xe7\xbb\x19\xfc4\xec^\xcb\x9b\xfbz\xa6\xbe\xb3\x90_\xef/\x8d\x9e\xad\xbe\xe4\xcb0\xd2\xec\xad\x12X:\xc8\x12\x12\xd9:\x95\xba \x1cG\xb7$\xc5\xc44\x1c(\x1d\x03\x03\xdb\x84\x0cK#\xe0\x8a\xb8\x1b\x00\x1a\x08p\xb2SF\xa3\x01\x8f\x00%q\xa1Ny{k!8\xe5t>[{\xe2j\xddl\xc3\xcf\xee\xd0\xddW\x9ff3U\x9djobj\xbb\x87E\x88\x05l\x001\x12\x18\x13\xc6 \xb7(\xe3\x02a\x80\x81\xcel.u\x9b\x1b\x8c\x91\x80Z\x0c\x15\x15 (esc)
|
|
|
|
\x7f0\xdc\xe4\x92\xa6\xb87\x16\xf2\xcaT\x14\xef\xe1\\pM\r (no-eol) (esc)
|
|
|
|
kz\x10h2\x1a\xd3X\x98D\x9aD\\\xb8\x1a\x14\x12\x10f#\x87\xe8H\xad\x1d\xd9\xb2\xf5}cV{}\xf6:\xb3\xbd\xad\xaf\xd5?\xb9\xe3\xf6\xd4\xcf\x15\x84.\x8bT{\x97\x16\xa4Z\xeaX\x10\xabL\xc8\x81DJ\xc8\x18\x00\xccq\x80A-j2j \x83\x1b\x02\x03O|PQ\xae\xc8W\x9d\xd7h\x8cDX\xb8<\xee\x12\xda,\xfe\xfc\x005\xb3K\xc1\x14\xd9\x8b\xb3^C\xc7\xa6\xb3\xea\x83\xdd\xdf.d\x17]\xe9\xbf\xff}\xe3\xf0#\xff\xaam+\x88Z\x16\xa9\xf6&tT+\xf2\x96\xe8h\x8d$\x94\xa8\xf1}\x8aC\x8a\xc2\xc59\x8dE[Z\x8e\xb9\xda\xc9cnX\x8b\xb467{\xad\x8e\x11\xe6\x8aX\xb9\x96L52\xbf\xb0\xff\xe3\x81M\x9fk\x07\xf3\x7f\xf4\x1c\xbe\xbc\x80s\xea^\x7fY\xc1\xca\xcb"\x8d\xbb\x1a\x16]\xea\x83\x82Cb8:$\x80Bd\x02\x08\x90!\x88P^\x12\x88B\xdba:\xa6\x0e\xe0<\xf0O\x8bU\x82\x81\xe3wr\xb2\xba\xe6{&\xcaNL\xceutln\xfb\xdc\xb6{,\xd3\x82\xd28IO\xb8\xd7G\x0cF!\x16\x86\x8d\x11@\x02A\xcb\xc2\x94Q\x04L\x01\x00u8\x86&0\xb0EtO\xd0\xc5\x9c#\xb4'\xef`\xc9\xaf\xd2\xd1\xf5\x83\xab\x9f<\x1e\x8fT\x84:R\x89L%\xe8/\xee \x8a>E\x99\xd7\x1dlZ\x08B\x1dc\xf5\\0\x83\x01B\x95Im\x1d[\x92s*\x99`L\xd7\x894e qfn\xb2 (esc)
|
|
|
|
\xa5mh\xbc\xf8\xdd\xa9\xca\x9a*\xd9;^y\xd4\xf7t\xbah\xf5\xf9\x1b\x99\xfe\xe94\xcd*[zu\x05\x92\xa6ML\x82!D\x16"\xc0\x01\x90Y\xd2\x96\x08a\xe9\xdd\xfa\xa4\xb6\xc4#\xa6\xbexpjh\xa0$\xb7\xb0V\xdb\xfba\xbef\xee\xe1\xe9\x17\xbd\xfd3\x99JKc\xc25\x89+\xeaE\xce\xffK\x17>\xc7\xb7\x16tE^\x8e\xde\x0bu\x17Dg\x9e\xbf\x99\xd8\xf0\xa01\xd3\xbc+\xbc\x13k\x14~\x12\x89\xbaa\x11K\x96\xe5\xfb\r (no-eol) (esc)
|
|
|
|
\x95)\xbe\xf6 (no-eol) (esc)
|
2018-02-10 00:08:38 +03:00
|
|
|
#endif
|
2010-09-26 22:41:32 +04:00
|
|
|
|
|
|
|
stream_out
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT '?cmd=stream_out'
|
2010-09-26 22:41:32 +04:00
|
|
|
200 Script output follows
|
|
|
|
|
|
|
|
1
|
|
|
|
|
|
|
|
failing unbundle, requires POST request
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT '?cmd=unbundle'
|
2010-09-26 22:41:32 +04:00
|
|
|
405 push requires POST request
|
|
|
|
|
|
|
|
0
|
|
|
|
push requires POST request
|
|
|
|
[1]
|
|
|
|
|
|
|
|
Static files
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'static/style.css'
|
2010-09-26 22:41:32 +04:00
|
|
|
200 Script output follows
|
|
|
|
|
|
|
|
a { text-decoration:none; }
|
|
|
|
.age { white-space:nowrap; }
|
|
|
|
.date { white-space:nowrap; }
|
|
|
|
.indexlinks { white-space:nowrap; }
|
2015-10-07 23:08:14 +03:00
|
|
|
.parity0 { background-color: #ddd; color: #000; }
|
|
|
|
.parity1 { background-color: #eee; color: #000; }
|
2010-09-26 22:41:32 +04:00
|
|
|
.lineno { width: 60px; color: #aaa; font-size: smaller;
|
|
|
|
text-align: right; }
|
|
|
|
.plusline { color: green; }
|
|
|
|
.minusline { color: red; }
|
|
|
|
.atline { color: purple; }
|
|
|
|
.annotate { font-size: smaller; text-align: right; padding-right: 1em; }
|
2016-06-02 17:26:50 +03:00
|
|
|
tr.thisrev a { color:#999999; text-decoration: none; }
|
|
|
|
tr.thisrev pre { color:#009900; }
|
2016-10-08 13:32:54 +03:00
|
|
|
td.annotate {
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2016-06-28 12:42:42 +03:00
|
|
|
div.annotate-info {
|
|
|
|
display: none;
|
|
|
|
position: absolute;
|
|
|
|
background-color: #FFFFFF;
|
2016-07-25 07:59:52 +03:00
|
|
|
border: 1px solid #888;
|
2016-06-28 12:42:42 +03:00
|
|
|
text-align: left;
|
|
|
|
color: #000000;
|
|
|
|
padding: 5px;
|
|
|
|
}
|
|
|
|
div.annotate-info a { color: #0000FF; }
|
|
|
|
td.annotate:hover div.annotate-info { display: inline; }
|
2010-09-26 22:41:32 +04:00
|
|
|
.buttons a {
|
|
|
|
background-color: #666;
|
|
|
|
padding: 2pt;
|
|
|
|
color: white;
|
2013-04-20 22:09:17 +04:00
|
|
|
font-family: sans-serif;
|
2010-09-26 22:41:32 +04:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
.navigate a {
|
|
|
|
background-color: #ccc;
|
|
|
|
padding: 2pt;
|
2013-04-20 22:09:17 +04:00
|
|
|
font-family: sans-serif;
|
2010-09-26 22:41:32 +04:00
|
|
|
color: black;
|
|
|
|
}
|
|
|
|
|
|
|
|
.metatag {
|
|
|
|
background-color: #888;
|
|
|
|
color: white;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Common */
|
|
|
|
pre { margin: 0; }
|
|
|
|
|
|
|
|
.logo {
|
|
|
|
float: right;
|
|
|
|
clear: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Changelog/Filelog entries */
|
|
|
|
.logEntry { width: 100%; }
|
|
|
|
.logEntry .age { width: 15%; }
|
2014-04-17 04:36:09 +04:00
|
|
|
.logEntry th.label { width: 16em; }
|
2010-09-26 22:41:32 +04:00
|
|
|
.logEntry th { font-weight: normal; text-align: right; vertical-align: top; }
|
|
|
|
.logEntry th.age, .logEntry th.firstline { font-weight: bold; }
|
|
|
|
.logEntry th.firstline { text-align: left; width: inherit; }
|
|
|
|
|
|
|
|
/* Shortlog entries */
|
|
|
|
.slogEntry { width: 100%; }
|
|
|
|
.slogEntry .age { width: 8em; }
|
|
|
|
.slogEntry td { font-weight: normal; text-align: left; vertical-align: top; }
|
|
|
|
.slogEntry td.author { width: 15em; }
|
|
|
|
|
|
|
|
/* Tag entries */
|
|
|
|
#tagEntries { list-style: none; margin: 0; padding: 0; }
|
|
|
|
#tagEntries .tagEntry { list-style: none; margin: 0; padding: 0; }
|
|
|
|
|
|
|
|
/* Changeset entry */
|
|
|
|
#changesetEntry { }
|
|
|
|
#changesetEntry th { font-weight: normal; background-color: #888; color: #fff; text-align: right; }
|
|
|
|
#changesetEntry th.files, #changesetEntry th.description { vertical-align: top; }
|
|
|
|
|
|
|
|
/* File diff view */
|
|
|
|
#filediffEntry { }
|
|
|
|
#filediffEntry th { font-weight: normal; background-color: #888; color: #fff; text-align: right; }
|
|
|
|
|
|
|
|
/* Graph */
|
|
|
|
div#wrapper {
|
|
|
|
position: relative;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
canvas {
|
|
|
|
position: absolute;
|
|
|
|
z-index: 5;
|
|
|
|
top: -0.6em;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul#nodebgs {
|
|
|
|
list-style: none inside none;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
top: -0.7em;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul#graphnodes li, ul#nodebgs li {
|
|
|
|
height: 39px;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul#graphnodes {
|
|
|
|
position: absolute;
|
|
|
|
z-index: 10;
|
|
|
|
top: -0.85em;
|
|
|
|
list-style: none inside none;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul#graphnodes li .info {
|
|
|
|
display: block;
|
|
|
|
font-size: 70%;
|
|
|
|
}
|
|
|
|
|
2015-09-20 14:11:31 +03:00
|
|
|
Stop and restart the server at the directory different from the repository
|
|
|
|
root. Even in such case, file patterns should be resolved relative to the
|
|
|
|
repository root. (issue4568)
|
|
|
|
|
|
|
|
$ killdaemons.py
|
|
|
|
$ hg serve --config server.preferuncompressed=True -n test \
|
|
|
|
> -p $HGPORT -d --pid-file=`pwd`/hg.pid -E `pwd`/errors.log \
|
|
|
|
> --cwd .. -R `pwd`
|
|
|
|
$ cat hg.pid >> $DAEMON_PIDS
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT 'log?rev=adds("foo")&style=raw'
|
2015-09-20 14:11:31 +03:00
|
|
|
200 Script output follows
|
|
|
|
|
|
|
|
|
|
|
|
# HG changesets search
|
|
|
|
# Node ID cad8025a2e87f88c06259790adfa15acb4080123
|
|
|
|
# Query "adds("foo")"
|
|
|
|
# Mode revset expression search
|
|
|
|
|
|
|
|
changeset: 2ef0ac749a14e4f57a5a822464a0902c6f7f448f
|
|
|
|
revision: 0
|
|
|
|
user: test
|
|
|
|
date: Thu, 01 Jan 1970 00:00:00 +0000
|
|
|
|
summary: base
|
|
|
|
tag: 1.0
|
|
|
|
bookmark: anotherthing
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-04-04 02:00:47 +04:00
|
|
|
capabilities
|
|
|
|
|
2015-10-20 13:25:09 +03:00
|
|
|
(plain version to check the format)
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT '?cmd=capabilities' | dd ibs=75 count=1 2> /dev/null; echo
|
2012-04-04 02:00:47 +04:00
|
|
|
200 Script output follows
|
|
|
|
|
2015-10-20 13:25:09 +03:00
|
|
|
lookup changegroupsubset branchmap pushkey known
|
|
|
|
|
|
|
|
(spread version to check the content)
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT '?cmd=capabilities' | tr ' ' '\n'; echo
|
2015-10-20 13:25:09 +03:00
|
|
|
200
|
|
|
|
Script
|
|
|
|
output
|
|
|
|
follows
|
|
|
|
|
|
|
|
lookup
|
|
|
|
changegroupsubset
|
|
|
|
branchmap
|
|
|
|
pushkey
|
|
|
|
known
|
|
|
|
getbundle
|
|
|
|
unbundlehash
|
|
|
|
batch
|
|
|
|
stream-preferred
|
2015-10-20 13:25:51 +03:00
|
|
|
streamreqs=generaldelta,revlogv1
|
2017-11-05 10:23:12 +03:00
|
|
|
$USUAL_BUNDLE2_CAPS$
|
2015-10-20 13:25:09 +03:00
|
|
|
unbundle=HG10GZ,HG10BZ,HG10UN
|
|
|
|
httpheader=1024
|
2016-12-25 01:21:46 +03:00
|
|
|
httpmediatype=0.1rx,0.1tx,0.2tx
|
|
|
|
compression=*zlib (glob)
|
2012-04-04 02:00:47 +04:00
|
|
|
|
|
|
|
heads
|
|
|
|
|
2010-09-26 22:41:32 +04:00
|
|
|
ERRORS ENCOUNTERED
|
|
|
|
|
2012-07-30 01:16:20 +04:00
|
|
|
$ cat errors.log
|
2015-06-08 22:55:40 +03:00
|
|
|
$ killdaemons.py
|
2012-07-30 01:16:20 +04:00
|
|
|
|
|
|
|
$ cd ..
|
|
|
|
|
|
|
|
Test graph paging
|
|
|
|
|
|
|
|
$ mkcommit() {
|
|
|
|
> echo $1 >> a
|
|
|
|
> hg ci -Am $1 a
|
|
|
|
> }
|
|
|
|
|
|
|
|
$ hg init graph
|
|
|
|
$ cd graph
|
|
|
|
$ mkcommit 0
|
|
|
|
$ mkcommit 1
|
|
|
|
$ mkcommit 2
|
|
|
|
$ mkcommit 3
|
|
|
|
$ mkcommit 4
|
|
|
|
$ mkcommit 5
|
|
|
|
$ hg serve --config server.uncompressed=False \
|
|
|
|
> --config web.maxshortchanges=2 \
|
|
|
|
> -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log
|
|
|
|
$ cat hg.pid >> $DAEMON_PIDS
|
|
|
|
$ hg log -G --template '{rev}:{node|short} {desc}\n'
|
|
|
|
@ 5:aed2d9c1d0e7 5
|
|
|
|
|
|
|
|
|
o 4:b60a39a85a01 4
|
|
|
|
|
|
|
|
|
o 3:ada793dcc118 3
|
|
|
|
|
|
|
|
|
o 2:ab4f1438558b 2
|
|
|
|
|
|
|
|
|
o 1:e06180cbfb0c 1
|
|
|
|
|
|
|
|
|
o 0:b4e73ffab476 0
|
|
|
|
|
|
|
|
|
|
|
|
Test paging
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT \
|
2012-07-30 01:16:20 +04:00
|
|
|
> 'graph/?style=raw' | grep changeset
|
|
|
|
changeset: aed2d9c1d0e7
|
|
|
|
changeset: b60a39a85a01
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT \
|
2012-07-30 01:16:20 +04:00
|
|
|
> 'graph/?style=raw&revcount=3' | grep changeset
|
|
|
|
changeset: aed2d9c1d0e7
|
|
|
|
changeset: b60a39a85a01
|
|
|
|
changeset: ada793dcc118
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT \
|
2012-07-30 01:16:20 +04:00
|
|
|
> 'graph/e06180cbfb0?style=raw&revcount=3' | grep changeset
|
|
|
|
changeset: e06180cbfb0c
|
|
|
|
changeset: b4e73ffab476
|
|
|
|
|
2017-02-16 20:38:52 +03:00
|
|
|
$ get-with-headers.py $LOCALIP:$HGPORT \
|
2012-07-30 01:16:20 +04:00
|
|
|
> 'graph/b4e73ffab47?style=raw&revcount=3' | grep changeset
|
|
|
|
changeset: b4e73ffab476
|
|
|
|
|
2010-09-26 22:41:32 +04:00
|
|
|
$ cat errors.log
|
2012-06-11 03:40:51 +04:00
|
|
|
|
2017-04-02 08:51:07 +03:00
|
|
|
MSYS changes environment variables starting with '/' into 'C:/MinGW/msys/1.0',
|
|
|
|
which changes the status line to '400 no such method: C:'.
|
|
|
|
|
|
|
|
#if no-msys
|
|
|
|
|
2013-01-27 21:39:51 +04:00
|
|
|
bookmarks view doesn't choke on bookmarks on secret changesets (issue3774)
|
2013-01-25 21:43:54 +04:00
|
|
|
|
|
|
|
$ hg phase -fs 4
|
|
|
|
$ hg bookmark -r4 secret
|
|
|
|
$ cat > hgweb.cgi <<HGWEB
|
|
|
|
> from mercurial import demandimport; demandimport.enable()
|
|
|
|
> from mercurial.hgweb import hgweb
|
|
|
|
> from mercurial.hgweb import wsgicgi
|
|
|
|
> app = hgweb('.', 'test')
|
|
|
|
> wsgicgi.launch(app)
|
|
|
|
> HGWEB
|
|
|
|
$ . "$TESTDIR/cgienv"
|
|
|
|
$ PATH_INFO=/bookmarks; export PATH_INFO
|
|
|
|
$ QUERY_STRING='style=raw'
|
2017-07-05 19:10:11 +03:00
|
|
|
$ $PYTHON hgweb.cgi | grep -v ETag:
|
2013-02-05 02:25:25 +04:00
|
|
|
Status: 200 Script output follows\r (esc)
|
|
|
|
Content-Type: text/plain; charset=ascii\r (esc)
|
|
|
|
\r (esc)
|
2013-01-25 21:43:54 +04:00
|
|
|
|
2013-01-28 01:13:53 +04:00
|
|
|
listbookmarks hides secret bookmarks
|
|
|
|
|
|
|
|
$ PATH_INFO=/; export PATH_INFO
|
|
|
|
$ QUERY_STRING='cmd=listkeys&namespace=bookmarks'
|
2017-07-05 19:10:11 +03:00
|
|
|
$ $PYTHON hgweb.cgi
|
2013-02-05 02:25:25 +04:00
|
|
|
Status: 200 Script output follows\r (esc)
|
|
|
|
Content-Type: application/mercurial-0.1\r (esc)
|
|
|
|
Content-Length: 0\r (esc)
|
|
|
|
\r (esc)
|
2013-01-28 01:13:53 +04:00
|
|
|
|
2013-01-29 19:44:51 +04:00
|
|
|
search works with filtering
|
|
|
|
|
|
|
|
$ PATH_INFO=/log; export PATH_INFO
|
|
|
|
$ QUERY_STRING='rev=babar'
|
2017-07-05 19:10:11 +03:00
|
|
|
$ $PYTHON hgweb.cgi > search
|
2013-01-29 19:44:51 +04:00
|
|
|
$ grep Status search
|
|
|
|
Status: 200 Script output follows\r (esc)
|
|
|
|
|
2013-02-05 21:31:43 +04:00
|
|
|
summary works with filtering (issue3810)
|
|
|
|
|
|
|
|
$ PATH_INFO=/summary; export PATH_INFO
|
|
|
|
$ QUERY_STRING='style=monoblue'; export QUERY_STRING
|
2017-07-05 19:10:11 +03:00
|
|
|
$ $PYTHON hgweb.cgi > summary.out
|
2013-02-05 21:31:43 +04:00
|
|
|
$ grep "^Status" summary.out
|
|
|
|
Status: 200 Script output follows\r (esc)
|
|
|
|
|
2013-02-01 01:30:52 +04:00
|
|
|
proper status for filtered revision
|
|
|
|
|
|
|
|
|
|
|
|
(missing rev)
|
|
|
|
|
|
|
|
$ PATH_INFO=/rev/5; export PATH_INFO
|
|
|
|
$ QUERY_STRING='style=raw'
|
2017-07-05 19:10:11 +03:00
|
|
|
$ $PYTHON hgweb.cgi #> search
|
2013-02-01 01:30:52 +04:00
|
|
|
Status: 404 Not Found\r (esc)
|
2016-07-09 09:01:55 +03:00
|
|
|
ETag: W/"*"\r (glob) (esc)
|
2013-02-01 01:30:52 +04:00
|
|
|
Content-Type: text/plain; charset=ascii\r (esc)
|
|
|
|
\r (esc)
|
|
|
|
|
2014-10-18 02:54:43 +04:00
|
|
|
error: filtered revision '5' (not in 'served' subset)
|
2013-02-01 01:30:52 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(filtered rev)
|
|
|
|
|
|
|
|
$ PATH_INFO=/rev/4; export PATH_INFO
|
|
|
|
$ QUERY_STRING='style=raw'
|
2017-07-05 19:10:11 +03:00
|
|
|
$ $PYTHON hgweb.cgi #> search
|
2013-02-01 01:30:52 +04:00
|
|
|
Status: 404 Not Found\r (esc)
|
2016-07-09 09:01:55 +03:00
|
|
|
ETag: W/"*"\r (glob) (esc)
|
2013-02-01 01:30:52 +04:00
|
|
|
Content-Type: text/plain; charset=ascii\r (esc)
|
|
|
|
\r (esc)
|
|
|
|
|
2014-10-18 02:54:43 +04:00
|
|
|
error: filtered revision '4' (not in 'served' subset)
|
2013-02-01 01:30:52 +04:00
|
|
|
|
2013-04-30 15:53:49 +04:00
|
|
|
filtered '0' changeset
|
|
|
|
|
|
|
|
(create new root)
|
|
|
|
$ hg up null
|
|
|
|
0 files updated, 0 files merged, 1 files removed, 0 files unresolved
|
|
|
|
$ echo 'babar' > jungle
|
|
|
|
$ hg add jungle
|
|
|
|
$ hg ci -m 'Babar is in the jungle!'
|
|
|
|
$ hg graft 0::
|
2014-12-09 05:38:23 +03:00
|
|
|
grafting 0:b4e73ffab476 "0"
|
|
|
|
grafting 1:e06180cbfb0c "1"
|
|
|
|
grafting 2:ab4f1438558b "2"
|
|
|
|
grafting 3:ada793dcc118 "3"
|
|
|
|
grafting 4:b60a39a85a01 "4" (secret)
|
|
|
|
grafting 5:aed2d9c1d0e7 "5"
|
2013-04-30 15:53:49 +04:00
|
|
|
(turning the initial root secret (filtered))
|
|
|
|
$ hg phase --force --secret 0
|
|
|
|
$ PATH_INFO=/graph/; export PATH_INFO
|
|
|
|
$ QUERY_STRING=''
|
2017-07-05 19:10:11 +03:00
|
|
|
$ $PYTHON hgweb.cgi | grep Status
|
2013-04-30 15:53:49 +04:00
|
|
|
Status: 200 Script output follows\r (esc)
|
|
|
|
(check rendered revision)
|
|
|
|
$ QUERY_STRING='style=raw'
|
2017-07-05 19:10:11 +03:00
|
|
|
$ $PYTHON hgweb.cgi | grep -v ETag
|
2013-04-30 15:53:49 +04:00
|
|
|
Status: 200 Script output follows\r (esc)
|
|
|
|
Content-Type: text/plain; charset=ascii\r (esc)
|
|
|
|
\r (esc)
|
|
|
|
|
|
|
|
# HG graph
|
|
|
|
# Node ID 1d9b947fef1fbb382a95c11a8f5a67e9a10b5026
|
|
|
|
# Rows shown 7
|
|
|
|
|
|
|
|
changeset: 1d9b947fef1f
|
|
|
|
user: test
|
|
|
|
date: 1970-01-01
|
|
|
|
summary: 5
|
|
|
|
branch: default
|
|
|
|
tag: tip
|
|
|
|
|
|
|
|
node: (0, 0) (color 1)
|
|
|
|
edge: (0, 0) -> (0, 1) (color 1)
|
|
|
|
|
|
|
|
changeset: 0cfd435fd222
|
|
|
|
user: test
|
|
|
|
date: 1970-01-01
|
|
|
|
summary: 4
|
|
|
|
|
|
|
|
node: (0, 1) (color 1)
|
|
|
|
edge: (0, 1) -> (0, 2) (color 1)
|
|
|
|
|
|
|
|
changeset: 6768b9939e82
|
|
|
|
user: test
|
|
|
|
date: 1970-01-01
|
|
|
|
summary: 3
|
|
|
|
|
|
|
|
node: (0, 2) (color 1)
|
|
|
|
edge: (0, 2) -> (0, 3) (color 1)
|
|
|
|
|
|
|
|
changeset: 05b0497fd125
|
|
|
|
user: test
|
|
|
|
date: 1970-01-01
|
|
|
|
summary: 2
|
|
|
|
|
|
|
|
node: (0, 3) (color 1)
|
|
|
|
edge: (0, 3) -> (0, 4) (color 1)
|
|
|
|
|
|
|
|
changeset: 9c102df67cfb
|
|
|
|
user: test
|
|
|
|
date: 1970-01-01
|
|
|
|
summary: 1
|
|
|
|
|
|
|
|
node: (0, 4) (color 1)
|
|
|
|
edge: (0, 4) -> (0, 5) (color 1)
|
|
|
|
|
|
|
|
changeset: 3ebcd7db11bf
|
|
|
|
user: test
|
|
|
|
date: 1970-01-01
|
|
|
|
summary: 0
|
|
|
|
|
|
|
|
node: (0, 5) (color 1)
|
|
|
|
edge: (0, 5) -> (0, 6) (color 1)
|
|
|
|
|
|
|
|
changeset: c5e9bd96ae01
|
|
|
|
user: test
|
|
|
|
date: 1970-01-01
|
|
|
|
summary: Babar is in the jungle!
|
|
|
|
|
|
|
|
node: (0, 6) (color 1)
|
|
|
|
|
|
|
|
|
2017-04-02 08:51:07 +03:00
|
|
|
#endif
|
2013-04-30 15:53:49 +04:00
|
|
|
|
|
|
|
|
2012-06-11 03:40:51 +04:00
|
|
|
$ cd ..
|
2013-04-30 15:53:49 +04:00
|
|
|
|