Skip to content
Snippets Groups Projects
  1. Mar 25, 2024
    • Pierre-Yves David's avatar
      phases: avoid a potentially costly dictionary interation in some case · e0f92bd9
      Pierre-Yves David authored
      If we retract for the draft phase, there is not non-public item to be retracted
      and we can skip this part. This part is was apparently super costly thanks to
      Python.
      
      On mozilla-try-2019-02-18, a perf::unbundle call with a 10 000 changesets
      bundle gives give use the following timing.
      
      e57d4b868a3e:     4.6 seconds
      ac1c75188440:   102.5 seconds
      this-changeset:  30.0 seconds
      
      So we recovered about ⅔ of the regression, the next changeset will give us the
      rest back.
      e0f92bd9
  2. Mar 21, 2024
  3. Mar 17, 2024
    • Felipe Resende's avatar
      subrepo: fix normalizing paths with scheme · 08913487
      Felipe Resende authored
      After revision 0afe96e374a7, subrepo paths were normalized using
      posixpath.normpath and that resulted in ssh paths being wrongly converted
      from ssh://host/path to ssh:/host/path
      
      This fix applies the same logic used in urlutil.url to split the path scheme
      from the rest and only use posixpath.normpath to the string after scheme://
      08913487
  4. Mar 16, 2024
  5. Mar 18, 2024
  6. Mar 15, 2024
  7. Mar 14, 2024
  8. Mar 13, 2024
    • Anton Shestakov's avatar
      obsutil: sort metadata before comparing in geteffectflag() · a5d8f261
      Anton Shestakov authored
      This is probably less important now that we dropped Python 2. We do still
      support Python 3.6 though, and the dictionaries aren't ordered there either
      (that was a big change that came with 3.7).
      
      Still, maybe it's a good idea to sort metadata explicitly.
      a5d8f261
  9. Mar 11, 2024
  10. Mar 05, 2024
  11. Feb 29, 2024
  12. Mar 04, 2024
  13. Feb 23, 2024
  14. Jan 17, 2024
    • Georges Racinet's avatar
      chainsaw-update: log actual locks breaking · fe68a2dc
      Georges Racinet authored
      Previously, the command would simply state that it was about
      to break locks, not if there was actually some to break.
      
      This version is race-free. It would be also possible to display
      the content of the lock before hand (not race-free but informative
      in almost all cases).
      fe68a2dc
    • Georges Racinet's avatar
      vfs: have tryunlink tell what it did · 187c5769
      Georges Racinet authored
      It is useful in certain circumstances to know whether vfs.tryunlink()
      actually removed something or not, be it for logging purposes.
      187c5769
  15. Nov 26, 2022
    • Georges Racinet's avatar
      chainsaw: new extension for dangerous operations · bc88aa74
      Georges Racinet authored
      The first provided command is `chainsaw-update`, whose one and single job is
      to make sure that it will pull, update and purge the target repository,
      no matter what may be in the way (locks, notably), see docstring for rationale.
      bc88aa74
  16. Feb 23, 2024
Loading