Menu

Commit [r1774]  Maximize  Restore  History

TracDiff: simplified the interface and the code

* Interface Changes
* The Log view only offers ''Diff between revisions of a path''
* The Browser view is the one to use for ''Arbitrary diffs''
* As an added bonus, the Browser now offers the possibility to
download a zip file containing everything below the directory
being browsed (at the current revision). This would solve #238.
* API Changes
* the Repository.get_diffs method is now supposed to simply yield
{{{(old_node, new_node, kind, change)}}} tuples
* In the Diff view, I hopefully got right the usage of (path,rev) vs.
(created_path, created_rev): the former information is used
for creating hrefs for Trac, and the created_rev information
is simply displayed. This is similar to what the Browser does.

What's remaining:
* there's the ''View previous diff'' stuff to fix
* I'll try to refactor the Diff.py and the Changeset.py
in order to share more code

cboos 2005-06-08

changed /branches/cboos-dev/anydiff-branch/templates/diff.cs
changed /branches/cboos-dev/anydiff-branch/templates/log.cs
changed /branches/cboos-dev/anydiff-branch/trac/Browser.py
changed /branches/cboos-dev/anydiff-branch/trac/Diff.py
changed /branches/cboos-dev/anydiff-branch/trac/versioncontrol/main.py
changed /branches/cboos-dev/anydiff-branch/trac/versioncontrol/svn_fs.py
/branches/cboos-dev/anydiff-branch/templates/diff.cs Diff Switch to side-by-side view
Loading...
/branches/cboos-dev/anydiff-branch/templates/log.cs Diff Switch to side-by-side view
Loading...
/branches/cboos-dev/anydiff-branch/trac/Browser.py Diff Switch to side-by-side view
Loading...
/branches/cboos-dev/anydiff-branch/trac/Diff.py Diff Switch to side-by-side view
Loading...
/branches/cboos-dev/anydiff-branch/trac/versioncontrol/main.py Diff Switch to side-by-side view
Loading...
/branches/cboos-dev/anydiff-branch/trac/versioncontrol/svn_fs.py Diff Switch to side-by-side view
Loading...
MongoDB Logo MongoDB