1. 23 Dec, 2020 1 commit
  2. 11 Jan, 2021 1 commit
  3. 10 Jan, 2021 2 commits
  4. 30 Oct, 2020 3 commits
  5. 29 Oct, 2020 2 commits
  6. 15 Oct, 2020 1 commit
  7. 30 Nov, 2020 2 commits
    • Sushil Khanchi's avatar
      topic: look for topic heads only when necessary · d24669df9a4a
      Sushil Khanchi authored
      Before this patch, if repo.branchheads() were asked to return heads of
      a branch and if there is any active topic, it would append that topic
      name to branch name and search heads for it and return wrong results.
      Because of this behavior we get wrong results for "hg heads" command
      because, this command make a list of heads of each branch in branchmap.
      So if wdir parent has an active topic, it would search for "branch:topic"
      instead of "branch" for each branch.
      Now we append topic only when branch is not passed to the function.
      Changes in test-topic.t file reflect the fixed behavior.
      Changes in test-topic-stack-data.t are obvious but not correct for
      `hg sum` output, which is because that's what the expected behavior
      acc. to the current logic in `hg sum` as it looks for the heads
      of branch of wdir parent and calculate new commits like this:
        new = ancestor(all branch heads) - ancestor(current parent)
      So, it doesn't really care if wdir parent has a topic which is why
      we are getting wrong result for "update:" in `hg sum`.
      You might be wondering why it was returning the correct output before,
      but I digged into it and can tell you that it's just a false
      combination of current cset and code bits which gave the correct results.
      If we want to correctly fix the issue we probably need to wrap
      `hg sum` command.
    • Sushil Khanchi's avatar
      topic: a test to demonstrate a bug in branchheads() · ff84b99569b0
      Sushil Khanchi authored
      Being on an active topic change the result of `hg heads`,
      as demonstrated in added test.
      This will be fixed in next patch.
  8. 23 Dec, 2020 4 commits
  9. 16 Dec, 2020 1 commit
  10. 13 Dec, 2020 1 commit
  11. 01 Dec, 2020 1 commit
    • Georges Racinet's avatar
      head-checking: micro-optimize _filter_obsolete_heads · 843e1df7912f
      Georges Racinet authored
      We move the branch name retrieval after the early continue: it was not
      needed before.
      On my PyPy clone, this saves about 1.4ms in the time to run
      _filter_obsolete_heads() for the branchmap entries of the default branch.
      PyPy having lots of closed branches, for the complete analysis
      that Heptapod currently performs on each push for PyPy,
      this gains around 100ms (2.5% for a total time around 4s).
      All those figures on my workstation.
  12. 13 Dec, 2020 1 commit
  13. 08 Dec, 2020 1 commit
  14. 02 Dec, 2020 3 commits
  15. 27 Nov, 2020 1 commit
    • Anton Shestakov's avatar
      strip: remove experimental.prunestrip option · 8c5f2c37b911
      Anton Shestakov authored
      marmoute decided to drop it because it's "neither documented nor a good idea".
      This extensions was assemble to deal with Facebook willingness to check `hg
      strip` semantic for its user. Changing `hg strip` semantic is overall a pretty
      bad idea, because `stripping` is a specific operation, that is problematic in
      distributed version control but have a narrow set of valid usecase (eg:
      maintenance). Diverting user away from `prune` in favor of a modified `strip` is
      a bad idea, because it mask the legitimate `strip` usage and introduce confusion
      in user heads, The verb is not appropriate and the behavior of `prunestrip` does
      not match the one of vanillia `strip`.
      Facebook is no longer using this, and the lack of documentation is a good hint
      that nobody else is. So lets drop it.
  16. 26 Nov, 2020 3 commits
  17. 25 Nov, 2020 1 commit
    • Anton Shestakov's avatar
      compat: wrap debugstrip from core hg if it exists · 716063c7a372
      Anton Shestakov authored
      Since the debugstrip command from core and strip command from the hgext.strip
      extension is now the same thing, we don't have to wrap them separately. Unless,
      of course, users have a copy of old (from hg 5.6 and earlier) hgext.strip
      laying around that they specifically want to use, but I don't think we want to
      support that use case.
  18. 23 Nov, 2020 1 commit
  19. 20 Nov, 2020 2 commits
  20. 19 Nov, 2020 1 commit
    • Martin von Zweigbergk's avatar
      tests: update with more detailed exit codes · e5d91fd1f319
      Martin von Zweigbergk authored
      CORE-TEST-OUTPUT-UPDATE: 21733e8c924f
      CORE-TEST-OUTPUT-UPDATE: 8d72e29ad1e0
      CORE-TEST-OUTPUT-UPDATE: e0dbfbd4062c
      CORE-TEST-OUTPUT-UPDATE: ebee234d952a
      CORE-TEST-OUTPUT-UPDATE: 527ce85c2e60
      CORE-TEST-OUTPUT-UPDATE: 3175b0e0058b
      CORE-TEST-OUTPUT-UPDATE: f96fa4de5055
      CORE-TEST-OUTPUT-UPDATE: 96ca817ec192
  21. 16 Nov, 2020 1 commit
  22. 11 Nov, 2020 1 commit
  23. 29 Oct, 2020 1 commit
  24. 31 Oct, 2020 4 commits