Mercurial > hg
comparison rust/hg-core/src/narrow.rs @ 49982:7faedeb24eb2
rhg: fix user-facing error message so it matches Python implementation
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Thu, 12 Jan 2023 10:28:56 +0100 |
parents | e98fd81bb151 |
children | 796b5d6693a4 |
comparison
equal
deleted
inserted
replaced
49981:364e78389653 | 49982:7faedeb24eb2 |
---|---|
42 .hg_vfs() | 42 .hg_vfs() |
43 .try_read(DIRSTATE_FILENAME)? | 43 .try_read(DIRSTATE_FILENAME)? |
44 .unwrap_or_default(); | 44 .unwrap_or_default(); |
45 if store_spec != working_copy_spec { | 45 if store_spec != working_copy_spec { |
46 return Err(HgError::abort( | 46 return Err(HgError::abort( |
47 "working copy's narrowspec is stale", | 47 "abort: working copy's narrowspec is stale", |
48 exit_codes::STATE_ERROR, | 48 exit_codes::STATE_ERROR, |
49 Some("run 'hg tracked --update-working-copy'".into()), | 49 Some("run 'hg tracked --update-working-copy'".into()), |
50 ) | 50 ) |
51 .into()); | 51 .into()); |
52 } | 52 } |