Mercurial > hg-stable
changeset 6813:e1d8e79d7c8f
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.
author | Martin OConnor <martinoc@gmail.com> |
---|---|
date | Wed, 25 Jun 2008 19:41:43 +0100 |
parents | 71e339714586 |
children | 88804fad71bc |
files | hgext/convert/cvs.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/convert/cvs.py Mon Jul 07 09:16:09 2008 +0200 +++ b/hgext/convert/cvs.py Wed Jun 25 19:41:43 2008 +0100 @@ -161,7 +161,7 @@ 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':