D6116: uncommit: updated explanation of _fixdirstate()

taapas1128 (Taapas Agrawal) phabricator at mercurial-scm.org
Mon Mar 11 16:19:50 UTC 2019


taapas1128 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  hgext/uncommit.py

CHANGE DETAILS

diff --git a/hgext/uncommit.py b/hgext/uncommit.py
--- a/hgext/uncommit.py
+++ b/hgext/uncommit.py
@@ -100,8 +100,9 @@
     return repo.commitctx(new)
 
 def _fixdirstate(repo, oldctx, newctx, match=None):
-    """ fix the dirstate after switching the working directory from oldctx to
-    newctx which can be result of either unamend or uncommit.
+    """Fix the dirstate after switching the working directory from
+    oldctx to newctx not containing changed files matched by
+    match. Works for both unamend or uncommit.
     """
     ds = repo.dirstate
     ds.setparents(newctx.node(), node.nullid)



To: taapas1128, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list