diff options
| author | Evgeni Chasnovski <evgeni.chasnovski@gmail.com> | 2025-11-06 19:53:01 +0200 |
|---|---|---|
| committer | Evgeni Chasnovski <evgeni.chasnovski@gmail.com> | 2025-11-06 19:54:57 +0200 |
| commit | ee3239fcb6826914ccd9bbe5a391f2dd6e0aadca (patch) | |
| tree | 5e31d091793d303bde5eb2c2423f1be1f3c8b667 /test/functional/plugin/pack_spec.lua | |
| parent | f3f509563084104963824772b4694859e4f665bc (diff) | |
| download | rneovim-ee3239fcb6826914ccd9bbe5a391f2dd6e0aadca.tar.gz rneovim-ee3239fcb6826914ccd9bbe5a391f2dd6e0aadca.tar.bz2 rneovim-ee3239fcb6826914ccd9bbe5a391f2dd6e0aadca.zip | |
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".
Diffstat (limited to 'test/functional/plugin/pack_spec.lua')
| -rw-r--r-- | test/functional/plugin/pack_spec.lua | 30 |
1 files changed, 15 insertions, 15 deletions
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 |