[Updated] D11445: dirstate: fix compilation warnings in `dirstate_item_set_possibly_dirty()`

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Fri Sep 17 15:16:16 UTC 2021


Closed by commit rHG2018753014be: dirstate: fix compilation warnings in `dirstate_item_set_possibly_dirty()` (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/D11445?vs=30288&id=30290

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

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

AFFECTED FILES
  mercurial/cext/parsers.c

CHANGE DETAILS

diff --git a/mercurial/cext/parsers.c b/mercurial/cext/parsers.c
--- a/mercurial/cext/parsers.c
+++ b/mercurial/cext/parsers.c
@@ -488,9 +488,8 @@
    to make sure it is correct. */
 static PyObject *dirstate_item_set_possibly_dirty(dirstateItemObject *self)
 {
-	if (self->flags |= dirstate_flag_possibly_dirty) {
-		Py_RETURN_NONE;
-	}
+	self->flags |= dirstate_flag_possibly_dirty;
+	Py_RETURN_NONE;
 }
 
 /* See docstring of the python implementation for details */



To: martinvonz, #hg-reviewers, marmoute, Alphare
Cc: Alphare, marmoute, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210917/7dcbb6b4/attachment-0002.html>


More information about the Mercurial-patches mailing list