Menu

Commit [r2311]  Maximize  Restore  History

Improved support for SVN sub-repositories:

* the `get_path_history` is now sub-repository aware.
A few refactorings has been done to clarify the code:
* backported the `Repository.has_node(path,rev)` method from TracDiff
* introduced a `_scoped_path(scope, fullpath)` function which
truncates the scope from a full repository path, as returned by the svn API
* simplified the `_normalize_path` function
* added a bunch of unit-tests to cover the `versioncontrol` API
in the sub-repository case
* fix `log:@123:234` links (i.e. if no path is given, take the root)

This fixes #1930.

cboos 2005-09-29

changed /trunk/trac/versioncontrol/api.py
changed /trunk/trac/versioncontrol/cache.py
changed /trunk/trac/versioncontrol/svn_fs.py
changed /trunk/trac/versioncontrol/tests/svn_fs.py
changed /trunk/trac/versioncontrol/web_ui/log.py
/trunk/trac/versioncontrol/api.py Diff Switch to side-by-side view
Loading...
/trunk/trac/versioncontrol/cache.py Diff Switch to side-by-side view
Loading...
/trunk/trac/versioncontrol/svn_fs.py Diff Switch to side-by-side view
Loading...
/trunk/trac/versioncontrol/tests/svn_fs.py Diff Switch to side-by-side view
Loading...
/trunk/trac/versioncontrol/web_ui/log.py Diff Switch to side-by-side view
Loading...
MongoDB Logo MongoDB