hgext/convert/subversion.py
changeset 13970 d13913355390
parent 13690 af331f557942
child 14152 00121103546a
equal deleted inserted replaced
13969:336bb8b53ad0 13970:d13913355390
     8 import cPickle as pickle
     8 import cPickle as pickle
     9 import tempfile
     9 import tempfile
    10 import urllib
    10 import urllib
    11 import urllib2
    11 import urllib2
    12 
    12 
    13 from mercurial import strutil, util, encoding
    13 from mercurial import strutil, scmutil, util, encoding
    14 from mercurial.i18n import _
    14 from mercurial.i18n import _
    15 
    15 
    16 # Subversion stuff. Works best with very recent Python SVN bindings
    16 # Subversion stuff. Works best with very recent Python SVN bindings
    17 # e.g. SVN 1.5 or backports. Thanks to the bzr folks for enhancing
    17 # e.g. SVN 1.5 or backports. Thanks to the bzr folks for enhancing
    18 # these bindings.
    18 # these bindings.
   996             ui.status(_('initializing svn working copy %r\n')
   996             ui.status(_('initializing svn working copy %r\n')
   997                       % os.path.basename(wcpath))
   997                       % os.path.basename(wcpath))
   998             self.run0('checkout', path, wcpath)
   998             self.run0('checkout', path, wcpath)
   999 
   999 
  1000             self.wc = wcpath
  1000             self.wc = wcpath
  1001         self.opener = util.opener(self.wc)
  1001         self.opener = scmutil.opener(self.wc)
  1002         self.wopener = util.opener(self.wc)
  1002         self.wopener = scmutil.opener(self.wc)
  1003         self.childmap = mapfile(ui, self.join('hg-childmap'))
  1003         self.childmap = mapfile(ui, self.join('hg-childmap'))
  1004         self.is_exec = util.checkexec(self.wc) and util.is_exec or None
  1004         self.is_exec = util.checkexec(self.wc) and util.is_exec or None
  1005 
  1005 
  1006         if created:
  1006         if created:
  1007             hook = os.path.join(created, 'hooks', 'pre-revprop-change')
  1007             hook = os.path.join(created, 'hooks', 'pre-revprop-change')