diff fetch_command.py @ 74:450d5d9d3b80

SubversionRepo: do not use temporary file in get_file() Existing code says swig bindings do not support StringIO objects as output for svn.ra.get_file(). This issue was never reported in the convert extension.
author Patrick Mezard <pmezard@gmail.com>
date Sun, 09 Nov 2008 18:08:35 -0600
parents 9c1b53abefcb
children 6c62bd201785
line wrap: on
line diff
--- a/fetch_command.py
+++ b/fetch_command.py
@@ -349,12 +349,8 @@ def stupid_svn_server_pull_rev(ui, svn, 
                     f = open(file_path, 'w')
                     f.write(svn.get_file(diff_path+'/'+m, r.revnum))
                     f.close()
-                except core.SubversionException, e:
-                    if (e.message.endswith("' path not found")
-                        or e.message.startswith("File not found: revision")):
-                        pass
-                    else:
-                        raise
+                except IOError:
+                    pass
             d2 = empty_file_patch_wont_make_re.sub('', d)
             d2 = property_exec_set_re.sub('', d2)
             d2 = property_exec_removed_re.sub('', d2)