comparison svnwrap/svn_swig_wrapper.py @ 47:9738a7c4e3dd

fix svn push when there's just a file removal
author Valentino Volonghi aka dialtone <valentino@adroll.com>
date Wed, 29 Oct 2008 14:11:04 -0700
parents f30cda3389c2
children 80b923ab242b
comparison
equal deleted inserted replaced
46:f30cda3389c2 47:9738a7c4e3dd
2 import getpass 2 import getpass
3 import os 3 import os
4 import shutil 4 import shutil
5 import sys 5 import sys
6 import tempfile 6 import tempfile
7 import hashlib
7 8
8 from svn import client 9 from svn import client
9 from svn import core 10 from svn import core
10 from svn import delta 11 from svn import delta
11 from svn import ra 12 from svn import ra
314 txdelta_stream = delta.svn_txdelta( 315 txdelta_stream = delta.svn_txdelta(
315 cStringIO.StringIO(base_text), cStringIO.StringIO(new_text), 316 cStringIO.StringIO(base_text), cStringIO.StringIO(new_text),
316 self.pool) 317 self.pool)
317 delta.svn_txdelta_send_txstream(txdelta_stream, handler, 318 delta.svn_txdelta_send_txstream(txdelta_stream, handler,
318 wh_baton, pool) 319 wh_baton, pool)
319 # TODO pass md5(new_text) instead of None 320
320 editor.close_file(baton, None) 321 # TODO pass md5(new_text) instead of None
322 editor.close_file(baton, None, pool)
321 323
322 delta.path_driver(editor, edit_baton, base_revision, paths, driver_cb, 324 delta.path_driver(editor, edit_baton, base_revision, paths, driver_cb,
323 self.pool) 325 self.pool)
324 editor.close_edit(edit_baton, self.pool) 326 editor.close_edit(edit_baton, self.pool)
325 327