##// END OF EJS Templates
patch: explicitely close input patch files when leaving...
patch: explicitely close input patch files when leaving If applydiff() raises an exception, the opened patch file is kept alive in the exception context. If it is a temporary file (for instance supplied by import command with stdin input), Windows cannot clean it up.

File last commit:

r8225:46293a0c default
r10203:6e26e3c2 stable
Show More
__init__.py
16 lines | 512 B | text/x-python | PythonLexer
Eric Hopper
Fixing up comment headers for split up code.
r2391 # hgweb/__init__.py - web interface to a mercurial repository
Eric Hopper
Moving hgweb.py into it's own module in preparation for breaking it up.
r2311 #
# Copyright 21 May 2005 - (c) 2005 Jake Edge <jake@edge2.net>
# Copyright 2005 Matt Mackall <mpm@selenic.com>
#
Martin Geisler
updated license to be explicit about GPL version 2
r8225 # This software may be used and distributed according to the terms of the
# GNU General Public License version 2, incorporated herein by reference.
Eric Hopper
Moving hgweb.py into it's own module in preparation for breaking it up.
r2311
Matt Mackall
Replace demandload with new demandimport
r3877 import hgweb_mod, hgwebdir_mod
def hgweb(*args, **kwargs):
return hgweb_mod.hgweb(*args, **kwargs)
def hgwebdir(*args, **kwargs):
return hgwebdir_mod.hgwebdir(*args, **kwargs)