[svk-commit] r2394 - trunk/lib/SVK/Command

nobody at bestpractical.com nobody at bestpractical.com
Fri May 11 07:30:55 EDT 2007


Author: clkao
Date: Fri May 11 07:30:52 2007
New Revision: 2394

Modified:
   trunk/lib/SVK/Command/Commit.pm

Log:
Work around a problem that push -P might be using the inspector whose root
has been polluted due to pool usage.


Modified: trunk/lib/SVK/Command/Commit.pm
==============================================================================
--- trunk/lib/SVK/Command/Commit.pm	(original)
+++ trunk/lib/SVK/Command/Commit.pm	Fri May 11 07:30:52 2007
@@ -208,6 +208,9 @@
     my %cb = SVK::Editor::Merge->cb_for_root
 	($target->root, $target->path_anchor,
 	 $m ? $m->fromrev : $target->revision);
+    # XXX: the insepctor's root doesn't belong to it, so we have to
+    # hold the target for now.
+    $cb{__hold_target} = $target;
     return ($patch->commit_editor ($fname),
 	    %cb, send_fulltext => 0);
 }


More information about the svk-commit mailing list