Patchwork [01,of,11] commitctx: document the None return for "touched" value

login
register
mail settings
Submitter Pierre-Yves David
Date July 24, 2020, 2:38 p.m.
Message ID <2727e91ffa6e9063bd9c.1595601506@nodosa.octobus.net>
Download mbox | patch
Permalink /patch/46867/
State Accepted
Headers show

Comments

Pierre-Yves David - July 24, 2020, 2:38 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1595427033 -7200
#      Wed Jul 22 16:10:33 2020 +0200
# Node ID 2727e91ffa6e9063bd9c29671b5008cfef22dd97
# Parent  4ccd5ec565c2baaa1d598b20a7ea14d3c4fd39dc
# EXP-Topic commitctx-cleanup-2
# Available At https://foss.heptapod.net/octobus/mercurial-devel/
#              hg pull https://foss.heptapod.net/octobus/mercurial-devel/ -r 2727e91ffa6e
commitctx: document the None return for "touched" value
Yuya Nishihara - July 26, 2020, 3:50 a.m.
On Fri, 24 Jul 2020 16:38:26 +0200, Pierre-Yves David wrote:
> # HG changeset patch
> # User Pierre-Yves David <pierre-yves.david@octobus.net>
> # Date 1595427033 -7200
> #      Wed Jul 22 16:10:33 2020 +0200
> # Node ID 2727e91ffa6e9063bd9c29671b5008cfef22dd97
> # Parent  4ccd5ec565c2baaa1d598b20a7ea14d3c4fd39dc
> # EXP-Topic commitctx-cleanup-2
> # Available At https://foss.heptapod.net/octobus/mercurial-devel/
> #              hg pull https://foss.heptapod.net/octobus/mercurial-devel/ -r 2727e91ffa6e
> commitctx: document the None return for "touched" value

Queued, thanks.

Patch

diff --git a/mercurial/commit.py b/mercurial/commit.py
--- a/mercurial/commit.py
+++ b/mercurial/commit.py
@@ -238,7 +238,7 @@  def _filecommit(
     output: (filenode, touched)
 
         filenode: the filenode that should be used by this changeset
-        touched:  one of: None, 'added' or 'modified'
+        touched:  one of: None (mean untouched), 'added' or 'modified'
     """
 
     fname = fctx.path()