# HG changeset patch # User Martin OConnor # Date 2008-06-25 18:41:43 # Node ID e1d8e79d7c8f3f48b8542cf8e0ab93fbab0c896f # Parent 71e33971458659ee9090c42b5389078f275b0662 Bug:1201 hg convert on CVS working copy produces Traceback Fix identified by frank@kingswood-consulting.co.uk Changed usage fron os.environ["HOME"] to expanduser("~/.cvspass") as this is the only usage of this construct in mercurial sources. diff --git a/hgext/convert/cvs.py b/hgext/convert/cvs.py --- a/hgext/convert/cvs.py +++ b/hgext/convert/cvs.py @@ -161,7 +161,7 @@ class convert_cvs(converter_source): if not passw: passw = "A" - pf = open(os.path.join(os.environ["HOME"], ".cvspass")) + pf = open(os.path.expanduser("~/.cvspass")) for line in pf.read().splitlines(): part1, part2 = line.split(' ', 1) if part1 == '/1':