You are here: Foswiki>Tasks Web>Item14072 (31 Jan 2018, GeorgeClark)Edit Attach

Item14072: Add utility script that fixes up topic Meta so that commit hooks don't complain.

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Engine
Component:
Branches: Release02x01 master Item14033 Item13897 Item14380 Item14537
Reported By: GeorgeClark
Waiting For:
Last Change By: GeorgeClark
Need a simple way to fix up the timestamps and other Meta aspects that the commit hooks complain a about.

This adds fix_topic_timestamps.pl which is similar to fixTopicInfo.pl. The latter takes a list of filenames to fix, and sets the date to the date of the prior change to the topic, and is more useful to fix up a large list of files prior to building a release. This script sets the timestamps to "now", and is useful prior to a commit.

-- GeorgeClark - 16 May 2016

Related: core/tools/develop/githooks/pre-commit will check and complain about META:TOPICINFO and META:FILEATTACHMENTS timestamps being off. The error message for the meta being off isn't clear, though: It doesn't mention attachment, it just says "date must be within blabla...". Pull request to fix that: https://github.com/foswiki/distro/pull/10

-- PhilippeKehl - 16 May 2016

Thanks for the fix. Merged & closed.

-- GeorgeClark - 17 May 2016
 
Topic revision: r15 - 31 Jan 2018, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy