diff options
author | Matt Jordan <mjordan@digium.com> | 2015-04-11 21:38:22 -0500 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2015-04-13 03:48:57 -0400 |
commit | 4a58261694f1538a419dd869f87ea4590171a9f2 (patch) | |
tree | a8d3196d5b69f233f814ef3fa7a543c2ce50bd24 /formats | |
parent | 1174ef588dafe864fe3f2c1f8297690def8f85d1 (diff) |
git migration: Refactor the ASTERISK_FILE_VERSION macro
Git does not support the ability to replace a token with a version
string during check-in. While it does have support for replacing a
token on clone, this is somewhat sub-optimal: the token is replaced
with the object hash, which is not particularly easy for human
consumption. What's more, in practice, the source file version was often
not terribly useful. Generally, when triaging bugs, the overall version
of Asterisk is far more useful than an individual SVN version of a file. As a
result, this patch removes Asterisk's support for showing source file
versions.
Specifically, it does the following:
* Rename ASTERISK_FILE_VERSION macro to ASTERISK_REGISTER_FILE, and
remove passing the version in with the macro. Other facilities
than 'core show file version' make use of the file names, such as
setting a debug level only on a specific file. As such, the act of
registering source files with the Asterisk core still has use. The
macro rename now reflects the new macro purpose.
* main/asterisk:
- Refactor the file_version structure to reflect that it no longer
tracks a version field.
- Remove the "core show file version" CLI command. Without the file
version, it is no longer useful.
- Remove the ast_file_version_find function. The file version is no
longer tracked.
- Rename ast_register_file_version/ast_unregister_file_version to
ast_register_file/ast_unregister_file, respectively.
* main/manager: Remove value from the Version key of the ModuleCheck
Action. The actual key itself has not been removed, as doing so would
absolutely constitute a backwards incompatible change. However, since
the file version is no longer tracked, there is no need to attempt to
include it in the Version key.
* UPGRADE: Add notes for:
- Modification to the ModuleCheck AMI Action
- Removal of the "core show file version" CLI command
Change-Id: I6cf0ff280e1668bf4957dc21f32a5ff43444a40e
Diffstat (limited to 'formats')
-rw-r--r-- | formats/format_g719.c | 2 | ||||
-rw-r--r-- | formats/format_g723.c | 2 | ||||
-rw-r--r-- | formats/format_g726.c | 2 | ||||
-rw-r--r-- | formats/format_g729.c | 2 | ||||
-rw-r--r-- | formats/format_gsm.c | 2 | ||||
-rw-r--r-- | formats/format_h263.c | 2 | ||||
-rw-r--r-- | formats/format_h264.c | 2 | ||||
-rw-r--r-- | formats/format_ilbc.c | 2 | ||||
-rw-r--r-- | formats/format_jpeg.c | 2 | ||||
-rw-r--r-- | formats/format_ogg_vorbis.c | 2 | ||||
-rw-r--r-- | formats/format_pcm.c | 2 | ||||
-rw-r--r-- | formats/format_siren14.c | 2 | ||||
-rw-r--r-- | formats/format_siren7.c | 2 | ||||
-rw-r--r-- | formats/format_sln.c | 2 | ||||
-rw-r--r-- | formats/format_vox.c | 2 | ||||
-rw-r--r-- | formats/format_wav.c | 2 | ||||
-rw-r--r-- | formats/format_wav_gsm.c | 2 |
17 files changed, 17 insertions, 17 deletions
diff --git a/formats/format_g719.c b/formats/format_g719.c index f58286290..f6807b9ca 100644 --- a/formats/format_g719.c +++ b/formats/format_g719.c @@ -29,7 +29,7 @@ #include "asterisk.h" -ASTERISK_FILE_VERSION(__FILE__, "$Revision$") +ASTERISK_REGISTER_FILE() #include "asterisk/mod_format.h" #include "asterisk/module.h" diff --git a/formats/format_g723.c b/formats/format_g723.c index 6d0b96337..777cd746b 100644 --- a/formats/format_g723.c +++ b/formats/format_g723.c @@ -31,7 +31,7 @@ #include "asterisk.h" -ASTERISK_FILE_VERSION(__FILE__, "$Revision$") +ASTERISK_REGISTER_FILE() #include "asterisk/mod_format.h" #include "asterisk/module.h" diff --git a/formats/format_g726.c b/formats/format_g726.c index 25daff908..684275c2b 100644 --- a/formats/format_g726.c +++ b/formats/format_g726.c @@ -34,7 +34,7 @@ #include "asterisk.h" -ASTERISK_FILE_VERSION(__FILE__, "$Revision$") +ASTERISK_REGISTER_FILE() #include "asterisk/mod_format.h" #include "asterisk/module.h" diff --git a/formats/format_g729.c b/formats/format_g729.c index 2c677b2e9..69e6a2563 100644 --- a/formats/format_g729.c +++ b/formats/format_g729.c @@ -32,7 +32,7 @@ #include "asterisk.h" -ASTERISK_FILE_VERSION(__FILE__, "$Revision$") +ASTERISK_REGISTER_FILE() #include "asterisk/mod_format.h" #include "asterisk/module.h" diff --git a/formats/format_gsm.c b/formats/format_gsm.c index 4a688e22a..bf82dd5c6 100644 --- a/formats/format_gsm.c +++ b/formats/format_gsm.c @@ -29,7 +29,7 @@ #include "asterisk.h" -ASTERISK_FILE_VERSION(__FILE__, "$Revision$") +ASTERISK_REGISTER_FILE() #include "asterisk/mod_format.h" #include "asterisk/module.h" diff --git a/formats/format_h263.c b/formats/format_h263.c index 731b746e0..f02d03077 100644 --- a/formats/format_h263.c +++ b/formats/format_h263.c @@ -30,7 +30,7 @@ #include "asterisk.h" -ASTERISK_FILE_VERSION(__FILE__, "$Revision$") +ASTERISK_REGISTER_FILE() #include "asterisk/mod_format.h" #include "asterisk/module.h" diff --git a/formats/format_h264.c b/formats/format_h264.c index 7c3d2d473..633309138 100644 --- a/formats/format_h264.c +++ b/formats/format_h264.c @@ -30,7 +30,7 @@ #include "asterisk.h" -ASTERISK_FILE_VERSION(__FILE__, "$Revision$") +ASTERISK_REGISTER_FILE() #include "asterisk/mod_format.h" #include "asterisk/module.h" diff --git a/formats/format_ilbc.c b/formats/format_ilbc.c index 6b811e693..e07eedba0 100644 --- a/formats/format_ilbc.c +++ b/formats/format_ilbc.c @@ -31,7 +31,7 @@ #include "asterisk.h" -ASTERISK_FILE_VERSION(__FILE__, "$Revision$") +ASTERISK_REGISTER_FILE() #include "asterisk/mod_format.h" #include "asterisk/module.h" diff --git a/formats/format_jpeg.c b/formats/format_jpeg.c index 5b2c72d0d..ed21f88f8 100644 --- a/formats/format_jpeg.c +++ b/formats/format_jpeg.c @@ -30,7 +30,7 @@ #include "asterisk.h" -ASTERISK_FILE_VERSION(__FILE__, "$Revision$") +ASTERISK_REGISTER_FILE() #include "asterisk/mod_format.h" #include "asterisk/module.h" diff --git a/formats/format_ogg_vorbis.c b/formats/format_ogg_vorbis.c index ed616c5e7..0daf64cba 100644 --- a/formats/format_ogg_vorbis.c +++ b/formats/format_ogg_vorbis.c @@ -33,7 +33,7 @@ #include "asterisk.h" -ASTERISK_FILE_VERSION(__FILE__, "$Revision$") +ASTERISK_REGISTER_FILE() #include <vorbis/codec.h> #include <vorbis/vorbisenc.h> diff --git a/formats/format_pcm.c b/formats/format_pcm.c index beb001591..6361cd00f 100644 --- a/formats/format_pcm.c +++ b/formats/format_pcm.c @@ -30,7 +30,7 @@ #include "asterisk.h" -ASTERISK_FILE_VERSION(__FILE__, "$Revision$") +ASTERISK_REGISTER_FILE() #include "asterisk/mod_format.h" #include "asterisk/module.h" diff --git a/formats/format_siren14.c b/formats/format_siren14.c index d0a16c4a2..71de82e98 100644 --- a/formats/format_siren14.c +++ b/formats/format_siren14.c @@ -29,7 +29,7 @@ #include "asterisk.h" -ASTERISK_FILE_VERSION(__FILE__, "$Revision$") +ASTERISK_REGISTER_FILE() #include "asterisk/mod_format.h" #include "asterisk/module.h" diff --git a/formats/format_siren7.c b/formats/format_siren7.c index acfde420c..2fcc131a3 100644 --- a/formats/format_siren7.c +++ b/formats/format_siren7.c @@ -29,7 +29,7 @@ #include "asterisk.h" -ASTERISK_FILE_VERSION(__FILE__, "$Revision$") +ASTERISK_REGISTER_FILE() #include "asterisk/mod_format.h" #include "asterisk/module.h" diff --git a/formats/format_sln.c b/formats/format_sln.c index 143e4da2f..68aa74d47 100644 --- a/formats/format_sln.c +++ b/formats/format_sln.c @@ -27,7 +27,7 @@ #include "asterisk.h" -ASTERISK_FILE_VERSION(__FILE__, "$Revision$") +ASTERISK_REGISTER_FILE() #include "asterisk/mod_format.h" #include "asterisk/module.h" diff --git a/formats/format_vox.c b/formats/format_vox.c index 6724c54d7..5107ab918 100644 --- a/formats/format_vox.c +++ b/formats/format_vox.c @@ -30,7 +30,7 @@ #include "asterisk.h" -ASTERISK_FILE_VERSION(__FILE__, "$Revision$") +ASTERISK_REGISTER_FILE() #include "asterisk/mod_format.h" #include "asterisk/module.h" diff --git a/formats/format_wav.c b/formats/format_wav.c index 90ef986ef..688c3e7e4 100644 --- a/formats/format_wav.c +++ b/formats/format_wav.c @@ -30,7 +30,7 @@ #include "asterisk.h" -ASTERISK_FILE_VERSION(__FILE__, "$Revision$") +ASTERISK_REGISTER_FILE() #include "asterisk/mod_format.h" #include "asterisk/module.h" diff --git a/formats/format_wav_gsm.c b/formats/format_wav_gsm.c index 06597abb3..d5661fbf6 100644 --- a/formats/format_wav_gsm.c +++ b/formats/format_wav_gsm.c @@ -33,7 +33,7 @@ #include "asterisk.h" -ASTERISK_FILE_VERSION(__FILE__, "$Revision$") +ASTERISK_REGISTER_FILE() #include "asterisk/mod_format.h" #include "asterisk/module.h" |