##// END OF EJS Templates
Tell if no automatic update possible
Matthias Bussonnier -
Show More
@@ -6,7 +6,7 b' whatsnew/development.rst (chronologically ordered), and deletes the snippets.'
6 """
6 """
7
7
8 import io
8 import io
9 import os
9 import sys
10 from glob import glob
10 from glob import glob
11 from os.path import dirname, basename, abspath, join as pjoin
11 from os.path import dirname, basename, abspath, join as pjoin
12 from subprocess import check_call, check_output
12 from subprocess import check_call, check_output
@@ -28,6 +28,10 b' files.difference_update({pjoin(pr_dir, f) for f in {'
28 'antigravity-feature.rst'}
28 'antigravity-feature.rst'}
29 })
29 })
30
30
31 if not files:
32 print("No automatic update available for what's new")
33 sys.exit(0)
34
31
35
32 def getmtime(f):
36 def getmtime(f):
33 return check_output(['git', 'log', '-1', '--format="%ai"', '--', f])
37 return check_output(['git', 'log', '-1', '--format="%ai"', '--', f])
General Comments 0
You need to be logged in to leave comments. Login now