List Info

Thread: New - Add FS API to query node-origin-revision




New - Add FS API to query node-origin-revision
user name
2007-11-07 08:20:50
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|issuessubversion
             Reported by|cmpilato






------- Additional comments from cmpilatotigris.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-unsubscribesubversion.tigris.org
For additional commands, e-mail: issues-helpsubversion.tigris.org


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )