]> Savannah Git Hosting - gnulib.git/commit
gnulib-tool.py: Follow gnulib-tool changes, part 58.
authorCollin Funk <collin.funk1@gmail.com>
Sat, 16 Mar 2024 02:58:27 +0000 (19:58 -0700)
committerBruno Haible <bruno@clisp.org>
Sat, 16 Mar 2024 13:01:37 +0000 (14:01 +0100)
commitcb62687680f01a20c29954e502cfe408e4d4c534
treeb2397cd7495a0dfcf38cae4762a6857a8453c111
parent6978d206bfa14854cc3fc18b733968834ef8edac
gnulib-tool.py: Follow gnulib-tool changes, part 58.

Follow gnulib-tool change
2017-05-21  Bruno Haible  <bruno@clisp.org>
gnulib-tool: Add options to create hard links.

* pygnulib/GLConfig.py (GLConfig.__init__): Add 'copymode' and
'lcopymode' to the parameter list. Initialize them.
(GLConfig.default): Don't use symbolic or hard links by default.
(GLConfig.checkCopyMode, GLConfig.setCopyMode, GLConfig.resetCopyMode):
New functions to modify and check the method for copying non --local-dir
files.
(GLConfig.checkLCopyMode, GLConfig.setLCopyMode)
(GLConfig.resetLCopyMode): New functions to modify and check the method
for copying --local-dir files.
(GLConfig.checkSymbolic, GLConfig.resetSymbolic, GLConfig.setSymbolic)
(GLConfig.checkLSymbolic, GLConfig.resetLSymbolic)
(GLConfig.setLSymbolic): Remove unused functions. The functionality of
these are now implemented in the *CopyMode() and *LCopyMode() variants.
* pygnulib/GLFileSystem.py (CopyAction.Hardlink): New Enum value to
describe hard links.
(GLFileSystem.shouldLink): Check if hard links should be used.
(GLFileAssistant.add, GLFileAssistant.update): Try to hard link if
enabled. Copy the file if linking fails.
(GLFileAssistant.add_or_update): Remove temporary files unconditionally.
* pygnulib/GLInfo.py (GLInfo.usage): Document new options in the usage
message.
* pygnulib/GLTestDir.py (GLTestDir.execute): Try to hard link if
enabled. Copy the file if linking fails.
* pygnulib/classes.py: Importy the CopyAction Enum.
* pygnulib/constants.py (hardlink): New function based on
symlink_relative.
* pygnulib/main.py (main): Add new options --hardlink and
--local-hardlink. Invoke 'git update-index --refresh' to mitigate the
effects of the hard links on git.
ChangeLog
gnulib-tool.py.TODO
pygnulib/GLConfig.py
pygnulib/GLFileSystem.py
pygnulib/GLInfo.py
pygnulib/GLTestDir.py
pygnulib/classes.py
pygnulib/constants.py
pygnulib/main.py