D5594: copies: consider nullrev a common ancestor

yuja (Yuya Nishihara) phabricator at mercurial-scm.org
Fri Jan 18 09:01:51 EST 2019


yuja added a comment.


  >   There are definitely repositories in the wild where p1 is nullrev (and p2 is not). It's unusual but expressable so, of course, it happened.
  >   
  >   For that matters, there is also case with nullrev != p1 && p1 == p2.
  
  Well, I think it should be considered a sort of corruption. context.py for
  example would go wrong.
  
  Maybe we can add some check to "hg verify".

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D5594

To: martinvonz, #hg-reviewers
Cc: lothiraldan, yuja, mercurial-devel


More information about the Mercurial-devel mailing list