Submitter | phabricator |
---|---|
Date | Dec. 20, 2019, 4:26 p.m. |
Message ID | <differential-rev-PHID-DREV-l5ogebjzksi3xrunattq-req@mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/44012/ |
State | Superseded |
Headers | show |
Comments
martinvonz added a comment. This seems to be a duplicate of D7706 <https://phab.mercurial-scm.org/D7706>. Could you abandon one of them? REPOSITORY rHG Mercurial CHANGES SINCE LAST ACTION https://phab.mercurial-scm.org/D7707/new/ REVISION DETAIL https://phab.mercurial-scm.org/D7707 To: gracinet, #hg-reviewers Cc: martinvonz, mercurial-devel
gracinet added a comment. I'm keeping this one. First phabsend got interrupted, this one has the proper reference in its description. REPOSITORY rHG Mercurial CHANGES SINCE LAST ACTION https://phab.mercurial-scm.org/D7707/new/ REVISION DETAIL https://phab.mercurial-scm.org/D7707 To: gracinet, #hg-reviewers Cc: martinvonz, mercurial-devel
Patch
diff --git a/tests/test-parseindex2.py b/tests/test-parseindex2.py --- a/tests/test-parseindex2.py +++ b/tests/test-parseindex2.py @@ -267,11 +267,13 @@ appendrev(6) self.assertEqual(len(index), 7) - del index[1:7] + del index[1:-1] # assertions that failed before correction self.assertEqual(len(index), 1) # was 4 - self.assertEqual(index.headrevs(), [0]) # gave ValueError + headrevs = getattr(index, 'headrevs', None) + if headrevs is not None: # not implemented in pure + self.assertEqual(index.headrevs(), [0]) # gave ValueError if __name__ == '__main__':