Patchwork D11031: dirstate: add the right internal API in a test script

login
register
mail settings
Submitter phabricator
Date July 9, 2021, 11:03 a.m.
Message ID <differential-rev-PHID-DREV-ksj7uio7izdf47u3pobs-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49345/
State Superseded
Headers show

Comments

phabricator - July 9, 2021, 11:03 a.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  The goal of the script it to perform arbitrary internal operation so lets make
  it clean.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  tests/test-rebuildstate.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-rebuildstate.t b/tests/test-rebuildstate.t
--- a/tests/test-rebuildstate.t
+++ b/tests/test-rebuildstate.t
@@ -19,7 +19,7 @@ 
   >       if opts.get('normal_lookup'):
   >         repo.dirstate.normallookup(file)
   >       else:
-  >         repo.dirstate.drop(file)
+  >         repo.dirstate._drop(file)
   > 
   >     repo.dirstate.write(repo.currenttransaction())
   >   finally: