From ee3239fcb6826914ccd9bbe5a391f2dd6e0aadca Mon Sep 17 00:00:00 2001 From: Evgeni Chasnovski Date: Thu, 6 Nov 2025 19:53:01 +0200 Subject: fix(pack): consistently use "revision" instead of "state" Problem: In some areas plugin's revision is named "state". This might be confusing for the users. Solution: Consistently use "revision" to indicate "plugin's state on disk". --- test/functional/plugin/pack_spec.lua | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'test/functional/plugin/pack_spec.lua') diff --git a/test/functional/plugin/pack_spec.lua b/test/functional/plugin/pack_spec.lua index 4c2d8d5ec2..58dca1223e 100644 --- a/test/functional/plugin/pack_spec.lua +++ b/test/functional/plugin/pack_spec.lua @@ -1055,10 +1055,10 @@ describe('vim.pack', function() '{101:# Update ───────────────────────────────────────────────────────────────────────} |', ' |', '{101:## fetch} |', - 'Path: {103:FETCH_PATH} |', - 'Source: {103:FETCH_SRC} |', - ('State before: {103:%s} |'):format(hashes.fetch_head), - ('State after: {103:%s} {102:(main)} |'):format(hashes.fetch_new), + 'Path: {103:FETCH_PATH} |', + 'Source: {103:FETCH_SRC} |', + ('Revision before: {103:%s} |'):format(hashes.fetch_head), + ('Revision after: {103:%s} {102:(main)} |'):format(hashes.fetch_new), ' |', 'Pending updates: |', ('{19:< %s │ Commit from `main` to be removed} |'):format( @@ -1074,9 +1074,9 @@ describe('vim.pack', function() '{102:# Same ─────────────────────────────────────────────────────────────────────────} |', ' |', '{102:## semver} |', - 'Path: {103:SEMVER_PATH} |', - 'Source: {103:SEMVER_SRC} |', - ('State: {103:%s} {102:(v0.3.0)} |'):format( + 'Path: {103:SEMVER_PATH} |', + 'Source: {103:SEMVER_SRC} |', + ('Revision: {103:%s} {102:(v0.3.0)} |'):format( hashes.semver_head ), ' |', @@ -1119,10 +1119,10 @@ describe('vim.pack', function() # Update ─────────────────────────────────────────────────────────────────────── ## fetch - Path: %s - Source: %s - State before: %s - State after: %s (main) + Path: %s + Source: %s + Revision before: %s + Revision after: %s (main) Pending updates: < %s │ Commit from `main` to be removed @@ -1470,10 +1470,10 @@ describe('vim.pack', function() # Update ─────────────────────────────────────────────────────────────────────── ## fetch - Path: %s - Source: %s - State before: %s - State after: %s (main) + Path: %s + Source: %s + Revision before: %s + Revision after: %s (main) Pending updates: < %s │ Commit from `main` to be removed -- cgit