# HG changeset patch # User Vadim Gelfer # Date 1143656164 28800 # Node ID ea00c570504382323b4cdda595890003324ce6ae # Parent 4c03bc02c779512360f043d1ceaa953dce16dcca# Parent 1a09814a5b1f3cd37067f831520afab1d160077a merge with crew. diff -r 4c03bc02c779 -r ea00c5705043 mercurial/httprepo.py --- a/mercurial/httprepo.py Tue Mar 28 09:04:33 2006 -0800 +++ b/mercurial/httprepo.py Wed Mar 29 10:16:04 2006 -0800 @@ -9,7 +9,7 @@ from remoterepo import * from i18n import gettext as _ from demandload import * -demandload(globals(), "hg os urllib urllib2 urlparse zlib util") +demandload(globals(), "hg os urllib urllib2 urlparse zlib util httplib") class httprepository(remoterepository): def __init__(self, ui, path): @@ -129,8 +129,11 @@ def zgenerator(f): zd = zlib.decompressobj() - for chnk in f: - yield zd.decompress(chnk) + try: + for chnk in f: + yield zd.decompress(chnk) + except httplib.HTTPException, inst: + raise IOError(None, _('connection ended unexpectedly')) yield zd.flush() return util.chunkbuffer(zgenerator(util.filechunkiter(f))) diff -r 4c03bc02c779 -r ea00c5705043 mercurial/ui.py --- a/mercurial/ui.py Tue Mar 28 09:04:33 2006 -0800 +++ b/mercurial/ui.py Wed Mar 29 10:16:04 2006 -0800 @@ -197,10 +197,10 @@ raise def flush(self): - try: - sys.stdout.flush() - finally: - sys.stderr.flush() + try: sys.stdout.flush() + except: pass + try: sys.stderr.flush() + except: pass def readline(self): return sys.stdin.readline()[:-1] diff -r 4c03bc02c779 -r ea00c5705043 templates/filelog-gitweb.tmpl --- a/templates/filelog-gitweb.tmpl Tue Mar 28 09:04:33 2006 -0800 +++ b/templates/filelog-gitweb.tmpl Wed Mar 29 10:16:04 2006 -0800 @@ -13,6 +13,8 @@ summary | changelog | tags | file | revisions | annotate | rss
+
#file|urlescape#
+ #entries%filelogentry#
diff -r 4c03bc02c779 -r ea00c5705043 templates/summary-gitweb.tmpl --- a/templates/summary-gitweb.tmpl Tue Mar 28 09:04:33 2006 -0800 +++ b/templates/summary-gitweb.tmpl Wed Mar 29 10:16:04 2006 -0800 @@ -14,7 +14,7 @@
 
- +
description#desc|escape#
description#desc#
owner#owner|escape#