##// 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
# hgweb/__init__.py - web interface to a mercurial repository
#
# Copyright 21 May 2005 - (c) 2005 Jake Edge <jake@edge2.net>
# Copyright 2005 Matt Mackall <mpm@selenic.com>
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2, incorporated herein by reference.
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)