<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>48565</bug_id>
          
          <creation_ts>2010-10-28 14:14:19 -0700</creation_ts>
          <short_desc>SCM.git_commit_from_svn_revision and svn_revision_from_git_commit should use a shared cache</short_desc>
          <delta_ts>2010-10-28 14:14:19 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>48500</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>301329</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-10-28 14:14:19 -0700</bug_when>
    <thetext>SCM.git_commit_from_svn_revision and svn_revision_from_git_commit should use a shared cache

I originally implemented these with a shared cache, but then went with a more general @memoized solution instead.  However in some cases we definitely do the lookup in both directions:

Fetching: https://bugs.webkit.org/show_bug.cgi?id=48562&amp;ctype=xml
webkitpy.common.system: [DEBUG] &quot;git log --remove-empty --pretty=format:%H -5 -- /Projects/WebKit/WebKitTools/Scripts/webkitpy/common/checkout/api.py&quot; took 6.05s
webkitpy.common.system: [DEBUG] &quot;git svn find-rev bfdc84421fe0dda8110982eea447d39381ebe56b&quot; took 0.86s
webkitpy.common.system: [DEBUG] &quot;git svn find-rev fdca321d8ef5da39a95e9ac80caad388cfe89b57&quot; took 0.21s
webkitpy.common.system: [DEBUG] &quot;git svn find-rev 3e299cd3c1962b3d4bbcbc726ebcf327fa4886ba&quot; took 0.21s
webkitpy.common.system: [DEBUG] &quot;git svn find-rev b8bdbaa8df0da17daaa41d7e90827e504991b01d&quot; took 0.21s
webkitpy.common.system: [DEBUG] &quot;git svn find-rev 357592e0739bc5122fd47bb67e43899c8d8a54e3&quot; took 0.23s
webkitpy.common.system: [DEBUG] &quot;git svn find-rev r63004&quot; took 0.40s
webkitpy.common.system: [DEBUG] &quot;git log -1 --pretty=format:%ce 357592e0739bc5122fd47bb67e43899c8d8a54e3&quot; took 0.03s
webkitpy.common.system: [DEBUG] &quot;git show --pretty=format: --name-only 357592e0739bc5122fd47bb67e43899c8d8a54e3&quot; took 0.05s
webkitpy.common.system: [DEBUG] &quot;git show 357592e0739bc5122fd47bb67e43899c8d8a54e3:WebKitTools/ChangeLog&quot; took 0.05s
webkitpy.common.system: [DEBUG] &quot;git svn find-rev r70274&quot; took 0.26s
webkitpy.common.system: [DEBUG] &quot;git log -1 --pretty=format:%ce bfdc84421fe0dda8110982eea447d39381ebe56b&quot; took 0.01s
webkitpy.common.system: [DEBUG] &quot;git show --pretty=format: --name-only bfdc84421fe0dda8110982eea447d39381ebe56b&quot; took 0.01s
webkitpy.common.system: [DEBUG] &quot;git show bfdc84421fe0dda8110982eea447d39381ebe56b:WebKitTools/ChangeLog&quot; took 0.03s
webkitpy.common.system: [DEBUG] &quot;git svn find-rev r70059&quot; took 0.28s
webkitpy.common.system: [DEBUG] &quot;git log -1 --pretty=format:%ce fdca321d8ef5da39a95e9ac80caad388cfe89b57&quot; took 0.01s
webkitpy.common.system: [DEBUG] &quot;git show --pretty=format: --name-only fdca321d8ef5da39a95e9ac80caad388cfe89b57&quot; took 0.01s
webkitpy.common.system: [DEBUG] &quot;git show fdca321d8ef5da39a95e9ac80caad388cfe89b57:WebKitTools/ChangeLog&quot; took 0.02s
webkitpy.common.system: [DEBUG] &quot;git svn find-rev r70020&quot; took 0.26s
webkitpy.common.system: [DEBUG] &quot;git log -1 --pretty=format:%ce b8bdbaa8df0da17daaa41d7e90827e504991b01d&quot; took 0.01s
webkitpy.common.system: [DEBUG] &quot;git show --pretty=format: --name-only b8bdbaa8df0da17daaa41d7e90827e504991b01d&quot; took 0.01s
webkitpy.common.system: [DEBUG] &quot;git show b8bdbaa8df0da17daaa41d7e90827e504991b01d:WebKitTools/ChangeLog&quot; took 0.02s
webkitpy.common.system: [DEBUG] &quot;git svn find-rev r70023&quot; took 0.26s
webkitpy.common.system: [DEBUG] &quot;git log -1 --pretty=format:%ce 3e299cd3c1962b3d4bbcbc726ebcf327fa4886ba&quot; took 0.01s
webkitpy.common.system: [DEBUG] &quot;git show --pretty=format: --name-only 3e299cd3c1962b3d4bbcbc726ebcf327fa4886ba&quot; took 0.01s
webkitpy.common.system: [DEBUG] &quot;git show 3e299cd3c1962b3d4bbcbc726ebcf327fa4886ba:WebKitTools/ChangeLog&quot; took 0.02s</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>