git migration: Refactor the ASTERISK_FILE_VERSION macro
authorMatt Jordan <mjordan@digium.com>
Sun, 12 Apr 2015 02:38:22 +0000 (21:38 -0500)
committerCorey Farrell <git@cfware.com>
Mon, 13 Apr 2015 07:48:57 +0000 (03:48 -0400)
commit4a58261694f1538a419dd869f87ea4590171a9f2
treea8d3196d5b69f233f814ef3fa7a543c2ce50bd24
parent1174ef588dafe864fe3f2c1f8297690def8f85d1
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
548 files changed:
UPGRADE.txt
addons/cdr_mysql.c
addons/chan_mobile.c
addons/format_mp3.c
addons/ooh323c/src/ooSocket.c
addons/res_config_mysql.c
apps/app_adsiprog.c
apps/app_agent_pool.c
apps/app_alarmreceiver.c
apps/app_amd.c
apps/app_authenticate.c
apps/app_bridgewait.c
apps/app_cdr.c
apps/app_celgenuserevent.c
apps/app_chanisavail.c
apps/app_channelredirect.c
apps/app_chanspy.c
apps/app_confbridge.c
apps/app_controlplayback.c
apps/app_dahdiras.c
apps/app_db.c
apps/app_dial.c
apps/app_dictate.c
apps/app_directed_pickup.c
apps/app_directory.c
apps/app_disa.c
apps/app_dumpchan.c
apps/app_echo.c
apps/app_exec.c
apps/app_externalivr.c
apps/app_fax.c
apps/app_festival.c
apps/app_flash.c
apps/app_followme.c
apps/app_forkcdr.c
apps/app_getcpeid.c
apps/app_ices.c
apps/app_image.c
apps/app_ivrdemo.c
apps/app_jack.c
apps/app_macro.c
apps/app_meetme.c
apps/app_milliwatt.c
apps/app_minivm.c
apps/app_mixmonitor.c
apps/app_morsecode.c
apps/app_mp3.c
apps/app_nbscat.c
apps/app_originate.c
apps/app_osplookup.c
apps/app_page.c
apps/app_playback.c
apps/app_playtones.c
apps/app_privacy.c
apps/app_queue.c
apps/app_read.c
apps/app_readexten.c
apps/app_record.c
apps/app_saycounted.c
apps/app_sayunixtime.c
apps/app_senddtmf.c
apps/app_sendtext.c
apps/app_setcallerid.c
apps/app_skel.c
apps/app_sms.c
apps/app_softhangup.c
apps/app_speech_utils.c
apps/app_stack.c
apps/app_stasis.c
apps/app_system.c
apps/app_talkdetect.c
apps/app_test.c
apps/app_transfer.c
apps/app_url.c
apps/app_userevent.c
apps/app_verbose.c
apps/app_voicemail.c
apps/app_waitforring.c
apps/app_waitforsilence.c
apps/app_waituntil.c
apps/app_while.c
apps/app_zapateller.c
apps/confbridge/conf_chan_announce.c
apps/confbridge/conf_chan_record.c
apps/confbridge/conf_config_parser.c
apps/confbridge/confbridge_manager.c
bridges/bridge_builtin_features.c
bridges/bridge_builtin_interval_features.c
bridges/bridge_holding.c
bridges/bridge_native_rtp.c
bridges/bridge_simple.c
bridges/bridge_softmix.c
cdr/cdr_adaptive_odbc.c
cdr/cdr_csv.c
cdr/cdr_custom.c
cdr/cdr_manager.c
cdr/cdr_odbc.c
cdr/cdr_pgsql.c
cdr/cdr_radius.c
cdr/cdr_sqlite.c
cdr/cdr_sqlite3_custom.c
cdr/cdr_syslog.c
cdr/cdr_tds.c
cel/cel_custom.c
cel/cel_manager.c
cel/cel_odbc.c
cel/cel_pgsql.c
cel/cel_radius.c
cel/cel_sqlite3_custom.c
cel/cel_tds.c
channels/chan_alsa.c
channels/chan_bridge_media.c
channels/chan_console.c
channels/chan_dahdi.c
channels/chan_iax2.c
channels/chan_mgcp.c
channels/chan_misdn.c
channels/chan_motif.c
channels/chan_nbs.c
channels/chan_oss.c
channels/chan_phone.c
channels/chan_pjsip.c
channels/chan_rtp.c
channels/chan_sip.c
channels/chan_skinny.c
channels/chan_unistim.c
channels/console_board.c
channels/console_video.c
channels/dahdi/bridge_native_dahdi.c
channels/iax2/codec_pref.c
channels/iax2/firmware.c
channels/iax2/format_compatibility.c
channels/iax2/parser.c
channels/iax2/provision.c
channels/misdn_config.c
channels/pjsip/dialplan_functions.c
channels/sip/config_parser.c
channels/sip/dialplan_functions.c
channels/sip/reqresp_parser.c
channels/sip/route.c
channels/sip/security_events.c
channels/vgrabbers.c
codecs/codec_a_mu.c
codecs/codec_adpcm.c
codecs/codec_alaw.c
codecs/codec_dahdi.c
codecs/codec_g722.c
codecs/codec_g726.c
codecs/codec_gsm.c
codecs/codec_ilbc.c
codecs/codec_lpc10.c
codecs/codec_resample.c
codecs/codec_speex.c
codecs/codec_ulaw.c
formats/format_g719.c
formats/format_g723.c
formats/format_g726.c
formats/format_g729.c
formats/format_gsm.c
formats/format_h263.c
formats/format_h264.c
formats/format_ilbc.c
formats/format_jpeg.c
formats/format_ogg_vorbis.c
formats/format_pcm.c
formats/format_siren14.c
formats/format_siren7.c
formats/format_sln.c
formats/format_vox.c
formats/format_wav.c
formats/format_wav_gsm.c
funcs/func_aes.c
funcs/func_base64.c
funcs/func_blacklist.c
funcs/func_callcompletion.c
funcs/func_callerid.c
funcs/func_cdr.c
funcs/func_channel.c
funcs/func_config.c
funcs/func_curl.c
funcs/func_cut.c
funcs/func_db.c
funcs/func_devstate.c
funcs/func_dialgroup.c
funcs/func_dialplan.c
funcs/func_enum.c
funcs/func_env.c
funcs/func_extstate.c
funcs/func_frame_trace.c
funcs/func_global.c
funcs/func_groupcount.c
funcs/func_hangupcause.c
funcs/func_iconv.c
funcs/func_jitterbuffer.c
funcs/func_lock.c
funcs/func_logic.c
funcs/func_math.c
funcs/func_md5.c
funcs/func_module.c
funcs/func_odbc.c
funcs/func_periodic_hook.c
funcs/func_pitchshift.c
funcs/func_pjsip_aor.c
funcs/func_pjsip_contact.c
funcs/func_pjsip_endpoint.c
funcs/func_presencestate.c
funcs/func_rand.c
funcs/func_realtime.c
funcs/func_sha1.c
funcs/func_shell.c
funcs/func_sorcery.c
funcs/func_speex.c
funcs/func_sprintf.c
funcs/func_srv.c
funcs/func_strings.c
funcs/func_sysinfo.c
funcs/func_talkdetect.c
funcs/func_timeout.c
funcs/func_uri.c
funcs/func_version.c
funcs/func_vmcount.c
funcs/func_volume.c
include/asterisk.h
main/abstract_jb.c
main/acl.c
main/alaw.c
main/aoc.c
main/app.c
main/ast_expr2.c
main/ast_expr2f.c
main/asterisk.c
main/astfd.c
main/astmm.c
main/astobj2.c
main/astobj2_container.c
main/astobj2_hash.c
main/astobj2_rbtree.c
main/audiohook.c
main/autochan.c
main/autoservice.c
main/backtrace.c
main/bridge.c
main/bridge_after.c
main/bridge_basic.c
main/bridge_channel.c
main/bridge_roles.c
main/bucket.c
main/callerid.c
main/ccss.c
main/cdr.c
main/cel.c
main/channel.c
main/channel_internal_api.c
main/chanvars.c
main/cli.c
main/codec.c
main/codec_builtin.c
main/config.c
main/config_options.c
main/core_local.c
main/core_unreal.c
main/crypt.c
main/data.c
main/datastore.c
main/db.c
main/devicestate.c
main/dial.c
main/dns.c
main/dns_core.c
main/dns_naptr.c
main/dns_query_set.c
main/dns_recurring.c
main/dns_srv.c
main/dns_tlsa.c
main/dnsmgr.c
main/dsp.c
main/endpoints.c
main/enum.c
main/event.c
main/features.c
main/file.c
main/fixedjitterbuf.c
main/format.c
main/format_cache.c
main/format_cap.c
main/format_compatibility.c
main/frame.c
main/framehook.c
main/fskmodem_float.c
main/fskmodem_int.c
main/global_datastores.c
main/hashtab.c
main/heap.c
main/http.c
main/image.c
main/indications.c
main/io.c
main/jitterbuf.c
main/json.c
main/libasteriskssl.c
main/loader.c
main/lock.c
main/logger.c
main/manager.c
main/manager_bridges.c
main/manager_channels.c
main/manager_endpoints.c
main/manager_mwi.c
main/manager_system.c
main/md5.c
main/message.c
main/mixmonitor.c
main/named_acl.c
main/netsock.c
main/netsock2.c
main/optional_api.c
main/parking.c
main/pbx.c
main/pickup.c
main/plc.c
main/presencestate.c
main/privacy.c
main/rtp_engine.c
main/say.c
main/sched.c
main/sdp_srtp.c
main/security_events.c
main/sem.c
main/slinfactory.c
main/smoother.c
main/sorcery.c
main/srv.c
main/stasis.c
main/stasis_bridges.c
main/stasis_cache.c
main/stasis_cache_pattern.c
main/stasis_channels.c
main/stasis_endpoints.c
main/stasis_message.c
main/stasis_message_router.c
main/stasis_system.c
main/stdtime/localtime.c
main/strings.c
main/stun.c
main/syslog.c
main/taskprocessor.c
main/tcptls.c
main/tdd.c
main/term.c
main/test.c
main/threadstorage.c
main/timing.c
main/translate.c
main/udptl.c
main/ulaw.c
main/utils.c
main/xml.c
main/xmldoc.c
pbx/dundi-parser.c
pbx/pbx_ael.c
pbx/pbx_config.c
pbx/pbx_dundi.c
pbx/pbx_loopback.c
pbx/pbx_lua.c
pbx/pbx_realtime.c
pbx/pbx_spool.c
res/ael/ael.tab.c
res/ael/ael_lex.c
res/ael/pval.c
res/ari/ari_model_validators.c
res/ari/ari_websockets.c
res/ari/cli.c
res/ari/config.c
res/ari/resource_applications.c
res/ari/resource_asterisk.c
res/ari/resource_bridges.c
res/ari/resource_channels.c
res/ari/resource_device_states.c
res/ari/resource_endpoints.c
res/ari/resource_events.c
res/ari/resource_mailboxes.c
res/ari/resource_playbacks.c
res/ari/resource_recordings.c
res/ari/resource_sounds.c
res/parking/parking_applications.c
res/parking/parking_bridge_features.c
res/parking/parking_manager.c
res/parking/parking_tests.c
res/parking/parking_ui.c
res/res_adsi.c
res/res_ael_share.c
res/res_agi.c
res/res_ari.c
res/res_ari_applications.c
res/res_ari_asterisk.c
res/res_ari_bridges.c
res/res_ari_channels.c
res/res_ari_device_states.c
res/res_ari_endpoints.c
res/res_ari_events.c
res/res_ari_mailboxes.c
res/res_ari_model.c
res/res_ari_playbacks.c
res/res_ari_recordings.c
res/res_ari_sounds.c
res/res_calendar.c
res/res_calendar_caldav.c
res/res_calendar_ews.c
res/res_calendar_exchange.c
res/res_calendar_icalendar.c
res/res_chan_stats.c
res/res_clialiases.c
res/res_clioriginate.c
res/res_config_curl.c
res/res_config_ldap.c
res/res_config_odbc.c
res/res_config_pgsql.c
res/res_config_sqlite.c
res/res_config_sqlite3.c
res/res_convert.c
res/res_corosync.c
res/res_crypto.c
res/res_curl.c
res/res_fax.c
res/res_fax_spandsp.c
res/res_format_attr_celt.c
res/res_format_attr_h263.c
res/res_format_attr_h264.c
res/res_format_attr_opus.c
res/res_format_attr_silk.c
res/res_hep.c
res/res_hep_pjsip.c
res/res_hep_rtcp.c
res/res_http_post.c
res/res_http_websocket.c
res/res_limit.c
res/res_monitor.c
res/res_musiconhold.c
res/res_mutestream.c
res/res_mwi_external.c
res/res_mwi_external_ami.c
res/res_odbc.c
res/res_parking.c
res/res_phoneprov.c
res/res_pjsip/security_events.c
res/res_pjsip_config_wizard.c
res/res_pjsip_dlg_options.c
res/res_pjsip_log_forwarder.c
res/res_pjsip_logger.c
res/res_pjsip_sdp_rtp.c
res/res_pjsip_t38.c
res/res_pktccops.c
res/res_realtime.c
res/res_resolver_unbound.c
res/res_rtp_asterisk.c
res/res_rtp_multicast.c
res/res_security_log.c
res/res_smdi.c
res/res_snmp.c
res/res_sorcery_astdb.c
res/res_sorcery_config.c
res/res_sorcery_memory.c
res/res_sorcery_realtime.c
res/res_speech.c
res/res_srtp.c
res/res_stasis.c
res/res_stasis_answer.c
res/res_stasis_device_state.c
res/res_stasis_mailbox.c
res/res_stasis_playback.c
res/res_stasis_recording.c
res/res_stasis_snoop.c
res/res_stasis_test.c
res/res_statsd.c
res/res_stun_monitor.c
res/res_timing_dahdi.c
res/res_timing_pthread.c
res/res_xmpp.c
res/snmp/agent.c
res/stasis/app.c
res/stasis/command.c
res/stasis/control.c
res/stasis/messaging.c
res/stasis/stasis_bridge.c
res/stasis_recording/stored.c
tests/test_abstract_jb.c
tests/test_acl.c
tests/test_amihooks.c
tests/test_aoc.c
tests/test_app.c
tests/test_ari.c
tests/test_ari_model.c
tests/test_ast_format_str_reduce.c
tests/test_astobj2.c
tests/test_astobj2_thrash.c
tests/test_bucket.c
tests/test_callerid.c
tests/test_cdr.c
tests/test_cel.c
tests/test_channel_feature_hooks.c
tests/test_config.c
tests/test_core_codec.c
tests/test_core_format.c
tests/test_db.c
tests/test_devicestate.c
tests/test_dlinklists.c
tests/test_endpoints.c
tests/test_event.c
tests/test_expr.c
tests/test_format_cache.c
tests/test_format_cap.c
tests/test_func_file.c
tests/test_gosub.c
tests/test_hashtab_thrash.c
tests/test_heap.c
tests/test_jitterbuf.c
tests/test_json.c
tests/test_linkedlists.c
tests/test_locale.c
tests/test_logger.c
tests/test_message.c
tests/test_netsock2.c
tests/test_optional_api.c
tests/test_pbx.c
tests/test_poll.c
tests/test_res_stasis.c
tests/test_sched.c
tests/test_security_events.c
tests/test_skel.c
tests/test_sorcery.c
tests/test_sorcery_astdb.c
tests/test_sorcery_realtime.c
tests/test_stasis.c
tests/test_stasis_channels.c
tests/test_stasis_endpoints.c
tests/test_strings.c
tests/test_substitution.c
tests/test_time.c
tests/test_uri.c
tests/test_utils.c
tests/test_voicemail_api.c
tests/test_websocket_client.c
tests/test_xml_escape.c
utils/ael_main.c
utils/astdb2sqlite3.c
utils/astman.c
utils/check_expr.c
utils/conf2ael.c