Patchwork D11658: dirstate: Remove unused variable

login
register
mail settings
Submitter phabricator
Date Oct. 14, 2021, noon
Message ID <differential-rev-PHID-DREV-jva3m3idvnemtvqc2hpz-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49982/
State Superseded
Headers show

Comments

phabricator - Oct. 14, 2021, noon
SimonSapin created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  This fixes test-check-pyflakes.t which is currently failing
  on the default branch.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  mercurial/dirstateutils/v2.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/dirstateutils/v2.py b/mercurial/dirstateutils/v2.py
--- a/mercurial/dirstateutils/v2.py
+++ b/mercurial/dirstateutils/v2.py
@@ -149,7 +149,6 @@ 
         else:
             # There are no mtime-cached directories in the Python implementation
             flags = 0
-            mode = 0
             size = 0
             mtime_s = 0
             mtime_ns = 0