# HG changeset patch # User Franz Glasner # Date 1521067477 -3600 # Node ID 025005f1234f1ab2d81ca6aa36bc5d576ec7ea23 # Parent 6553fbdcd4aea2f72155dd8e2342717a06fef1f1 Print the date of the docu more intelligently: use |today| together with keyword expansion diff -r 6553fbdcd4ae -r 025005f1234f .hgkwarchive --- a/.hgkwarchive Wed Mar 14 23:43:54 2018 +0100 +++ b/.hgkwarchive Wed Mar 14 23:44:37 2018 +0100 @@ -1,3 +1,4 @@ [patterns] configmix/**.py = path:README.txt = reST +path:doc/conf.py = diff -r 6553fbdcd4ae -r 025005f1234f README.txt --- a/README.txt Wed Mar 14 23:43:54 2018 +0100 +++ b/README.txt Wed Mar 14 23:44:37 2018 +0100 @@ -5,7 +5,7 @@ :Author: Franz Glasner :Version: |release| -:Date: |VCSHGshortdate| +:Date: |today| :Revision: |VCSRevision| :Repository: |VCSHGpath| diff -r 6553fbdcd4ae -r 025005f1234f doc/conf.py --- a/doc/conf.py Wed Mar 14 23:43:54 2018 +0100 +++ b/doc/conf.py Wed Mar 14 23:44:37 2018 +0100 @@ -30,6 +30,14 @@ # The full version, including alpha/beta/rc tags release = configmix.__version__ +today = '$Date$' +if len(today) == 6 \ + and today[0] == '$' and today[1:-2] == 'Date' \ + and today[-1] == '$': + del today +else: + today = today[7:today.find(' ', 7)] + # -- General configuration ---------------------------------------------------