Mercurial > hgsubversion
comparison fetch_command.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 | 83ed086ddf72 |
comparison
equal
deleted
inserted
replaced
| 5:0548662e2f34 | 6:1a5bb173170b |
|---|---|
| 1 import cStringIO | 1 import cStringIO |
| 2 import re | 2 import re |
| 3 import operator | 3 import operator |
| 4 import os | 4 import os |
| 5 import shutil | 5 import shutil |
| 6 import stat | |
| 7 import tempfile | 6 import tempfile |
| 8 | 7 |
| 9 from mercurial import patch | 8 from mercurial import patch |
| 10 from mercurial import node | 9 from mercurial import node |
| 11 from mercurial import context | 10 from mercurial import context |
| 12 from mercurial import revlog | 11 from mercurial import revlog |
| 12 from mercurial import util as merc_util | |
| 13 from svn import core | 13 from svn import core |
| 14 from svn import delta | 14 from svn import delta |
| 15 | 15 |
| 16 import hg_delta_editor | 16 import hg_delta_editor |
| 17 import svnwrap | 17 import svnwrap |
| 38 ' a slower method that may be buggier. Please upgrade, or' | 38 ' a slower method that may be buggier. Please upgrade, or' |
| 39 ' contribute a patch to use the ctypes bindings instead' | 39 ' contribute a patch to use the ctypes bindings instead' |
| 40 ' of SWIG.') | 40 ' of SWIG.') |
| 41 have_replay = False | 41 have_replay = False |
| 42 initializing_repo = False | 42 initializing_repo = False |
| 43 svn = svnwrap.SubversionRepo(svn_url) | 43 svn = svnwrap.SubversionRepo(svn_url, username=merc_util.getuser()) |
| 44 author_host = "@%s" % svn.uuid | 44 author_host = "@%s" % svn.uuid |
| 45 tag_locations = tag_locations.split(',') | 45 tag_locations = tag_locations.split(',') |
| 46 hg_editor = hg_delta_editor.HgChangeReceiver(hg_repo_path, | 46 hg_editor = hg_delta_editor.HgChangeReceiver(hg_repo_path, |
| 47 ui_=ui, | 47 ui_=ui, |
| 48 subdir=svn.subdir, | 48 subdir=svn.subdir, |
