# HG changeset patch # User Edouard Gomez # Date 1227777200 -3600 # Node ID a14ce129cfcdf9e0cf70be9d5244760b1a626236 # Parent 4fecd17f2de93f995d0bda46c50de13b3330151a convert: check existence of ~/.cvspass before reading it diff -r 4fecd17f2de9 -r a14ce129cfcd hgext/convert/cvs.py --- a/hgext/convert/cvs.py Thu Nov 27 22:04:51 2008 +0100 +++ b/hgext/convert/cvs.py Thu Nov 27 10:13:20 2008 +0100 @@ -201,20 +201,22 @@ if not passw: passw = "A" - pf = open(os.path.expanduser("~/.cvspass")) - for line in pf.read().splitlines(): - part1, part2 = line.split(' ', 1) - if part1 == '/1': - # /1 :pserver:user@example.com:2401/cvsroot/foo Ah