##// END OF EJS Templates
pyoxidizer: produce working Python 3 Windows installers (issue6366)...
pyoxidizer: produce working Python 3 Windows installers (issue6366) While we've had code to produce Python 3 Windows installers with PyOxidizer, we haven't been advertising them on the web site due to a bug in making TLS connections and issues around resource handling. This commit upgrades our PyOxidizer install and configuration to use a recent Git commit of PyOxidizer. This new version of PyOxidizer contains a *ton* of changes, improvements, and bug fixes. Notably, Windows shared distributions now mostly "just work" and the TLS bug and random problems with Python extension modules in the standard library go away. And Python has been upgraded from 3.7 to 3.8.6. The price we pay for this upgrade is a ton of backwards incompatible changes to Starlark. I applied this commit (the overall series actually) on stable to produce Windows installers for Mercurial 5.5.2, which I published shortly before submitting this commit for review. In order to get the stable branch working, I decided to take a less aggressive approach to Python resource management. Previously, we were attempting to load all Python modules from memory and were performing some hacks to copy Mercurial's non-module resources into additional directories in Starlark. This commit implements a resource callback function in Starlark (a new feature since PyOxidizer 0.7) to dynamically assign standard library resources to in-memory loading and all other resources to filesystem loading. This means that Mercurial's files and all the other packages we ship in the Windows installers (e.g. certifi and pygments) are loaded from the filesystem instead of from memory. This avoids issues due to lack of __file__ and enables us to ship a working Python 3 installer on Windows. The end state of the install layout after this patch is not ideal for @: we still copy resource files like templates and help text to directories next to the hg.exe executable. There is code in @ to use importlib.resources to load these files and we could likely remove these copies once this lands on @. But for now, the install layout mimics what we've shipped for seemingly forever and is backwards compatible. It allows us to achieve the milestone of working Python 3 Windows installers and gets us a giant step closer to deleting Python 2. Differential Revision: https://phab.mercurial-scm.org/D9148

File last commit:

r26098:ce26928c default
r46277:57b5452a default
Show More
patchreview.txt
97 lines | 3.9 KiB | text/plain | TextLexer
Manpreet Singh
Updated contrib/vim/patchreview.* to version 0.2.1...
r10545 *patchreview.txt* Vim global plugin for doing single, multi-patch or diff code reviews
Manpreet Singh
Updated contrib/vim/patchreview.* to version 0.2.2...
r10550 Version v0.2.2 (for Vim version 7.0 or higher)
Manpreet Singh
contrib: patch review plugin for vim 7.0...
r2350
Manpreet Singh
Updated contrib/vim/patchreview.* to version 0.2.1...
r10545 Author: Manpreet Singh < junkblocker@yahoo.com >
Copyright (C) 2006-2010 by Manpreet Singh
Manpreet Singh
contrib: patch review plugin for vim 7.0...
r2350 License : This file is placed in the public domain.
=============================================================================
Manpreet Singh
Updated contrib/vim/patchreview.* to version 0.2.1...
r10545 CONTENTS *patchreview* *diffreview* *patchreview-contents*
Manpreet Singh
contrib: patch review plugin for vim 7.0...
r2350
1. Contents.........................................: |patchreview-contents|
2. Introduction.....................................: |patchreview-intro|
3. PatchReview options..............................: |patchreview-options|
4. PatchReview Usage................................: |patchreview-usage|
Manpreet Singh
Updated contrib/vim/patchreview.* to version 0.2.1...
r10545 4.1 DiffReview Usage.............................: |:DiffReview|
4.2 PatchReview Usage............................: |:PatchReview|
Manpreet Singh
contrib: patch review plugin for vim 7.0...
r2350
=============================================================================
PatchReview Introduction *patchreview-intro*
Manpreet Singh
Updated contrib/vim/patchreview.* to version 0.2.1...
r10545 The Patch Review plugin allows easy single or multipatch code or diff reviews.
It opens each affected file in the patch or in a workspace diff in a diff view
in a separate tab.
VIM provides the |:diffpatch| and related commands to do single file reviews
but can not handle patch files containing multiple patches as is common with
software development projects. This plugin provides that missing
functionality.
timeless@mozdev.org
spelling: behaviour -> behavior
r26098 It also improves on |:diffpatch|'s behavior of creating the patched files in
Manpreet Singh
contrib: patch review plugin for vim 7.0...
r2350 the same directory as original file which can lead to project workspace
pollution.
Manpreet Singh
Updated contrib/vim/patchreview.* to version 0.2.2...
r10550 It does automatic diff generation for various version control systems by
running their diff command.
Manpreet Singh
contrib: patch review plugin for vim 7.0...
r2350 =============================================================================
PatchReview Options *patchreview-options*
Manpreet Singh
Updated contrib/vim/patchreview.* to version 0.2.2...
r10550 g:patchreview_patch = {string}
Optional path to patch binary. PatchReview tries to locate patch on
system path automatically. If the binary is not on system path, this
option tell PatchReview the full path to the binary. This option, if
specified, overrides the default patch binary on the path.
Manpreet Singh
Updated contrib/vim/patchreview.* to version 0.2.1...
r10545
examples:
Manpreet Singh
Updated contrib/vim/patchreview.* to version 0.2.2...
r10550 (On Windows with Cygwin) >
let g:patchreview_patch = 'c:\\cygwin\\bin\\patch.exe'
Manpreet Singh
Updated contrib/vim/patchreview.* to version 0.2.1...
r10545 <
(On *nix systems) >
Manpreet Singh
Updated contrib/vim/patchreview.* to version 0.2.2...
r10550 let g:patchreview_patch = '/usr/bin/gpatch'
Manpreet Singh
Updated contrib/vim/patchreview.* to version 0.2.1...
r10545 <
g:patchreview_filterdiff = {string}
Optional path to filterdiff binary. PatchReview tries to locate
filterdiff on system path automatically. If the binary is not on system
path, this option tell PatchReview the full path to the binary. This
option, if specified, overrides the default filterdiff binary on the
path.
Manpreet Singh
contrib: patch review plugin for vim 7.0...
r2350
examples:
(On Windows with Cygwin)
Manpreet Singh
Updated contrib/vim/patchreview.* to version 0.2.1...
r10545 >
Manpreet Singh
contrib: patch review plugin for vim 7.0...
r2350 let g:patchreview_filterdiff = 'c:\\cygwin\\bin\\filterdiff.exe'
Manpreet Singh
Updated contrib/vim/patchreview.* to version 0.2.1...
r10545 <
Manpreet Singh
contrib: patch review plugin for vim 7.0...
r2350 (On *nix systems)
Manpreet Singh
Updated contrib/vim/patchreview.* to version 0.2.1...
r10545 >
Manpreet Singh
contrib: patch review plugin for vim 7.0...
r2350 let g:patchreview_filterdiff = '/usr/bin/filterdiff'
Manpreet Singh
Updated contrib/vim/patchreview.* to version 0.2.1...
r10545 <
Manpreet Singh
contrib: patch review plugin for vim 7.0...
r2350 =============================================================================
PatchReview Usage *patchreview-usage*
Manpreet Singh
Updated contrib/vim/patchreview.* to version 0.2.1...
r10545 *:DiffReview*
:DiffReview
Perform a diff review in the current directory under version control.
Currently supports Mercurial (hg), Subversion (svn), CVS, Bazaar (bzr) and
Monotone.
Manpreet Singh
contrib: patch review plugin for vim 7.0...
r2350 *:PatchReview*
:PatchReview patchfile_path [optional_source_directory]
Perform a patch review in the current directory based on the supplied
patchfile_path. If optional_source_directory is specified, patchreview is
Manpreet Singh
Updated contrib/vim/patchreview.* to version 0.2.1...
r10545 done on that directory. Otherwise, the current directory is assumed to be
Manpreet Singh
contrib: patch review plugin for vim 7.0...
r2350 the source directory.
Manpreet Singh
Updated contrib/vim/patchreview.* to version 0.2.1...
r10545
Only supports context or unified format patches.
------------------------------------------------------------------------------
vim: ft=help:ts=2:sts=2:sw=2:tw=78:norl: