{{extend 'layout.html'}}
{{import time}}

<h2>Mercurial Version Control System Interface<br />
for application "{{=request.args[0]}}"</h2>

<h3>Commit form</h3>
{{=form}}


{{if repo['.'].rev()>=0:}}
<h3>Last Revision</h3>
<table>
<tr><td>Revision:</td><td>{{=repo['.'].rev()}}</td></tr>
<tr><td>Node:</td><td>{{=repo['.']}}</td></tr>
<tr><td>Created by:</td><td>{{=repo['.'].user()}}</td></tr>
<tr><td>Created on:</td><td>{{=time.ctime(repo['.'].date()[0])}}</td></tr>
<tr><td>Description:</td><td>{{=repo['.'].description()}}</td></tr>
</table>

<h3>Past revisions</h3>
<div class="changes">
  {{=changes}}
</div>

{{if files:}}
<h3>Committed files</h3>
<div class="files">
{{=files}}
</div>
{{pass}}

{{pass}}
