summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/codereview/codereview.py4
-rw-r--r--lib/godoc/package.html30
-rw-r--r--lib/godoc/package.txt15
-rw-r--r--lib/time/README2
4 files changed, 29 insertions, 22 deletions
diff --git a/lib/codereview/codereview.py b/lib/codereview/codereview.py
index 4b6014505..11766fcb2 100644
--- a/lib/codereview/codereview.py
+++ b/lib/codereview/codereview.py
@@ -155,7 +155,8 @@ default_to_utf8()
global_status = None
def set_status(s):
- # print >>sys.stderr, "\t", time.asctime(), s
+ if verbosity > 0:
+ print >>sys.stderr, time.asctime(), s
global global_status
global_status = s
@@ -2213,6 +2214,7 @@ def reposetup(ui, repo):
if codereview_init:
return
codereview_init = True
+ start_status_thread()
# Read repository-specific options from lib/codereview/codereview.cfg or codereview.cfg.
root = ''
diff --git a/lib/godoc/package.html b/lib/godoc/package.html
index 1df1f9151..33c2c2791 100644
--- a/lib/godoc/package.html
+++ b/lib/godoc/package.html
@@ -10,7 +10,11 @@
correspond to Go identifiers).
-->
{{with .PDoc}}
- {{if not $.IsMain}}
+ {{if $.IsMain}}
+ {{/* command documentation */}}
+ {{comment_html .Doc}}
+ {{else}}
+ {{/* package documentation */}}
<div id="short-nav">
<dl>
<dd><code>import "{{html .ImportPath}}"</code></dd>
@@ -71,9 +75,9 @@
{{end}}
{{end}}
{{if $.Notes}}
- {{range $marker, $item := $.Notes}}
+ {{range $marker, $item := $.Notes}}
<dd><a href="#pkg-note-{{$marker}}">{{noteTitle $marker | html}}s</a></dd>
- {{end}}
+ {{end}}
{{end}}
</dl>
</div><!-- #manual-nav -->
@@ -88,7 +92,7 @@
</dl>
</div>
{{end}}
-
+
{{with .Filenames}}
<h4>Package files</h4>
<p>
@@ -101,7 +105,7 @@
{{end}}
</div><!-- .expanded -->
</div><!-- #pkg-index -->
-
+
{{with .Consts}}
<h2 id="pkg-constants">Constants</h2>
{{range .}}
@@ -160,16 +164,16 @@
{{example_html $name $.Examples $.FSet}}
{{end}}
{{end}}
- {{else}} {{/* not a package; is a command */}}
- {{comment_html .Doc}}
{{end}}
{{with $.Notes}}
- {{range $marker, $content := .}}
- <h2 id="pkg-note-{{$marker}}">{{noteTitle $marker | html}}s</h2>
- {{range .}}
- {{comment_html .}}
- {{end}}
+ {{range $marker, $content := .}}
+ <h2 id="pkg-note-{{$marker}}">{{noteTitle $marker | html}}s</h2>
+ <ul>
+ {{range .}}
+ <li>{{html .Body}}</li>
+ {{end}}
+ </ul>
{{end}}
{{end}}
{{end}}
@@ -250,7 +254,7 @@ $(document).ready(function() {
var resize = function() {
code.height(0);
var h = code[0].scrollHeight;
- code.height(h+20); // minimize bouncing
+ code.height(h+20); // minimize bouncing.
code.closest('.input').height(h);
};
code.on('keydown', resize);
diff --git a/lib/godoc/package.txt b/lib/godoc/package.txt
index 94239ca1a..bc11fc3c5 100644
--- a/lib/godoc/package.txt
+++ b/lib/godoc/package.txt
@@ -2,14 +2,15 @@
---------------------------------------
-*/}}{{with .PDoc}}{{if not $.IsMain}}PACKAGE
+*/}}{{with .PDoc}}{{if $.IsMain}}COMMAND DOCUMENTATION
+
+{{comment_text .Doc " " "\t"}}
+{{else}}PACKAGE DOCUMENTATION
package {{.Name}}
import "{{.ImportPath}}"
-{{else}}COMMAND DOCUMENTATION
-
-{{end}}{{comment_text .Doc " " "\t"}}
+{{comment_text .Doc " " "\t"}}
{{example_text "" $.Examples $.FSet " "}}{{/*
---------------------------------------
@@ -58,15 +59,15 @@ TYPES
{{end}}{{range .Methods}}{{node .Decl $.FSet}}
{{comment_text .Doc " " "\t"}}
{{$name := printf "%s_%s" $tname .Name}}{{example_text $name $.Examples $.FSet " "}}
-{{end}}{{end}}{{end}}{{/*
+{{end}}{{end}}{{end}}{{end}}{{/*
---------------------------------------
*/}}{{with $.Notes}}
{{range $marker, $content := .}}
-{{noteTitle $marker}}s
+{{$marker}}S
-{{range $content}}{{comment_text . " " "\t"}}
+{{range $content}}{{comment_text .Body " " "\t"}}
{{end}}{{end}}{{end}}{{end}}{{/*
---------------------------------------
diff --git a/lib/time/README b/lib/time/README
index d83e0addf..ffce9b0e0 100644
--- a/lib/time/README
+++ b/lib/time/README
@@ -5,6 +5,6 @@ The IANA asserts that the database is in the public domain.
For more information, see
http://www.iana.org/time-zones
ftp://ftp.iana.org/tz/code/tz-link.htm
-http://tools.ietf.org/html/draft-lear-iana-timezone-database-05
+http://tools.ietf.org/html/rfc6557
To rebuild the archive, read and run update.bash.