summaryrefslogtreecommitdiff
path: root/tests/test-hgweb-commands.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-hgweb-commands.t')
-rw-r--r--tests/test-hgweb-commands.t380
1 files changed, 87 insertions, 293 deletions
diff --git a/tests/test-hgweb-commands.t b/tests/test-hgweb-commands.t
index acf337e..ed07981 100644
--- a/tests/test-hgweb-commands.t
+++ b/tests/test-hgweb-commands.t
@@ -1,5 +1,3 @@
- $ "$TESTDIR/hghave" serve || exit 80
-
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
@@ -22,31 +20,13 @@ Set up the repo
$ echo another > foo
$ hg branch stable
marked working directory as branch stable
- (branches are permanent and global, did you want a bookmark?)
- $ hg ci -Ambranch
- $ hg branch unstable
- marked working directory as branch unstable
- (branches are permanent and global, did you want a bookmark?)
$ hg ci -Ambranch
- $ echo [graph] >> .hg/hgrc
- $ echo default.width = 3 >> .hg/hgrc
- $ echo stable.width = 3 >> .hg/hgrc
- $ echo stable.color = FF0000 >> .hg/hgrc
$ hg serve --config server.uncompressed=False -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'
- @ 3:ba87b23d29ca branch
- |
- o 2:1d22e65f027e branch
- |
- o 1:a4f92ed23982 Added tag 1.0 for changeset 2ef0ac749a14
- |
- o 0:2ef0ac749a14 base
-
Logs and changes
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'log/?style=atom'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/log/?style=atom'
200 Script output follows
<?xml version="1.0" encoding="ascii"?>
@@ -60,22 +40,6 @@ Logs and changes
<entry>
<title>branch</title>
- <id>http://*:$HGPORT/#changeset-ba87b23d29ca67a305625d81a20ac279c1e3f444</id> (glob)
- <link href="http://*:$HGPORT/rev/ba87b23d29ca"/> (glob)
- <author>
- <name>test</name>
- <email>&#116;&#101;&#115;&#116;</email>
- </author>
- <updated>1970-01-01T00:00:00+00:00</updated>
- <published>1970-01-01T00:00:00+00:00</published>
- <content type="xhtml">
- <div xmlns="http://www.w3.org/1999/xhtml">
- <pre xml:space="preserve">branch</pre>
- </div>
- </content>
- </entry>
- <entry>
- <title>branch</title>
<id>http://*:$HGPORT/#changeset-1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe</id> (glob)
<link href="http://*:$HGPORT/rev/1d22e65f027e"/> (glob)
<author>
@@ -124,7 +88,7 @@ Logs and changes
</entry>
</feed>
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'log/1/?style=atom'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/log/1/?style=atom'
200 Script output follows
<?xml version="1.0" encoding="ascii"?>
@@ -138,22 +102,6 @@ Logs and changes
<entry>
<title>branch</title>
- <id>http://*:$HGPORT/#changeset-ba87b23d29ca67a305625d81a20ac279c1e3f444</id> (glob)
- <link href="http://*:$HGPORT/rev/ba87b23d29ca"/> (glob)
- <author>
- <name>test</name>
- <email>&#116;&#101;&#115;&#116;</email>
- </author>
- <updated>1970-01-01T00:00:00+00:00</updated>
- <published>1970-01-01T00:00:00+00:00</published>
- <content type="xhtml">
- <div xmlns="http://www.w3.org/1999/xhtml">
- <pre xml:space="preserve">branch</pre>
- </div>
- </content>
- </entry>
- <entry>
- <title>branch</title>
<id>http://*:$HGPORT/#changeset-1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe</id> (glob)
<link href="http://*:$HGPORT/rev/1d22e65f027e"/> (glob)
<author>
@@ -202,7 +150,7 @@ Logs and changes
</entry>
</feed>
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'log/1/foo/?style=atom'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/log/1/foo/?style=atom'
200 Script output follows
<?xml version="1.0" encoding="ascii"?>
@@ -230,7 +178,7 @@ Logs and changes
</entry>
</feed>
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'shortlog/'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/shortlog/'
200 Script output follows
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
@@ -257,14 +205,14 @@ Logs and changes
</div>
<ul>
<li class="active">log</li>
- <li><a href="/graph/ba87b23d29ca">graph</a></li>
+ <li><a href="/graph/1d22e65f027e">graph</a></li>
<li><a href="/tags">tags</a></li>
<li><a href="/bookmarks">bookmarks</a></li>
<li><a href="/branches">branches</a></li>
</ul>
<ul>
- <li><a href="/rev/ba87b23d29ca">changeset</a></li>
- <li><a href="/file/ba87b23d29ca">browse</a></li>
+ <li><a href="/rev/1d22e65f027e">changeset</a></li>
+ <li><a href="/file/1d22e65f027e">browse</a></li>
</ul>
<ul>
@@ -286,9 +234,9 @@ Logs and changes
</form>
<div class="navigate">
- <a href="/shortlog/3?revcount=30">less</a>
- <a href="/shortlog/3?revcount=120">more</a>
- | rev 3: <a href="/shortlog/2ef0ac749a14">(0)</a> <a href="/shortlog/tip">tip</a>
+ <a href="/shortlog/2?revcount=30">less</a>
+ <a href="/shortlog/2?revcount=120">more</a>
+ | rev 2: <a href="/shortlog/2ef0ac749a14">(0)</a> <a href="/shortlog/tip">tip</a>
</div>
<table class="bigtable">
@@ -298,22 +246,17 @@ Logs and changes
<th class="description">description</th>
</tr>
<tr class="parity0">
- <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
+ <td class="age">Thu Jan 01 00:00:00 1970 +0000</td>
<td class="author">test</td>
- <td class="description"><a href="/rev/ba87b23d29ca">branch</a><span class="branchhead">unstable</span> <span class="tag">tip</span> <span class="tag">something</span> </td>
+ <td class="description"><a href="/rev/1d22e65f027e">branch</a><span class="branchhead">stable</span> <span class="tag">tip</span> <span class="tag">something</span> </td>
</tr>
<tr class="parity1">
- <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
- <td class="author">test</td>
- <td class="description"><a href="/rev/1d22e65f027e">branch</a><span class="branchhead">stable</span> </td>
- </tr>
- <tr class="parity0">
- <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
+ <td class="age">Thu Jan 01 00:00:00 1970 +0000</td>
<td class="author">test</td>
<td class="description"><a href="/rev/a4f92ed23982">Added tag 1.0 for changeset 2ef0ac749a14</a><span class="branchhead">default</span> </td>
</tr>
- <tr class="parity1">
- <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
+ <tr class="parity0">
+ <td class="age">Thu Jan 01 00:00:00 1970 +0000</td>
<td class="author">test</td>
<td class="description"><a href="/rev/2ef0ac749a14">base</a><span class="tag">1.0</span> <span class="tag">anotherthing</span> </td>
</tr>
@@ -321,9 +264,9 @@ Logs and changes
</table>
<div class="navigate">
- <a href="/shortlog/3?revcount=30">less</a>
- <a href="/shortlog/3?revcount=120">more</a>
- | rev 3: <a href="/shortlog/2ef0ac749a14">(0)</a> <a href="/shortlog/tip">tip</a>
+ <a href="/shortlog/2?revcount=30">less</a>
+ <a href="/shortlog/2?revcount=120">more</a>
+ | rev 2: <a href="/shortlog/2ef0ac749a14">(0)</a> <a href="/shortlog/tip">tip</a>
</div>
</div>
@@ -335,7 +278,7 @@ Logs and changes
</body>
</html>
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'rev/0/'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/rev/0/'
200 Script output follows
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
@@ -396,7 +339,7 @@ Logs and changes
</tr>
<tr>
<th class="date">date</th>
- <td class="date age">Thu, 01 Jan 1970 00:00:00 +0000</td></tr>
+ <td class="date age">Thu Jan 01 00:00:00 1970 +0000</td></tr>
<tr>
<th class="author">parents</th>
<td class="author"></td>
@@ -462,7 +405,7 @@ Logs and changes
</body>
</html>
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'rev/1/?style=raw'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/rev/1/?style=raw'
200 Script output follows
@@ -479,7 +422,7 @@ Logs and changes
@@ -0,0 +1,1 @@
+2ef0ac749a14e4f57a5a822464a0902c6f7f448f 1.0
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'log?rev=base'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/log?rev=base'
200 Script output follows
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
@@ -533,7 +476,7 @@ Logs and changes
<th class="description">description</th>
</tr>
<tr class="parity0">
- <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
+ <td class="age">Thu Jan 01 00:00:00 1970 +0000</td>
<td class="author">test</td>
<td class="description"><a href="/rev/2ef0ac749a14">base</a><span class="tag">1.0</span> <span class="tag">anotherthing</span> </td>
</tr>
@@ -557,11 +500,11 @@ Logs and changes
File-related
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'file/1/foo/?style=raw'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/file/1/foo/?style=raw'
200 Script output follows
foo
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'annotate/1/foo/?style=raw'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/annotate/1/foo/?style=raw'
200 Script output follows
@@ -570,7 +513,7 @@ File-related
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'file/1/?style=raw'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/file/1/?style=raw'
200 Script output follows
@@ -579,7 +522,7 @@ File-related
-rw-r--r-- 4 foo
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'file/1/foo'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/file/1/foo'
200 Script output follows
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
@@ -614,7 +557,6 @@ File-related
<li class="active">file</li>
<li><a href="/file/tip/foo">latest</a></li>
<li><a href="/diff/a4f92ed23982/foo">diff</a></li>
- <li><a href="/comparison/a4f92ed23982/foo">comparison</a></li>
<li><a href="/annotate/a4f92ed23982/foo">annotate</a></li>
<li><a href="/log/a4f92ed23982/foo">file log</a></li>
<li><a href="/raw-file/a4f92ed23982/foo">raw</a></li>
@@ -644,7 +586,7 @@ File-related
</tr>
<tr>
<th class="date">date</th>
- <td class="date age">Thu, 01 Jan 1970 00:00:00 +0000</td>
+ <td class="date age">Thu Jan 01 00:00:00 1970 +0000</td>
</tr>
<tr>
<th class="author">parents</th>
@@ -673,11 +615,11 @@ File-related
</body>
</html>
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'filediff/0/foo/?style=raw'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/filediff/1/foo/?style=raw'
200 Script output follows
- diff -r 000000000000 -r 2ef0ac749a14 foo
+ diff -r 000000000000 -r a4f92ed23982 foo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/foo Thu Jan 01 00:00:00 1970 +0000
@@ -0,0 +1,1 @@
@@ -687,34 +629,24 @@ File-related
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'filediff/1/foo/?style=raw'
- 200 Script output follows
-
-
-
-
-
-
-
Overviews
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'raw-tags'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/raw-tags'
200 Script output follows
- tip ba87b23d29ca67a305625d81a20ac279c1e3f444
+ tip 1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe
1.0 2ef0ac749a14e4f57a5a822464a0902c6f7f448f
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'raw-branches'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/raw-branches'
200 Script output follows
- unstable ba87b23d29ca67a305625d81a20ac279c1e3f444 open
- stable 1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe inactive
+ stable 1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe open
default a4f92ed23982be056b9852de5dfe873eaac7f0de inactive
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'raw-bookmarks'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/raw-bookmarks'
200 Script output follows
anotherthing 2ef0ac749a14e4f57a5a822464a0902c6f7f448f
- something ba87b23d29ca67a305625d81a20ac279c1e3f444
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'summary/?style=gitweb'
+ something 1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/summary/?style=gitweb'
200 Script output follows
<?xml version="1.0" encoding="ascii"?>
@@ -753,7 +685,7 @@ Overviews
<a href="/tags?style=gitweb">tags</a> |
<a href="/bookmarks?style=gitweb">bookmarks</a> |
<a href="/branches?style=gitweb">branches</a> |
- <a href="/file/ba87b23d29ca?style=gitweb">files</a> |
+ <a href="/file/1d22e65f027e?style=gitweb">files</a> |
<a href="/help?style=gitweb">help</a>
<br/>
</div>
@@ -769,26 +701,12 @@ Overviews
<table cellspacing="0">
<tr class="parity0">
- <td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td>
- <td><i>test</i></td>
- <td>
- <a class="list" href="/rev/ba87b23d29ca?style=gitweb">
- <b>branch</b>
- <span class="logtags"><span class="branchtag" title="unstable">unstable</span> <span class="tagtag" title="tip">tip</span> <span class="bookmarktag" title="something">something</span> </span>
- </a>
- </td>
- <td class="link" nowrap>
- <a href="/rev/ba87b23d29ca?style=gitweb">changeset</a> |
- <a href="/file/ba87b23d29ca?style=gitweb">files</a>
- </td>
- </tr>
- <tr class="parity1">
- <td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td>
+ <td class="age"><i class="age">Thu Jan 01 00:00:00 1970 +0000</i></td>
<td><i>test</i></td>
<td>
<a class="list" href="/rev/1d22e65f027e?style=gitweb">
<b>branch</b>
- <span class="logtags"><span class="branchtag" title="stable">stable</span> </span>
+ <span class="logtags"><span class="branchtag" title="stable">stable</span> <span class="tagtag" title="tip">tip</span> <span class="bookmarktag" title="something">something</span> </span>
</a>
</td>
<td class="link" nowrap>
@@ -796,8 +714,8 @@ Overviews
<a href="/file/1d22e65f027e?style=gitweb">files</a>
</td>
</tr>
- <tr class="parity0">
- <td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td>
+ <tr class="parity1">
+ <td class="age"><i class="age">Thu Jan 01 00:00:00 1970 +0000</i></td>
<td><i>test</i></td>
<td>
<a class="list" href="/rev/a4f92ed23982?style=gitweb">
@@ -810,8 +728,8 @@ Overviews
<a href="/file/a4f92ed23982?style=gitweb">files</a>
</td>
</tr>
- <tr class="parity1">
- <td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td>
+ <tr class="parity0">
+ <td class="age"><i class="age">Thu Jan 01 00:00:00 1970 +0000</i></td>
<td><i>test</i></td>
<td>
<a class="list" href="/rev/2ef0ac749a14?style=gitweb">
@@ -831,7 +749,7 @@ Overviews
<table cellspacing="0">
<tr class="parity0">
- <td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td>
+ <td class="age"><i class="age">Thu Jan 01 00:00:00 1970 +0000</i></td>
<td><a class="list" href="/rev/2ef0ac749a14?style=gitweb"><b>1.0</b></a></td>
<td class="link">
<a href="/rev/2ef0ac749a14?style=gitweb">changeset</a> |
@@ -846,7 +764,7 @@ Overviews
<table cellspacing="0">
<tr class="parity0">
- <td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td>
+ <td class="age"><i class="age">Thu Jan 01 00:00:00 1970 +0000</i></td>
<td><a class="list" href="/rev/2ef0ac749a14?style=gitweb"><b>anotherthing</b></a></td>
<td class="link">
<a href="/rev/2ef0ac749a14?style=gitweb">changeset</a> |
@@ -855,32 +773,22 @@ Overviews
</td>
</tr>
<tr class="parity1">
- <td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td>
- <td><a class="list" href="/rev/ba87b23d29ca?style=gitweb"><b>something</b></a></td>
+ <td class="age"><i class="age">Thu Jan 01 00:00:00 1970 +0000</i></td>
+ <td><a class="list" href="/rev/1d22e65f027e?style=gitweb"><b>something</b></a></td>
<td class="link">
- <a href="/rev/ba87b23d29ca?style=gitweb">changeset</a> |
- <a href="/log/ba87b23d29ca?style=gitweb">changelog</a> |
- <a href="/file/ba87b23d29ca?style=gitweb">files</a>
+ <a href="/rev/1d22e65f027e?style=gitweb">changeset</a> |
+ <a href="/log/1d22e65f027e?style=gitweb">changelog</a> |
+ <a href="/file/1d22e65f027e?style=gitweb">files</a>
</td>
</tr>
<tr class="light"><td colspan="3"><a class="list" href="/bookmarks?style=gitweb">...</a></td></tr>
</table>
- <div><a class="title" href="/branches?style=gitweb">branches</a></div>
+ <div><a class="title" href="#">branches</a></div>
<table cellspacing="0">
<tr class="parity0">
- <td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td>
- <td><a class="list" href="/shortlog/ba87b23d29ca?style=gitweb"><b>ba87b23d29ca</b></a></td>
- <td class="">unstable</td>
- <td class="link">
- <a href="/changeset/ba87b23d29ca?style=gitweb">changeset</a> |
- <a href="/log/ba87b23d29ca?style=gitweb">changelog</a> |
- <a href="/file/ba87b23d29ca?style=gitweb">files</a>
- </td>
- </tr>
- <tr class="parity1">
- <td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td>
+ <td class="age"><i class="age">Thu Jan 01 00:00:00 1970 +0000</i></td>
<td><a class="list" href="/shortlog/1d22e65f027e?style=gitweb"><b>1d22e65f027e</b></a></td>
<td class="">stable</td>
<td class="link">
@@ -889,8 +797,8 @@ Overviews
<a href="/file/1d22e65f027e?style=gitweb">files</a>
</td>
</tr>
- <tr class="parity0">
- <td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td>
+ <tr class="parity1">
+ <td class="age"><i class="age">Thu Jan 01 00:00:00 1970 +0000</i></td>
<td><a class="list" href="/shortlog/a4f92ed23982?style=gitweb"><b>a4f92ed23982</b></a></td>
<td class="">default</td>
<td class="link">
@@ -900,7 +808,7 @@ Overviews
</td>
</tr>
<tr class="light">
- <td colspan="4"><a class="list" href="/branches?style=gitweb">...</a></td>
+ <td colspan="4"><a class="list" href="#">...</a></td>
</tr>
</table>
<script type="text/javascript">process_dates()</script>
@@ -916,7 +824,7 @@ Overviews
</body>
</html>
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'graph/?style=gitweb'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/graph/?style=gitweb'
200 Script output follows
<?xml version="1.0" encoding="ascii"?>
@@ -950,17 +858,17 @@ Overviews
<div class="page_nav">
<a href="/summary?style=gitweb">summary</a> |
<a href="/shortlog?style=gitweb">shortlog</a> |
- <a href="/log/3?style=gitweb">changelog</a> |
+ <a href="/log/2?style=gitweb">changelog</a> |
graph |
<a href="/tags?style=gitweb">tags</a> |
<a href="/bookmarks?style=gitweb">bookmarks</a> |
<a href="/branches?style=gitweb">branches</a> |
- <a href="/file/ba87b23d29ca?style=gitweb">files</a> |
+ <a href="/file/1d22e65f027e?style=gitweb">files</a> |
<a href="/help?style=gitweb">help</a>
<br/>
- <a href="/graph/3?style=gitweb&revcount=30">less</a>
- <a href="/graph/3?style=gitweb&revcount=120">more</a>
- | <a href="/graph/2ef0ac749a14?style=gitweb">(0)</a> <a href="/graph/tip?style=gitweb">tip</a> <br/>
+ <a href="/graph/2?style=gitweb&revcount=30">less</a>
+ <a href="/graph/2?style=gitweb&revcount=120">more</a>
+ | <a href="/graph/2ef0ac749a14?style=gitweb">(0)</a> <a href="/graph/2ef0ac749a14?style=gitweb">-2</a> <a href="/graph/tip?style=gitweb">tip</a> <br/>
</div>
<div class="title">&nbsp;</div>
@@ -969,17 +877,27 @@ Overviews
<div id="wrapper">
<ul id="nodebgs"></ul>
- <canvas id="graph" width="480" height="168"></canvas>
+ <canvas id="graph" width="480" height="129"></canvas>
<ul id="graphnodes"></ul>
</div>
<script>
<!-- hide script content
- var data = [["ba87b23d29ca", [0, 1], [[0, 0, 1, 3, "FF0000"]], "branch", "test", "1970-01-01", ["unstable", true], ["tip"], ["something"]], ["1d22e65f027e", [0, 1], [[0, 0, 1, 3, ""]], "branch", "test", "1970-01-01", ["stable", true], [], []], ["a4f92ed23982", [0, 1], [[0, 0, 1, 3, ""]], "Added tag 1.0 for changeset 2ef0ac749a14", "test", "1970-01-01", ["default", true], [], []], ["2ef0ac749a14", [0, 1], [], "base", "test", "1970-01-01", ["default", false], ["1.0"], ["anotherthing"]]];
+ var data = [["1d22e65f027e", [0, 1], [[0, 0, 1]], "branch", "test", "1970-01-01", ["stable", true], ["tip"], ["something"]], ["a4f92ed23982", [0, 1], [[0, 0, 1]], "Added tag 1.0 for changeset 2ef0ac749a14", "test", "1970-01-01", ["default", true], [], []], ["2ef0ac749a14", [0, 1], [], "base", "test", "1970-01-01", ["default", false], ["1.0"], ["anotherthing"]]];
var graph = new Graph();
graph.scale(39);
+ graph.edge = function(x0, y0, x1, y1, color) {
+
+ this.setColor(color, 0.0, 0.65);
+ this.ctx.beginPath();
+ this.ctx.moveTo(x0, y0);
+ this.ctx.lineTo(x1, y1);
+ this.ctx.stroke();
+
+ }
+
var revlink = '<li style="_STYLE"><span class="desc">';
revlink += '<a class="list" href="/rev/_NODEID?style=gitweb" title="_NODEID"><b>_DESC</b></a>';
revlink += '</span> _TAGS';
@@ -1039,9 +957,9 @@ Overviews
</script>
<div class="page_nav">
- <a href="/graph/3?style=gitweb&revcount=30">less</a>
- <a href="/graph/3?style=gitweb&revcount=120">more</a>
- | <a href="/graph/2ef0ac749a14?style=gitweb">(0)</a> <a href="/graph/tip?style=gitweb">tip</a>
+ <a href="/graph/2?style=gitweb&revcount=30">less</a>
+ <a href="/graph/2?style=gitweb&revcount=120">more</a>
+ | <a href="/graph/2ef0ac749a14?style=gitweb">(0)</a> <a href="/graph/2ef0ac749a14?style=gitweb">-2</a> <a href="/graph/tip?style=gitweb">tip</a>
</div>
<script type="text/javascript">process_dates()</script>
@@ -1057,55 +975,6 @@ Overviews
</body>
</html>
-raw graph
-
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'graph/?style=raw'
- 200 Script output follows
-
-
- # HG graph
- # Node ID ba87b23d29ca67a305625d81a20ac279c1e3f444
- # Rows shown 4
-
- changeset: ba87b23d29ca
- user: test
- date: 1970-01-01
- summary: branch
- 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)
-
-
capabilities
@@ -1119,7 +988,7 @@ heads
$ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '?cmd=heads'
200 Script output follows
- ba87b23d29ca67a305625d81a20ac279c1e3f444
+ 1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe
branches
@@ -1133,11 +1002,10 @@ changegroup
$ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '?cmd=changegroup&roots=0000000000000000000000000000000000000000'
200 Script output follows
- x\x9c\xbdTMHTQ\x14\x1e\xfc\xef\xd9&\x10\x11*x\x88\x81\x9aN\xf7\xddw\xdf{\xf7Y\x0efR\xb4\x11\xb1U\x82\xc5\xfd\x9d!c\x06\x9c'd\xa0\x99X\x82\x92i\xablUZ-*\x08\x84\x82\x02KkQ\xf8\x13\xe4\xaa\x8dn\x94\x906)\xd5B\x02\xeb\xbe\x9c\x01\x85\xc9\x996\x1d\xf8x\x97{\xefy\xe7;\xe7|\xe7\x06\x02\x81\xb1\xe0\xda\x13\xefN\xd1\xca\x8f\xcb-\xbde\xfc\xeepU\xecJ\xc3\xcd@\x86\x96\xc6\xb7^`\xe9"[H\xe4\x18T\x1a\x16p]\xc3\x96\x14\x13\xcbt\xa1tM\x0c\x1c\x0b2,M\xcd\x13qO\x03:\xd089"c1\xcd\x87FI\\\xa8\xbf|\xbc\xbf\x11\\p{_\xe5\xb6\xddn^j\xdd\xec\x0f=z\xb7\xb6\x94)\xebT\xbe\x89\xa3 (esc)
- \x1f6!6p\x00\xc4H`L\x18\x83\xdc\xa6\x8c\x0b\x84\x01\x06\x06s\xb84\x1cn2F4u\x19*\xd4*\x14\x04#a\x8f\x84\xe3\xfe^\xc8OS\xa1\xfc8\xe7\x82\xebj[7\x82@\x97\xb1v\x9dEH4,\xe2\xc2\xd3\xa1\x90\x800\x07\xb9\xc4@\xea\xee\xe4\xc1\xd2\xcf\xe7\xb3\xba[\xf2\xf6X\xdd]C\x1d\x05\xf3\x87\x1f,l\xeeBt\x87\xa5\xf2\xdd\x9e\x90*\xa9kC\xac"!\x17\x12)!c\x000\xd7\x05&\xb5\xa9\xc5\xa8-Ln (esc)
- \x0c|\xf2A\x85\x1a\x85bUy\x9d\xb6\x93(\x8b\xd4\xc4=B/\x8a?\rP'G\x15\x98B\xde\xd6\xa9Zy/\xfb'j+f\xc2\xe3\xb9\xb4\xf5\xea\x98\xf6\xa6sz\xf9{\xc3.\xa4vX*\xdf\x04\x0f\xff[\xb4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dc\xc3H^\xdf\xe2\xc0TM\xc7\xf4BO\xcf\xde\xae\xe5\xae#\x1frM(K\x97`F\x19\x16s\x05GD\xb9\x01\xc1\x00+\x8c|\x9fp\xc11\xf0\x14\x00\x9cJ\x82<\xe0\x12\x9f\xc1\x90\xd0\xf5\xc8\x19>Pr\xaa\xeaW\xf5\xc4\xae\xd1\xfc\x17\xcf'\x13u\xb1\x9e\xcdHnC\x0e\xcc`\xc8\xa0&\xac\x0e\xf1|\x8c\x10$\xc4\x8c\xa2p\x05`\xdc\x08 \x80\xc4\xd7Rr-\x94\x10\x102\xedi;\xf3f\xf1z\x16\x86\xdb\xd8d\xe5\xe7\x8b\xf5\x8d\rzp\xb2\xfe\xac\xf5\xf2\xd3\xfe\xfckws\xedt\x96b\xd5l\x1c\x0b\x85\xb5\x170\x8f\x11\x84\xb0\x8f\x19\xa0\x00 _\x07\x1ac\xa2\xc3\x89Z\xe7\x96\xf9 \xccNFg\xc7F\xaa\x8a+\x9a\x9cc_\x17\x1b\x17\x9e]z38<\x97+\xb5,",\xc8\xc8?\\\x91\xff\x17.~U\x96\x97\xf5%\xdeN<\x8e\xf5\x97%\xe7^\xcfL\xed~\xda\x96k\xdc->\x86\x02\x83"\x96H\xa6\xe3\xaas=-\xeb7\xe5\xda\x8f\xbc (no-eol) (esc)
stream_out
@@ -1157,7 +1025,7 @@ failing unbundle, requires POST request
Static files
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'static/style.css'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/static/style.css'
200 Script output follows
a { text-decoration:none; }
@@ -1266,10 +1134,10 @@ Static files
top: -1px;
}
-Stop and restart with HGENCODING=cp932 and preferuncompressed
+Stop and restart with HGENCODING=cp932
$ "$TESTDIR/killdaemons.py"
- $ HGENCODING=cp932 hg serve --config server.preferuncompressed=True -n test \
+ $ HGENCODING=cp932 hg serve --config server.uncompressed=False -n test \
> -p $HGPORT -d --pid-file=hg.pid -E errors.log
$ cat hg.pid >> $DAEMON_PIDS
@@ -1280,84 +1148,10 @@ commit message with Japanese Kanji 'Noh', which ends with '\x5c'
Graph json escape of multibyte character
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'graph/' \
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/graph/' \
> | grep '^var data ='
- var data = [["548001d11f45", [0, 1], [[0, 0, 1, -1, ""]], "\u80fd", "test", "1970-01-01", ["unstable", true], ["tip"], ["something"]], ["ba87b23d29ca", [0, 1], [[0, 0, 1, 3, "FF0000"]], "branch", "test", "1970-01-01", ["unstable", false], [], []], ["1d22e65f027e", [0, 1], [[0, 0, 1, 3, ""]], "branch", "test", "1970-01-01", ["stable", true], [], []], ["a4f92ed23982", [0, 1], [[0, 0, 1, 3, ""]], "Added tag 1.0 for changeset 2ef0ac749a14", "test", "1970-01-01", ["default", true], [], []], ["2ef0ac749a14", [0, 1], [], "base", "test", "1970-01-01", ["default", false], ["1.0"], ["anotherthing"]]];
-
-capabilities
-
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '?cmd=capabilities'; echo
- 200 Script output follows
-
- lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream-preferred stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024
-
-heads
+ var data = [["40b4d6888e92", [0, 1], [[0, 0, 1]], "\u80fd", "test", "1970-01-01", ["stable", true], ["tip"], ["something"]], ["1d22e65f027e", [0, 1], [[0, 0, 1]], "branch", "test", "1970-01-01", ["stable", false], [], []], ["a4f92ed23982", [0, 1], [[0, 0, 1]], "Added tag 1.0 for changeset 2ef0ac749a14", "test", "1970-01-01", ["default", true], [], []], ["2ef0ac749a14", [0, 1], [], "base", "test", "1970-01-01", ["default", false], ["1.0"], ["anotherthing"]]];
ERRORS ENCOUNTERED
$ cat errors.log
- $ "$TESTDIR/killdaemons.py"
-
- $ 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
-
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT \
- > 'graph/?style=raw' | grep changeset
- changeset: aed2d9c1d0e7
- changeset: b60a39a85a01
-
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT \
- > 'graph/?style=raw&revcount=3' | grep changeset
- changeset: aed2d9c1d0e7
- changeset: b60a39a85a01
- changeset: ada793dcc118
-
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT \
- > 'graph/e06180cbfb0?style=raw&revcount=3' | grep changeset
- changeset: ab4f1438558b
- changeset: e06180cbfb0c
- changeset: b4e73ffab476
-
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT \
- > 'graph/b4e73ffab47?style=raw&revcount=3' | grep changeset
- changeset: ab4f1438558b
- changeset: e06180cbfb0c
- changeset: b4e73ffab476
-
- $ cat errors.log
-
- $ cd ..