Mercurial > hg
diff hgext/convert/subversion.py @ 39818:24e493ec2229
py3: rename pycompat.getcwd() to encoding.getcwd() (API)
We need to avoid os.getcwdb() on Windows to avoid DeprecationWarnings, and we
need encoding.strtolocal() to encode the result of os.getcwd().
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 21 Sep 2018 19:48:23 -0400 |
parents | 34fe76b31ca4 |
children | 4d6019c0e0ef |
line wrap: on
line diff
--- a/hgext/convert/subversion.py Mon Sep 24 22:46:22 2018 -0400 +++ b/hgext/convert/subversion.py Fri Sep 21 19:48:23 2018 -0400 @@ -1127,7 +1127,7 @@ self.delexec = [] self.copies = [] self.wc = None - self.cwd = pycompat.getcwd() + self.cwd = encoding.getcwd() created = False if os.path.isfile(os.path.join(path, '.svn', 'entries')): @@ -1147,7 +1147,7 @@ path = '/' + path path = 'file://' + path - wcpath = os.path.join(pycompat.getcwd(), os.path.basename(path) + + wcpath = os.path.join(encoding.getcwd(), os.path.basename(path) + '-wc') ui.status(_('initializing svn working copy %r\n') % os.path.basename(wcpath))