Patchwork D6116: uncommit: updated explanation of _fixdirstate()

login
register
mail settings
Submitter phabricator
Date March 11, 2019, 4:19 p.m.
Message ID <differential-rev-PHID-DREV-q6n4r6pryy6wda46ikki-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/39217/
State Superseded
Headers show

Comments

phabricator - March 11, 2019, 4:19 p.m.
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




To: taapas1128, #hg-reviewers
Cc: mercurial-devel
phabricator - March 11, 2019, 4:39 p.m.
martinvonz added a comment.


  Sorry, I was actually about to send a different patch for updating its documentation. I'll send it in a few minutes and you can let me know what you think.

REPOSITORY
  rHG Mercurial

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

To: taapas1128, #hg-reviewers
Cc: martinvonz, mercurial-devel
phabricator - March 11, 2019, 4:42 p.m.
taapas1128 added a comment.


  okay then I am closing this .

REPOSITORY
  rHG Mercurial

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

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

Patch

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)