42 full_version_string() -> const char* |
42 full_version_string() -> const char* |
43 { |
43 { |
44 static char buffer[128] = {0}; |
44 static char buffer[128] = {0}; |
45 |
45 |
46 if (buffer[0] == '\0') |
46 if (buffer[0] == '\0') |
47 snprintf (buffer, sizeof buffer, "%s-%s", version_string(), REVISION_STRING); |
47 { |
|
48 char* ptr = &buffer[0]; |
|
49 snprintf (ptr, sizeof buffer - (ptr - buffer), "%s-%s", version_string(), HG_NODE); |
|
50 |
|
51 if (strcmp (HG_BRANCH, "default") != 0) |
|
52 snprintf (ptr, sizeof buffer - (ptr - buffer), " (%s)", HG_BRANCH); |
|
53 } |
48 |
54 |
49 return buffer; |
55 return buffer; |
50 } |
56 } |
51 |
57 |
52 FUNCTION |
58 FUNCTION |
53 changeset_date_string() -> const char* |
59 changeset_date_string() -> const char* |
54 { |
60 { |
55 return REVISION_DISPLAY_DATE; |
61 return HG_DATE_STRING; |
56 } |
62 } |