Menu

Commit [r4236]  Maximize  Restore  History

Some enhancements and bugfixes for the Ranges class contributed by Tim Hatch.

> ... I went ahead and added a `__str__` method that will return the most compact representation of the range so it could be used in links. It also has a few bugfixes:

* big-to-little ranges would throw an exception, but only if all were big-to-little
* certain overlapping pairs would cause weird internal representations which were nonoptimal
* a and b were not set for empty ranges, causing an !AttributeError on any `__contains__` call

Use the above to provide compact ranges representation for log: hrefs.

cboos 2006-11-11

changed /trunk/trac/util/__init__.py
changed /trunk/trac/versioncontrol/web_ui/log.py
changed /trunk/trac/versioncontrol/web_ui/tests/wikisyntax.py
/trunk/trac/util/__init__.py Diff Switch to side-by-side view
Loading...
/trunk/trac/versioncontrol/web_ui/log.py Diff Switch to side-by-side view
Loading...
/trunk/trac/versioncontrol/web_ui/tests/wikisyntax.py Diff Switch to side-by-side view
Loading...