Patchwork D6565: drawdag: don't crash when writing copy info to changesets

login
register
mail settings
Submitter phabricator
Date June 22, 2019, 2:25 p.m.
Message ID <1bd4c7a81671574ad35f0a80472541bf@localhost.localdomain>
Download mbox | patch
Permalink /patch/40646/
State Not Applicable
Headers show

Comments

phabricator - June 22, 2019, 2:25 p.m.
Closed by commit rHG15f04d652b62: drawdag: don&#039;t crash when writing copy info to changesets (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6565?vs=15630&id=15631

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D6565/new/

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

AFFECTED FILES
  tests/drawdag.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/tests/drawdag.py b/tests/drawdag.py
--- a/tests/drawdag.py
+++ b/tests/drawdag.py
@@ -300,6 +300,12 @@ 
     def commit(self):
         return self._repo.commitctx(self)
 
+    def p1copies(self):
+        return {}
+
+    def p2copies(self):
+        return {}
+
 def _walkgraph(edges):
     """yield node, parents in topologically order"""
     visible = set(edges.keys())