[Bug 6002] New: allsuccessors(-1) complains about nullid being pruned

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Tue Oct 16 17:17:27 UTC 2018


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

            Bug ID: 6002
           Summary: allsuccessors(-1) complains about nullid being pruned
           Product: Mercurial
           Version: unspecified
          Hardware: PC
                OS: Mac OS
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: evolution
          Assignee: bugzilla at mercurial-scm.org
          Reporter: hg at pewpew.net
                CC: mercurial-devel at mercurial-scm.org,
                    pierre-yves.david at ens-lyon.org

≻ cat test-nullrev.t
  $ cat >> $HGRCPATH <<EOF
  > [extensions]
  > evolve =
  > EOF

  $ hg init r
  $ cd r
  $ echo hi > a
  $ hg ci -qAm a

 This works, as long as there's no obsolescence in the repo
  $ hg log -r 'allsuccessors(-1)'
  $ echo hi2 > a
  $ hg ci -qm a2

 Add some obsolescence (strangely, if I use `hg debugobsolete` this does NOT
reproduce)
  $ hg prune -r tip
  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
  working directory now at 54894f3cc22c
  1 changesets pruned

 Now it doesn't work
  $ hg log -r 'allsuccessors(-1)'
  abort: hidden revision '-1' is pruned!
  (use --hidden to access hidden revisions)
  [255]

 nullid always seems to work
  $ hg log -r 'allsuccessors(00000)'

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


More information about the Mercurial-devel mailing list