[Bug 6860] New: bug in revset optimization involving null commit

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Wed Dec 20 23:44:38 UTC 2023


https://bz.mercurial-scm.org/show_bug.cgi?id=6860

            Bug ID: 6860
           Summary: bug in revset optimization involving null commit
           Product: Mercurial
           Version: default branch
          Hardware: PC
                OS: Mac OS
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: martinvonz at google.com
                CC: mercurial-devel at mercurial-scm.org
    Python Version: ---

I haven't even tried to figure out where in the revset optimization this bug
lies, but here's a test that demonstrates it:

```
  $ hg init
  $ echo a > file
  $ hg ci -Am foo
  adding file
  $ hg co -q null
  $ hg debugrevspec --no-optimized  '(parents(only(., public())) | .) &
public()'
  -1
  $ hg debugrevspec  '(parents(only(., public())) | .) & public()'
  -1 (missing-correct-output !)
```

The unoptimized output is correct, the optimized output is not.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list