--- a/mercurial/ui.py Thu Dec 27 22:47:44 2007 -0600+++ b/mercurial/ui.py Thu Dec 27 22:49:01 2007 -0600@@ -415,6 +415,8 @@ while True: try: r = self._readline(msg + ' ')+ if not r:+ return default if not pat or re.match(pat, r, matchflags): return r else: