Mercurial > hg
comparison hgext/journal.py @ 41834:7f63ec6969f3
global: use raw strings for namedtuple()
Otherwise Python 2 will attempt to coerce unicode to str, which
we don't want.
Differential Revision: https://phab.mercurial-scm.org/D6049
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 02 Mar 2019 12:57:00 -0800 |
parents | 876494fd967d |
children | 2372284d9457 |
comparison
equal
deleted
inserted
replaced
41833:89f01ea906ae | 41834:7f63ec6969f3 |
---|---|
192 storage._write(repo.vfs, entry) | 192 storage._write(repo.vfs, entry) |
193 | 193 |
194 return orig(ui, repo, repopath) | 194 return orig(ui, repo, repopath) |
195 | 195 |
196 class journalentry(collections.namedtuple( | 196 class journalentry(collections.namedtuple( |
197 u'journalentry', | 197 r'journalentry', |
198 u'timestamp user command namespace name oldhashes newhashes')): | 198 r'timestamp user command namespace name oldhashes newhashes')): |
199 """Individual journal entry | 199 """Individual journal entry |
200 | 200 |
201 * timestamp: a mercurial (time, timezone) tuple | 201 * timestamp: a mercurial (time, timezone) tuple |
202 * user: the username that ran the command | 202 * user: the username that ran the command |
203 * namespace: the entry namespace, an opaque string | 203 * namespace: the entry namespace, an opaque string |