diff -r ae7a614a6a57 -r 7197812e8d44 mercurial/streamclone.py --- a/mercurial/streamclone.py Mon Jan 12 10:59:08 2009 -0600 +++ b/mercurial/streamclone.py Mon Jan 12 11:09:14 2009 -0600 @@ -5,7 +5,7 @@ # This software may be used and distributed according to the terms # of the GNU General Public License, incorporated herein by reference. -import util, lock +import util, error from i18n import _ class StreamException(Exception): @@ -51,7 +51,7 @@ total_bytes += size finally: del l - except (lock.LockHeld, lock.LockUnavailable): + except error.LockError: raise StreamException(2) yield '0\n'