Mercurial > hg
annotate mercurial/templates/atom/branchentry.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 | 6ab3465d9991 |
children |
rev | line source |
---|---|
18045
add2f9ddcfb5
hgweb: add branches RSS and Atom feeds
Angel Ezquerra <angel.ezquerra@gmail.com>
parents:
diff
changeset
|
1 <entry> |
add2f9ddcfb5
hgweb: add branches RSS and Atom feeds
Angel Ezquerra <angel.ezquerra@gmail.com>
parents:
diff
changeset
|
2 <title>{branch|escape}</title> |
18526
9409aeaafdc1
hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents:
18045
diff
changeset
|
3 <link rel="alternate" href="{urlbase}{url|urlescape}rev/{node|short}"/> |
9409aeaafdc1
hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents:
18045
diff
changeset
|
4 <id>{urlbase}{url|urlescape}#branch-{node}</id> |
18045
add2f9ddcfb5
hgweb: add branches RSS and Atom feeds
Angel Ezquerra <angel.ezquerra@gmail.com>
parents:
diff
changeset
|
5 <updated>{date|rfc3339date}</updated> |
add2f9ddcfb5
hgweb: add branches RSS and Atom feeds
Angel Ezquerra <angel.ezquerra@gmail.com>
parents:
diff
changeset
|
6 <published>{date|rfc3339date}</published> |
29437
6ab3465d9991
hgweb: remove unnecessary CDATA markup in atom/branchentry.tmpl
Anton Shestakov <av6@dwimlabs.net>
parents:
18526
diff
changeset
|
7 <content type="text">{branch|strip|escape}</content> |
18045
add2f9ddcfb5
hgweb: add branches RSS and Atom feeds
Angel Ezquerra <angel.ezquerra@gmail.com>
parents:
diff
changeset
|
8 </entry> |