Menu

Trac Commit Log


Commit Date  
[r5763] by cboos

TracMercurial: improve compatibility with Mercurial versions using `demandimport`.

The `demandimport` mechanism modifies the `__import__` builtin, and this can lead to surprising errors, like with the TH:AccountManager plugin:

{{{
# in mercurial/node.py, with `demandimport` enabled:

import binascii

# in acct_mgr/pwhash.py:

from binascii import hexlify
...
v = long(hexlify(urandom(4)), 16)
# raises => TypeError: 'unloaded module' object is not callable
}}}

It's possibly a bug with demandimport, but even if this gets fixed, we must be compatible with the released Mercurial 0.9.4 (and demandimport is not needed anyway for long running processes).

Thanks to Gregory Collins for reporting the issue.

2007-06-27 11:28:03 Tree
[r5762] by cboos

WorkFlowUpgrade, make migrate_original_to_basic.py script a tad more robust and user-friendly

2007-06-27 08:11:26 Tree
[r5761] by cboos

!TracWorkflow page in the repository synced with TracWorkflow@...

2007-06-27 07:59:03 Tree
[r5760] by cboos

WorkFlowUpgrade: add a reminder for the need to do a `wiki upgrade` in order to get the TracWorkflow page loaded or updated.

2007-06-27 07:39:09 Tree
[r5759] by cboos

WorkFlowUpgrade, follow-up to r5731: improve readability of workflow upgrade information on the command-line.

2007-06-27 07:35:48 Tree
[r5758] by ecarter

Testing: Merge 5747-5752 from trunk

2007-06-26 19:35:42 Tree
[r5757] by cboos

Wiki formatter now accepts Genshi Stream in addition to Element. Fixes #5603.

2007-06-26 15:08:55 Tree
[r5756] by cboos

Fix upgrade to schema version 21 for PostgreSQL databases. Closes #5593.

2007-06-25 16:21:03 Tree
[r5755] by cboos

Apply patch from osimons on #5588 which standardizes the location of the bottom help <div> into the content <div>.

2007-06-25 13:35:52 Tree
[r5754] by cboos

Provide a `to_datetime` utility function which can be used to convert from timestamps in various form (int, long and float) to `datetime` objects which are now used internally by Trac to represent dates (since [milestone:0.11]).

The various `trac.util.datefmt` utilities are using the above function so that they're robust w.r.t. non-migrated plugins, but they already document the stricter requirement to accept only `datetime` objects or `None` (the current time), which will be enforced in [milestone:0.12].

I also added a few unit tests.

Fixes #4547, based on Dave Abrahams' original patch.

2007-06-25 13:16:06 Tree
Older >
Auth0 Logo