# HG changeset patch # User Sushil khanchi # Date 2018-12-23 07:46:25 # Node ID 6faaf3a1c6ec9342e45f6ebb506f823f8e578daf # Parent 0214962773921f15333f11d97212b307422aaaf5 merge: modify the logical statement Differential Revision: https://phab.mercurial-scm.org/D5476 diff --git a/mercurial/merge.py b/mercurial/merge.py --- a/mercurial/merge.py +++ b/mercurial/merge.py @@ -1538,8 +1538,8 @@ class updateresult(object): unresolvedcount = attr.ib() def isempty(self): - return (not self.updatedcount and not self.mergedcount - and not self.removedcount and not self.unresolvedcount) + return not (self.updatedcount or self.mergedcount + or self.removedcount or self.unresolvedcount) def emptyactions(): """create an actions dict, to be populated and passed to applyupdates()"""