Mercurial > hgsubversion
comparison hg_delta_editor.py @ 6:1a5bb173170b
Fixes for win32 compatibility. Changes suggested by Shun-ichi GOTO, with some alterations by me.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Thu, 02 Oct 2008 09:13:08 -0500 |
parents | f2636cfed115 |
children | c89f53103502 |
comparison
equal
deleted
inserted
replaced
5:0548662e2f34 | 6:1a5bb173170b |
---|---|
6 import traceback | 6 import traceback |
7 | 7 |
8 from mercurial import context | 8 from mercurial import context |
9 from mercurial import hg | 9 from mercurial import hg |
10 from mercurial import ui | 10 from mercurial import ui |
11 from mercurial import util | |
11 from mercurial import revlog | 12 from mercurial import revlog |
12 from mercurial import node | 13 from mercurial import node |
13 from svn import delta | 14 from svn import delta |
14 from svn import core | 15 from svn import core |
15 | 16 |
25 pickle.dump(data, f) | 26 pickle.dump(data, f) |
26 f.close() | 27 f.close() |
27 except: | 28 except: |
28 raise | 29 raise |
29 else: | 30 else: |
30 os.rename(path, file_path) | 31 util.rename(path, file_path) |
31 | 32 |
32 def stash_exception_on_self(fn): | 33 def stash_exception_on_self(fn): |
33 """Stash any exception raised in the method on self. | 34 """Stash any exception raised in the method on self. |
34 | 35 |
35 This is required because the SWIG bindings just mutate any exception into | 36 This is required because the SWIG bindings just mutate any exception into |