[PATCH] patch: fix typo in variable name

Peter Arrenbrecht peter.arrenbrecht at gmail.com
Mon Jun 20 04:02:36 CDT 2011


On Mon, Jun 20, 2011 at 9:30 AM, Peter Arrenbrecht
<peter.arrenbrecht at gmail.com> wrote:
> # HG changeset patch
> # User Peter Arrenbrecht <peter.arrenbrecht at gmail.com>
> # Date 1308555003 -7200
> # Branch stable
> # Node ID 556da009286f65dd10d61c52636e1a5bc55fde0c
> # Parent  15faf0e66909286e9ca88f536a160db1d2fc6aac
> patch: fix typo in variable name
>
> diff --git a/mercurial/patch.py b/mercurial/patch.py
> --- a/mercurial/patch.py
> +++ b/mercurial/patch.py
> @@ -1378,7 +1378,7 @@
>             cwd = repo.getcwd()
>             if cwd:
>                 cfiles = [util.pathto(repo.root, cwd, f)
> -                          for f in cfile]
> +                          for f in cfiles]
>             scmutil.addremove(repo, cfiles, similarity=similarity)
>     code = fp.close()
>     if code:
>

By the way, Eclipse's PyDev tells me this kind of stuff using static
analysis. Don't we have something like this running (pylint or
something)?
-parren


More information about the Mercurial-devel mailing list