Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-3017

Add FS API to query node-origin-revision

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: trunk
    • Fix Version/s: 1.5.0
    • Component/s: libsvn_fs
    • Labels:
      None

      Description

      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.
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              cmpilato C. Michael Pilato
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: