Patchwork D11521: dirstate-item: Make constructor parameters optional

login
register
mail settings
Submitter phabricator
Date Oct. 1, 2021, 9:38 a.m.
Message ID <differential-rev-PHID-DREV-6e5ofe7oqh5ja7e25ab3-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49845/
State Superseded
Headers show

Comments

phabricator - Oct. 1, 2021, 9:38 a.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  … in the C implementation of DirstateItem, like they already were in the
  Python and Rust ones.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  mercurial/cext/parsers.c

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/cext/parsers.c b/mercurial/cext/parsers.c
--- a/mercurial/cext/parsers.c
+++ b/mercurial/cext/parsers.c
@@ -71,7 +71,7 @@ 
 	clean_p2 = 0;
 	possibly_dirty = 0;
 	parentfiledata = Py_None;
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "iiiiiiiO", keywords_name,
+	if (!PyArg_ParseTupleAndKeywords(args, kwds, "|iiiiiiiO", keywords_name,
 	                                 &wc_tracked, &p1_tracked, &p2_tracked,
 	                                 &merged, &clean_p1, &clean_p2,
 	                                 &possibly_dirty, &parentfiledata