comparison mercurial/dispatch.py @ 30519:20a42325fdef

py3: use pycompat.getcwd() instead of os.getcwd() We have pycompat.getcwd() which returns bytes path on Python 3. This patch changes most of the occurences of the os.getcwd() with pycompat one.
author Pulkit Goyal <7895pulkit@gmail.com>
date Wed, 23 Nov 2016 00:03:11 +0530
parents fc0cfe6c87d7
children 4338f87dbf6f
comparison
equal deleted inserted replaced
30518:a8b17859684a 30519:20a42325fdef
878 req.args = ['--repository', guess] + fullargs 878 req.args = ['--repository', guess] + fullargs
879 return _dispatch(req) 879 return _dispatch(req)
880 if not path: 880 if not path:
881 raise error.RepoError(_("no repository found in" 881 raise error.RepoError(_("no repository found in"
882 " '%s' (.hg not found)") 882 " '%s' (.hg not found)")
883 % os.getcwd()) 883 % pycompat.getcwd())
884 raise 884 raise
885 if repo: 885 if repo:
886 ui = repo.ui 886 ui = repo.ui
887 if options['hidden']: 887 if options['hidden']:
888 repo = repo.unfiltered() 888 repo = repo.unfiltered()