http://subversion.tigris.org/issues/show_bug.cgi?id=3017
Issue #|3017
Summary|Add FS API to query
node-origin-revision
Component|subversion
Version|trunk
Platform|All
URL|
OS/Version|All
Status|NEW
Status whiteboard|
Keywords|
Resolution|
Issue type|ENHANCEMENT
Priority|P3
Subcomponent|libsvn_fs
Assigned to|issues subversion
Reported by|cmpilato
------- Additional comments from cmpilato tigris.org Wed Nov 7 06:20:50 -0800 2007 -------
The svn_repos_node_location_segments() needs to quickly
identify the revision in
which a line of history came into being. (And I'm sure
there are plenty of
other applications for this knowledge). For the BDB
backend, an index table
mapping NODE-IDs to the first NODE-REV-ID in the line of
history would be a
super-cheap way to get at this information:
first_node_rev_id = svn_fs_base__node_origin_id(node_id);
## new
txn_id = svn_fs_base__id_txn_id(first_node_rev_id);
revision = svn_fs_base__txn_get_revision(txn_id);
The great thing is that for BDB as well, this table could be
lazily populated
like any ol' cache.
------------------------------------------------------------
---------
To unsubscribe, e-mail: issues-unsubscribe subversion.tigris.org
For additional commands, e-mail: issues-help subversion.tigris.org
|