Wed Dec 21 13:47:50 UTC 2005 Alberto Bertogli <albertogli@telpin.com.ar>
* Indentation changes to the uncompression patch.
diff -rN -u old-darcsweb/darcsweb.cgi new-darcsweb/darcsweb.cgi
--- old-darcsweb/darcsweb.cgi 2015-10-26 11:53:44.000000000 +0000
+++ new-darcsweb/darcsweb.cgi 2015-10-26 11:53:44.000000000 +0000
@@ -753,14 +753,14 @@
realf = filter_file(config.repodir + '/_darcs/patches/' + hash)
if not os.path.isfile(realf):
return None
- file = open(realf, 'rb')
- if file.read(2) == '\x1f\x8b':
- # file begins with gzip magic
- file.close()
- dsrc = gzip.open(realf)
- else:
- file.seek(0)
- dsrc = file
+ file = open(realf, 'rb')
+ if file.read(2) == '\x1f\x8b':
+ # file begins with gzip magic
+ file.close()
+ dsrc = gzip.open(realf)
+ else:
+ file.seek(0)
+ dsrc = file
return dsrc
def get_darcs_diff(hash, fname = None):