Skip to content
Snippets Groups Projects
  1. Jun 24, 2024
    • Jörg Sonnenberger's avatar
      portability: fix build on Solaris-derived systemd · e10b8388
      Jörg Sonnenberger authored
      Current Illumos and older Solaris require _XOPEN_SOURCE for
      msg_control. O_DIRECTORY doesn't exist on older systems either,
      so fallback to O_RDONLY. It's good enough as a repository will
      require both R and X permission anyway.
      e10b8388
  2. Jul 03, 2024
  3. Jun 24, 2024
  4. Jun 11, 2024
  5. Jun 13, 2024
  6. Jun 12, 2024
  7. Jun 11, 2024
  8. Sep 06, 2023
  9. Jun 10, 2024
  10. May 23, 2024
  11. May 07, 2024
    • Anton Shestakov's avatar
      chistedit: change action for the correct item · 6ec4c745
      Anton Shestakov authored
      We have an experimental config histedit.later-commits-first from c820866c52f9,
      and when it's true, the order of commits in histedit UI is reversed, both in
      text mode and in curses mode.
      
      But before this patch key presses in curses mode would change histedit actions
      in the same old order, i.e. trying to edit the latest commit (which would be
      first now) would put "edit" action on the last commit in the list. This wasn't
      a cosmetic issue, histedit would actually proceed to edit the first commit in
      the list.
      
      Let's map rules to display items (hopefully now correctly).
      6ec4c745
  12. Apr 26, 2024
    • Arseniy Alekseyev's avatar
      dirstate: remove the python-side whitelist of allowed matchers · 865efc02
      Arseniy Alekseyev authored
      This whitelist is too permissive because it allows matchers that contain
      disallowed ones deep inside, for example through `intersectionmatcher`.
      
      It is also too restrictive because it doesn't pass through
      some of the matchers we support, such as `patternmatcher`.
      
      It's also unnecessary because unsupported matchers raise
      `FallbackError` and we fall back anyway.
      
      Making this change makes more of the tests use rust code path,
      and therefore subtly change behavior. For example, rust status
      in largefiles repos seems to have strange behavior.
      865efc02
    • Arseniy Alekseyev's avatar
      match: make `was_tampered_with` work recursively · aa23b19e
      Arseniy Alekseyev authored
      This is useful if we are to use it outside of Rust, when
      deciding whether or not to do some fast-path operation with
      a given matcher.
      aa23b19e
    • Arseniy Alekseyev's avatar
      largefiles: mark more matchers as having been tampered with · e32f23f1
      Arseniy Alekseyev authored
      These happened to slip through the cracks earlier because they
      weren't caught by tests. Now that we're enabling rust fast path
      more widely these start breaking.
      e32f23f1
  13. May 06, 2024
  14. Apr 22, 2024
    • Georges Racinet's avatar
      rust: blanket implementation of Graph for Graph references · b08c5fbe
      Georges Racinet authored
      The need comes from the fact that `AncestorsIterator` and many
      Graph-related algorithms take ownership of the `Graph` they work with.
      This, in turn is due to them needing to accept the `Index` instances
      that are provided by the Python layers (that neither rhg nor `RHGitaly`
      use, of course): the fact that nowadays the Python layer holds an object
      that is itself implemented in Rust does not change the core problem that
      they cannot be tracked by the borrow checker.
      
      Even though it looks like cloning `Changelog` would be cheap, it seems
      hard to guarantee that on the long run. The object is already too rich
      for us to be comfortable with it, when using references is the most
      natural and guaranteed way of proceeding.
      
      The added test seems a bit superfleous, but it will act as a reminder
      that this feature is really useful until something in the Mercurial code
      base actually uses it.
      b08c5fbe
  15. May 06, 2024
Loading