[x265] [PATCH] Change back Mercurial commit hash to 12-character
Ricardo Constantino
wiiaboo at gmail.com
Sat Jun 4 15:00:08 CEST 2016
# HG changeset patch
# User Ricardo Constantino <wiiaboo at gmail.com>
# Date 1465044885 -3600
# Sat Jun 04 13:54:45 2016 +0100
# Node ID 2885f28c8272311bf4446e98ccf8bfde80c73c0b
# Parent e00b80fe105e30e2ac8927e441db45111eb734ad
Change back Mercurial commit hash to 12-character
For some reason I thought it was 16-character, but I can't find
proof of that.
It could be argued that it could be shortened to 7-char like git,
but that could imply that git/hg commits are equivalent, which they
aren't.
diff -r e00b80fe105e -r 2885f28c8272 source/cmake/version.cmake
--- a/source/cmake/version.cmake Fri Jun 03 06:20:37 2016 +0200
+++ b/source/cmake/version.cmake Sat Jun 04 13:54:45 2016 +0100
@@ -58,7 +58,7 @@
ERROR_QUIET
OUTPUT_STRIP_TRAILING_WHITESPACE
)
- string(SUBSTRING "${X265_REVISION_ID}" 0 16 X265_REVISION_ID)
+ string(SUBSTRING "${X265_REVISION_ID}" 0 12 X265_REVISION_ID)
if(X265_LATEST_TAG MATCHES "^r")
string(SUBSTRING ${X265_LATEST_TAG} 1 -1 X265_LATEST_TAG)
More information about the x265-devel
mailing list