projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
daf4414
)
[scripts] commit-to-changelog fails if git is too old
author
Mark Probst
<mark.probst@gmail.com>
Wed, 4 Aug 2010 21:56:13 +0000
(23:56 +0200)
committer
Mark Probst
<mark.probst@gmail.com>
Wed, 4 Aug 2010 22:01:28 +0000
(
00:01
+0200)
We need a git that supports the %B format specifier, which seems to be
1.7.2. Fail if it's not supported.
scripts/commits-to-changelog.py
patch
|
blob
|
history
diff --git
a/scripts/commits-to-changelog.py
b/scripts/commits-to-changelog.py
index 744528fffb1f673cdbdd496465224976af86b334..3de40bbe51ad1dc82fc584ae43f488955b348192 100755
(executable)
--- a/
scripts/commits-to-changelog.py
+++ b/
scripts/commits-to-changelog.py
@@
-247,6
+247,12
@@
def main ():
global path_to_root
path_to_root = options.root + "/"
+ #see if git supports %B in --format
+ output = git ("log", "-n1", "--format=%B", "HEAD")
+ if output.startswith ("%B"):
+ print >> sys.stderr, "Error: git doesn't support %B in --format - install version 1.7.2 or newer"
+ exit (1)
+
for filename in git ("ls-tree", "-r", "--name-only", "HEAD").splitlines ():
if re.search ("(^|/)Change[Ll]og$", filename):
(path, name) = os.path.split (filename)