[Updated] D12389: rhg: sort unsupported extensions in error message

Alphare (Raphaël Gomès) phabricator at mercurial-scm.org
Fri Mar 25 15:43:34 UTC 2022


Closed by commit rHGc75dae6e4ca7: rhg: sort unsupported extensions in error message (authored by Alphare).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D12389?vs=32670&id=32711

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D12389/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D12389

AFFECTED FILES
  rust/rhg/src/main.rs

CHANGE DETAILS

diff --git a/rust/rhg/src/main.rs b/rust/rhg/src/main.rs
--- a/rust/rhg/src/main.rs
+++ b/rust/rhg/src/main.rs
@@ -674,6 +674,9 @@
     if unsupported.is_empty() {
         Ok(())
     } else {
+        let mut unsupported: Vec<_> = unsupported.into_iter().collect();
+        // Sort the extensions to get a stable output
+        unsupported.sort();
         Err(CommandError::UnsupportedFeature {
             message: format_bytes!(
                 b"extensions: {} (consider adding them to 'rhg.ignored-extensions' config)",



To: Alphare, #hg-reviewers
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220325/2ce94950/attachment-0002.html>


More information about the Mercurial-patches mailing list