Source

trac-ticketlinks / trac / versioncontrol / cache.py

Author Commit Message Labels Comments Date
rblank
0.12.2dev: Mention the repository name in the suggested command when a repository directory has changed. Closes #9761.
Branches
0.12-stable
rblank
0.12.2dev: Fixed cached properties when subclassing components, by using the name of the class where a property is ''defined'' instead of the actual class to generate the property id. Part of #9870.
Branches
0.12-stable
rblank
0.12.1dev: Formalize the notion of repository scope by defining a default, "empty" scope in `Repository.scope`. Part of #9566.
Branches
0.12-stable
cboos
0.12.1dev: fix sync of scoped svn repository, in case the scope is already present in the initial revision. We used to unconditionally take the ''next'' revision containing the scope, thereby skipping the changeset 1 when it already contained the scope. This would later lead to a `TypeError: expecting datetime ...` exception. Fixes #9504. (Added a regression test)
Branches
0.12-stable
cboos
Deprecate `Environment.get_db_cnx` in favor of `Environment.with_transaction` and `Environment.get_read_db()`.
Branches
trunk
rblank
db: Allow nesting `with_transaction()` without having to pass the database connection explicitly. This allowed greatly simplifying the cache code, which has been reduced to a single `@cached` decorator. Part of #9060.
Branches
trunk
cboos
versioncontrol/cache: PostgreSQL returned the changeset entries in a different order than the other backends (which was the same as the one given by the svn_fs backend), despite the `ORDER BY path` directive. This caused an error in the unit tests.
Branches
trunk
cboos
svn_fs: now re-use all tests, this time on the `SvnCachedRepository`. This is 72 tests in one go! Ok, I cheated for 3 of them which should really be "skipped" in the cached repository case, so this may need a further clean-up.
Branches
trunk
rblank
versioncontrol: Refactored revision number padding for Subversion so that it doesn't interfere with other users of `CachedRepository`. Closes #9089.
Branches
trunk
rblank
versioncontrol: Fixed an internal error in the repository index when a Subversion repository wasn't synchronized yet. Closes #9072.
Branches
trunk
rblank
versioncontrol: Zero-pad Subversion revision numbers in the `revision` and `node_change` tables to avoid having to `CAST()` them to `int` in SQL queries. '''This changeset requires a database upgrade.''' Closes #6654.
Branches
trunk
rblank
db: Converted all timestamp columns for resource tables from seconds to microseconds. * Ticket comments can now be added with a shorter interval than one second. * Conversions of datetime objects from / to microsecond timestamps should be done exclusively throught the new `from_utimestamp()` and `to_utimestamp()` functions. '''This changeset requires a database upgrade.''' Closes #6466.
Branches
trunk
cboos
versioncontrol: added a test for `CachedRepository.sync_changeset`, which catches the #9060 issue. + the fix...
Branches
trunk
cboos
Follow-up to r9185, don't use multi-line strings for messages that may end at the console or in the log.
Branches
trunk
cboos
Reformatting of `RepositoryCache.sync`. No conversion to `with_transaction`, as this would be too convoluted for now. This will need to wait for ''real'' `with` statement support.
Branches
trunk
cboos
Refactor transaction handling, using a with_transaction function decorator (paves the way for using `with transaction(env, db) as db` in future versions of Trac). Many thanks to Jan Schukat for this exhaustive patch. Main part of #8751. (contains the fix for the usage of `with_transaction` in `RepositoryCache.sync_changeset`)
Branches
trunk
cboos
Fix `CachedRepository.sync_changeset`, missing repos argument to Changeset constructor.
Branches
trunk
cboos
0.12dev: merged [source:sandbox/multirepos@9124] branch on trunk. Closes #2086.
Branches
trunk
rblank
0.12dev: Reverted (the non-cosmetic parts of) [8973], due to weirdness in non-ASCII collations. See comment:18:ticket:8519.
Branches
trunk
rblank
0.12dev: Added SQL argument swap missing from [8973].
Branches
trunk
rblank
0.12dev: Replaced all (mis)uses of `LIKE` for case-sensitive prefix matching with a range condition. All remaining uses of `LIKE` are case-insensitive, so `db.like()` is left case-insensitive as well. Closes #8519.
Branches
trunk
rblank
0.12dev: Autumn cleaning using pylint: * Removed unused imports. * Removed unused locals. * Fixed whitespace issues (indentation, spacing, coding conventions). * Removed semicolons at the end of lines (some people around here have been doing too much C ;-). Closes #7518.
Branches
trunk
rblank
0.12dev: Merged [8351-8352] from 0.11-stable.
Branches
trunk
rblank
0.12dev: Merged [8310-8313] from 0.11-stable.
Branches
trunk
rblank
0.12dev: Minor consistency fixes. Part of #7715.
Branches
trunk
rblank
0.12dev: Render `svn:mergeinfo`, `svnmerge-integrated` and `svnmerge-blocked` to show links for merge source paths and revisions, and calculate eligible revisions for merging. Part of #7715.
Branches
trunk
cboos
Follow-up to r6899, need to reverse direction of sorting for `previous_rev`
Branches
trunk
jonas
Fixed copyright year.
Branches
trunk
cboos
vc cache: also use the same strategy for `previous_rev` (though that's not getting used much for now)
Branches
trunk
cboos
Use the vc cache for optimizing `next_rev` (only for the Subversion backend for now) Initial patch by Tim Hatch
Branches
trunk
  1. Prev
  2. 1
  3. 2
  4. 3
  5. Next