Skip to content
Snippets Groups Projects
  1. Sep 02, 2020
    • Matt Harbison's avatar
      topic: fix the `topic(...)` revset to not select commits without a topic · 95478db3
      Matt Harbison authored
      The problem seems to be that the now removed __contains__ check would select any
      revision indicated by a non-string argument.  This led to `topic(head())`
      returning a bunch of non-topic heads, though not as many as simply `head()`.
      
      I'm likely misunderstanding something, because there appears to be a similar
      __contains__ check for `branch()` in core.  But maybe that's just harder to see
      the issue, because branch names doesn't disappear like topics.
      95478db3
  2. Aug 21, 2020
  3. Aug 02, 2020
  4. Jul 31, 2020
  5. Jun 12, 2020
  6. Jun 11, 2020
    • Anton Shestakov's avatar
      topic: treat argument to --topic as a literal topic name explicitly · 7f80558c
      Anton Shestakov authored
      We already do treat it as a string (i.e. not a special revset language symbol)
      that needs to be escaped, because we use %s in repo.revs(), which escapes and
      single-quotes the appropriate argument. But now we abort in case user supplies
      topic name that doesn't exist.
      
      Before this patch, when user ran something like `hg push --topic .`, this code
      would use 'topic(".") - obsolete()' revset, which would get an empty set from
      repo.revs() unless there was a topic named "." (unlikely, because this name is
      reserved). This code would then add an empty set to the 'rev' argument of the
      original hg push command. And `hg push` without -r will try and push
      everything, and not just changesets on a specific topic.
      7f80558c
  7. Jul 27, 2020
  8. Jul 22, 2020
  9. Jul 21, 2020
  10. Jul 04, 2020
  11. May 29, 2020
  12. Jul 21, 2020
  13. Jun 27, 2020
  14. Jun 06, 2020
  15. May 24, 2020
  16. Jun 06, 2020
  17. May 21, 2020
  18. May 16, 2020
  19. May 14, 2020
    • Anton Shestakov's avatar
      obslog: make obslog --no-origin -f work with multiple successor sets · 6ea05c97
      Anton Shestakov authored
      When trying to sort multiple successor sets, this block of code used to fail
      with:
      
      - TypeError: '<' not supported between instances of 'dict' and 'dict' (on py3)
      - TypeError: cannot compare sets using cmp() (on py2)
      
      So for sorted() to work properly, we need to remove dicts and sets from the
      data.
      6ea05c97
Loading