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)