You are here: Foswiki>Tasks Web>Item11210 (12 Nov 2011, GeorgeClark)Edit Attach

Item11210: post-commit hook needs to properly update TOPICINFO

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Web Site
Component:
Branches:
Reported By: GeorgeClark
Waiting For:
Last Change By: GeorgeClark
Store now trusts TOPICINFO provided that the .txt file is not newer than the .txt,v rcs file.

The post-commit hook for SVN is doing a co / ci of the topic to update the Checkins field. However the TOPICINFO is not updated, resulting in store not picking up the changes.

The post-commit hook should
  • use svnlook author -r $i $REPOS to obtain the author of the commit
  • update TOPICINFO with the correct author,
  • use rlog -h to pull the latest revision and increment it into the TOPICINFO
  • Set the timestamp in TOPICINFO

Examples

rlog -h /home/foswiki.org/public_html/data/Tasks/Item10960.txt

RCS file: /home/foswiki.org/public_html/data/Tasks/Item10960.txt,v
Working file: /home/foswiki.org/public_html/data/Tasks/Item10960.txt
head: 1.17
branch:
locks: strict
access list:
symbolic names:
keyword substitution: o
total revisions: 17
----------------------------
=============================================================================


svnlook author -r 12903 /usr/home/svn/nextwiki
ArthurClemens

Example of out-of-date TOPICINFO

badinfo.jpg

[gac@foswiki ~]$ head /home/foswiki.org/public_html/data/Tasks/Item10960.txt
%<nop>META:TOPICINFO{author="PaulHarvey" comment="save topic" date="1311431822" format="1.1" reprev="5" version="8"}%

[gac@foswiki ~]$ rlog /home/foswiki.org/public_html/data/Tasks/Item10960.txt

RCS file: /home/foswiki.org/public_html/data/Tasks/Item10960.txt,v
Working file: /home/foswiki.org/public_html/data/Tasks/Item10960.txt
head: 1.17
branch:
locks: strict
access list:
symbolic names:
keyword substitution: o
total revisions: 17;    selected revisions: 17
description:
none
----------------------------
revision 1.17
date: 2011/10/27 11:11:00;  author: www;  state: Exp;  lines: +1 -1
auto
----------------------------
revision 1.16
date: 2011/10/09 21:44:00;  author: www;  state: Exp;  lines: +1 -1
auto
----------------------------
revision 1.15
date: 2011/08/21 04:22:01;  author: www;  state: Exp;  lines: +1 -1
auto
----------------------------
revision 1.14
date: 2011/08/21 04:22:01;  author: www;  state: Exp;  lines: +1 -1
auto
----------------------------
revision 1.13
date: 2011/08/21 04:22:01;  author: www;  state: Exp;  lines: +1 -1
auto
----------------------------
revision 1.12
date: 2011/08/21 04:22:01;  author: www;  state: Exp;  lines: +1 -1
auto
----------------------------
revision 1.11
date: 2011/08/18 05:00:00;  author: www;  state: Exp;  lines: +1 -1
auto
----------------------------
revision 1.10
date: 2011/08/03 05:22:00;  author: www;  state: Exp;  lines: +1 -1
auto
----------------------------
revision 1.9
date: 2011/08/03 05:22:00;  author: www;  state: Exp;  lines: +1 -1
auto
----------------------------
revision 1.8
date: 2011/07/23 14:37:02;  author: PaulHarvey;  state: Exp;  lines: +6 -1
save topic
----------------------------
...

-- GeorgeClark - 27 Oct 2011

Closing - updated post-commit.pl installed

-- GeorgeClark - 12 Nov 2011
 

I Attachment Action Size Date Who Comment
badinfo.jpgjpg badinfo.jpg manage 16 K 27 Oct 2011 - 20:31 GeorgeClark  
Topic revision: r9 - 12 Nov 2011, 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