# HG changeset patch # User Dirkjan Ochtman # Date 1228905011 -3600 # Node ID ab3fb222b3459c904810dfbade689b740c763297 # Parent 0a27d0db256d995fb386509ceff3901509e511b4# Parent 613f3c88a388e91b93feb7e02f9a1a9c068b7b48 merge changes from stable diff -r 613f3c88a388 -r ab3fb222b345 mercurial/ui.py --- a/mercurial/ui.py Tue Dec 02 15:31:48 2008 +0100 +++ b/mercurial/ui.py Wed Dec 10 11:30:11 2008 +0100 @@ -407,7 +407,8 @@ import readline # force demandimport to really load the module readline.read_history_file - except ImportError: + # windows sometimes raises something other than ImportError + except Exception: pass line = raw_input(prompt) # When stdin is in binary mode on Windows, it can cause diff -r 613f3c88a388 -r ab3fb222b345 mercurial/util.py --- a/mercurial/util.py Tue Dec 02 15:31:48 2008 +0100 +++ b/mercurial/util.py Wed Dec 10 11:30:11 2008 +0100 @@ -1901,7 +1901,7 @@ _add_dir_if_not_there(seen_dirs, path) for root, dirs, files in os.walk(path, topdown=True, onerror=errhandler): if '.hg' in dirs: - dirs.remove('.hg') # don't recurse inside the .hg directory + dirs[:] = [] # don't descend further yield root # found a repository qroot = os.path.join(root, '.hg', 'patches') if os.path.isdir(os.path.join(qroot, '.hg')): diff -r 613f3c88a388 -r ab3fb222b345 tests/test-hgwebdir --- a/tests/test-hgwebdir Tue Dec 02 15:31:48 2008 +0100 +++ b/tests/test-hgwebdir Wed Dec 10 11:30:11 2008 +0100 @@ -16,14 +16,8 @@ hg init c echo c > c/c hg --cwd c ci -Amc -d'3 0' +root=`pwd` -cd b -hg init d -echo d > d/d -hg --cwd d ci -Amd -cd .. - -root=`pwd` cd .. cat > paths.conf <