Skip to content
Snippets Groups Projects
  1. Jun 09, 2018
  2. Jul 10, 2018
  3. Jun 10, 2018
    • Yuya Nishihara's avatar
      fileset: parse argument of size() by predicate function · 1500cbe2
      Yuya Nishihara authored
      This change is necessary to pass in a size expression to predicatematcher.
      See the next patch.
      1500cbe2
    • Yuya Nishihara's avatar
      fileset: add "tracked()" to explicitly select files in the revision · 131aae58
      Yuya Nishihara authored
      I'm going to rewrite filesets to be match predicates, which means basic
      patterns such as '*' will no longer be "closed" to the subset constructed
      from the ctx.
      
      Good thing is that 'hg status "set:not binary()"' can include unknown files
      out of the box, and fileset computation will likely to be faster as we won't
      have to walk dirstate twice, for example. Bad thing is that we can't select
      files at a certain revision by 'set:revs(REV, **)' since '**' is "open" to
      any paths. So, this patch introduces "tracked()" as a replacement for the '**'
      in the example above.
      131aae58
  4. Jun 09, 2018
    • Yuya Nishihara's avatar
      fileset: rewrite andset() to not use mctx.narrow() · 80466fd8
      Yuya Nishihara authored
      New code is less efficient than the original, but it helps porting andset()
      to matcher composition. This will be cleaned up later.
      
      This effectively disables the fullmatchctx magic since mctx will never be
      demoted to the matchctx. The fullmatchctx class will be removed later.
      80466fd8
  5. Jun 10, 2018
  6. Jul 14, 2018
  7. Jul 15, 2018
  8. Jul 14, 2018
  9. Jul 12, 2018
  10. Jul 11, 2018
  11. Jul 13, 2018
    • Gregory Szorc's avatar
      scmutil: rewrite docstring for filecache · 3b072388
      Gregory Szorc authored
      The old docstring was incorrect in that it said that subsequent
      calls perform a stat() and refresh the object if things change.
      This is not how things work: __get__ populates obj.__dict__[self.sname]
      with the result of the decorated function and returns this value
      without validation on subsequent calls, if available.
      
      The correct usage of this type is kinda wonky. It would probably
      benefit from a refactor. But I don't have time to do that right
      now. But we can change the docstring so others aren't entrapped by
      its lies (like I was when using repofilecache in a Mozilla extension).
      
      Differential Revision: https://phab.mercurial-scm.org/D3943
      3b072388
  12. Jul 12, 2018
  13. Jul 11, 2018
  14. Jul 12, 2018
  15. Jun 30, 2018
    • Sushil Khanchi's avatar
      rebase: add --confirm option · 572dff5c
      Sushil Khanchi authored
      This feature adds a functionality in rebase to confirm before applying
      changes.
      When there is no conflict and user confirm to apply actions, we just
      finish the unfinished rebase. But when there is a conflict and user
      confirm to apply actions then we can't just finish rebasing using
      rbsrt._finishrebase() because in-memory merge doesn't support conflicts, so
      we have to abort and run on-disk merge in this case.
      And if user doesn't confirm to apply actions then simply abort the rebase.
      
      Differential Revision: https://phab.mercurial-scm.org/D3870
      572dff5c
  16. Jul 11, 2018
  17. Jul 10, 2018
    • Yuya Nishihara's avatar
      grep: hide cryptic revision number by default · aabc01da
      Yuya Nishihara authored
      I believe nobody would want to see the "2147483647:" prefix while grepping
      working directory files.
      
      The wdir revision is still visible if "-r wdir()" is specified since a revset
      may point to more than one revisions, and it seems confusing to change the
      visibility dynamically by the number of the matched revisions.
      
      Differential Revision: https://phab.mercurial-scm.org/D3920
      aabc01da
Loading