Mercurial > hg
annotate mercurial/templates/paper/shortlogentry.tmpl @ 39820:68ea1f8dcb84
py3: proxy posixfile objects to re-add a useful 'name' attribute on Windows
This file object is used in the vfs layer, so there are many errors like this:
...
File "mercurial\localrepo.py", line 2569, in savecommitmessage
return self.pathto(fp.name[len(self.root) + 1:])
TypeError: 'int' object is not subscriptable
It looks like the 'name' value is actually the fileno() value, and the
documentation says the name parameter to PyFile_FromFd() is ignored. [1] I
tried just assigning the attribute after osutil.posixfile() returns, but that
crashes saying that it's read-only.
[1] https://docs.python.org/3.6/c-api/file.html
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 21 Sep 2018 20:03:07 -0400 |
parents | 9acc0360ff67 |
children |
rev | line source |
---|---|
19452
6f5556454edd
hgweb: make stripes in log and search with CSS
Alexander Plavin <me@aplavin.ru>
parents:
18526
diff
changeset
|
1 <tr> |
15375
fe9d36a6853e
hgweb: fix dynamic date calculation not working under Safari
Brodie Rao <brodie@bitheap.org>
parents:
14046
diff
changeset
|
2 <td class="age">{date|rfc822date}</td> |
7411
b71ee3e00e81
coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
3 <td class="author">{author|person}</td> |
25108
09ec4220a839
hgweb: split some long lines in paper, gitweb and monoblue styles
Anton Shestakov <engored@ya.ru>
parents:
19529
diff
changeset
|
4 <td class="description"> |
09ec4220a839
hgweb: split some long lines in paper, gitweb and monoblue styles
Anton Shestakov <engored@ya.ru>
parents:
19529
diff
changeset
|
5 <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{desc|strip|firstline|escape|nonempty}</a> |
35064
9acc0360ff67
hgweb: move changeset "tags" to a template in map file (paper and coal)
Anton Shestakov <av6@dwimlabs.net>
parents:
25108
diff
changeset
|
6 {alltags} |
25108
09ec4220a839
hgweb: split some long lines in paper, gitweb and monoblue styles
Anton Shestakov <engored@ya.ru>
parents:
19529
diff
changeset
|
7 </td> |
7411
b71ee3e00e81
coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
8 </tr> |