# HG changeset patch # User Nico R. # Date 1320018472 -3600 # Node ID 794f3e41ec1e41145251d53d69559d4819c199e1 # Parent 88f3cda47def987b06ed35b64bf2e316c3c83750 The handler seems to close the target in subversion-1.7.x. This patch works around it. It has also successfully been tested against subversion-1.6.17. diff --git a/hgsubversion/editor.py b/hgsubversion/editor.py --- a/hgsubversion/editor.py +++ b/hgsubversion/editor.py @@ -342,10 +342,13 @@ class HgEditor(svnwrap.Editor): try: if not self.meta.is_path_valid(self.current.file): return + # Already get and store the value here, because calling + # handler(window) seems to close the target in Subversion 1.7. + val = target.getvalue() handler(window) # window being None means commit this file if not window: - self.current.files[self.current.file] = target.getvalue() + self.current.files[self.current.file] = val except svnwrap.SubversionException, e: #pragma: no cover if e.args[1] == svnwrap.ERR_INCOMPLETE_DATA: self.current.missing.add(self.current.file)