comparison tests/test-hgweb-removed.t @ 12442:b7fd332e5ca2

tests: unify test-hgweb-removed
author Matt Mackall <mpm@selenic.com>
date Sun, 26 Sep 2010 13:41:32 -0500
parents tests/test-hgweb-removed@cb93eee1fbcd
children ead4e21f49f1
comparison
equal deleted inserted replaced
12441:cb1e33a41d13 12442:b7fd332e5ca2
1 setting up repo
2
3 $ hg init test
4 $ cd test
5 $ echo a > a
6 $ hg ci -Ama
7 adding a
8 $ hg rm a
9 $ hg ci -mdel
10
11 set up hgweb
12
13 $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
14 $ cat hg.pid >> $DAEMON_PIDS
15
16 revision
17
18 $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/rev/tip'
19 200 Script output follows
20
21 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
22 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
23 <head>
24 <link rel="icon" href="/static/hgicon.png" type="image/png" />
25 <meta name="robots" content="index, nofollow" />
26 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
27
28 <title>test: c78f6c5cbea9</title>
29 </head>
30 <body>
31 <div class="container">
32 <div class="menu">
33 <div class="logo">
34 <a href="http://mercurial.selenic.com/">
35 <img src="/static/hglogo.png" alt="mercurial" /></a>
36 </div>
37 <ul>
38 <li><a href="/shortlog/c78f6c5cbea9">log</a></li>
39 <li><a href="/graph/c78f6c5cbea9">graph</a></li>
40 <li><a href="/tags">tags</a></li>
41 <li><a href="/branches">branches</a></li>
42 </ul>
43 <ul>
44 <li class="active">changeset</li>
45 <li><a href="/raw-rev/c78f6c5cbea9">raw</a></li>
46 <li><a href="/file/c78f6c5cbea9">browse</a></li>
47 </ul>
48 <ul>
49
50 </ul>
51 </div>
52
53 <div class="main">
54
55 <h2><a href="/">test</a></h2>
56 <h3>changeset 1:c78f6c5cbea9 <span class="tag">tip</span> </h3>
57
58 <form class="search" action="/log">
59
60 <p><input name="rev" id="search1" type="text" size="30" /></p>
61 <div id="hint">find changesets by author, revision,
62 files, or words in the commit message</div>
63 </form>
64
65 <div class="description">del</div>
66
67 <table id="changesetEntry">
68 <tr>
69 <th class="author">author</th>
70 <td class="author">&#116;&#101;&#115;&#116;</td>
71 </tr>
72 <tr>
73 <th class="date">date</th>
74 <td class="date">Thu Jan 01 00:00:00 1970 +0000 (1970-01-01)</td></tr>
75 <tr>
76 <th class="author">parents</th>
77 <td class="author"><a href="/rev/cb9a9f314b8b">cb9a9f314b8b</a> </td>
78 </tr>
79 <tr>
80 <th class="author">children</th>
81 <td class="author"></td>
82 </tr>
83 <tr>
84 <th class="files">files</th>
85 <td class="files">a </td>
86 </tr>
87 </table>
88
89 <div class="overflow">
90 <div class="sourcefirst"> line diff</div>
91
92 <div class="source bottomline parity0"><pre><a href="#l1.1" id="l1.1"> 1.1</a> <span class="minusline">--- a/a Thu Jan 01 00:00:00 1970 +0000
93 </span><a href="#l1.2" id="l1.2"> 1.2</a> <span class="plusline">+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
94 </span><a href="#l1.3" id="l1.3"> 1.3</a> <span class="atline">@@ -1,1 +0,0 @@
95 </span><a href="#l1.4" id="l1.4"> 1.4</a> <span class="minusline">-a
96 </span></pre></div>
97 </div>
98
99 </div>
100 </div>
101
102
103 </body>
104 </html>
105
106
107 diff removed file
108
109 $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/diff/tip/a'
110 200 Script output follows
111
112 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
113 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
114 <head>
115 <link rel="icon" href="/static/hgicon.png" type="image/png" />
116 <meta name="robots" content="index, nofollow" />
117 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
118
119 <title>test: a diff</title>
120 </head>
121 <body>
122
123 <div class="container">
124 <div class="menu">
125 <div class="logo">
126 <a href="http://mercurial.selenic.com/">
127 <img src="/static/hglogo.png" alt="mercurial" /></a>
128 </div>
129 <ul>
130 <li><a href="/shortlog/c78f6c5cbea9">log</a></li>
131 <li><a href="/graph/c78f6c5cbea9">graph</a></li>
132 <li><a href="/tags">tags</a></li>
133 <li><a href="/branches">branches</a></li>
134 </ul>
135 <ul>
136 <li><a href="/rev/c78f6c5cbea9">changeset</a></li>
137 <li><a href="/file/c78f6c5cbea9">browse</a></li>
138 </ul>
139 <ul>
140 <li><a href="/file/c78f6c5cbea9/a">file</a></li>
141 <li><a href="/file/tip/a">latest</a></li>
142 <li class="active">diff</li>
143 <li><a href="/annotate/c78f6c5cbea9/a">annotate</a></li>
144 <li><a href="/log/c78f6c5cbea9/a">file log</a></li>
145 <li><a href="/raw-file/c78f6c5cbea9/a">raw</a></li>
146 </ul>
147 </div>
148
149 <div class="main">
150 <h2><a href="/">test</a></h2>
151 <h3>diff a @ 1:c78f6c5cbea9</h3>
152
153 <form class="search" action="/log">
154 <p></p>
155 <p><input name="rev" id="search1" type="text" size="30" /></p>
156 <div id="hint">find changesets by author, revision,
157 files, or words in the commit message</div>
158 </form>
159
160 <div class="description">del</div>
161
162 <table id="changesetEntry">
163 <tr>
164 <th>author</th>
165 <td>&#116;&#101;&#115;&#116;</td>
166 </tr>
167 <tr>
168 <th>date</th>
169 <td>Thu Jan 01 00:00:00 1970 +0000 (1970-01-01)</td>
170 </tr>
171 <tr>
172 <th>parents</th>
173 <td><a href="/file/cb9a9f314b8b/a">cb9a9f314b8b</a> </td>
174 </tr>
175 <tr>
176 <th>children</th>
177 <td></td>
178 </tr>
179
180 </table>
181
182 <div class="overflow">
183 <div class="sourcefirst"> line diff</div>
184
185 <div class="source bottomline parity0"><pre><a href="#l1.1" id="l1.1"> 1.1</a> <span class="minusline">--- a/a Thu Jan 01 00:00:00 1970 +0000
186 </span><a href="#l1.2" id="l1.2"> 1.2</a> <span class="plusline">+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
187 </span><a href="#l1.3" id="l1.3"> 1.3</a> <span class="atline">@@ -1,1 +0,0 @@
188 </span><a href="#l1.4" id="l1.4"> 1.4</a> <span class="minusline">-a
189 </span></pre></div>
190 </div>
191 </div>
192 </div>
193
194
195
196 </body>
197 </html>
198