Patchwork [5,of,5,py3,progress] commands: use ctx.getfileset instead of fileset.getfileset

login
register
mail settings
Submitter Augie Fackler
Date Feb. 4, 2014, 8:50 p.m.
Message ID <f5feb6d0ebf4e9230b3f.1391547019@augie-macbookair>
Download mbox | patch
Permalink /patch/3470/
State Superseded
Commit 466707047c8d5429e84a0c9c09ca6be7a7963933
Headers show

Comments

Augie Fackler - Feb. 4, 2014, 8:50 p.m.
# HG changeset patch
# User Augie Fackler <raf@durin42.com>
# Date 1391543704 18000
#      Tue Feb 04 14:55:04 2014 -0500
# Node ID f5feb6d0ebf4e9230b3f0de91c0ae76dbe1ba408
# Parent  5100071fb8beed4a73cb626778bda483e641ef12
commands: use ctx.getfileset instead of fileset.getfileset
Augie Fackler - Feb. 4, 2014, 10:22 p.m.
I'm self-rejecting this series, and will send an update that fixes the last
update cycle.


On Tue, Feb 4, 2014 at 12:50 PM, Augie Fackler <raf@durin42.com> wrote:

> # HG changeset patch
> # User Augie Fackler <raf@durin42.com>
> # Date 1391543704 18000
> #      Tue Feb 04 14:55:04 2014 -0500
> # Node ID f5feb6d0ebf4e9230b3f0de91c0ae76dbe1ba408
> # Parent  5100071fb8beed4a73cb626778bda483e641ef12
> commands: use ctx.getfileset instead of fileset.getfileset
>
> diff --git a/mercurial/commands.py b/mercurial/commands.py
> --- a/mercurial/commands.py
> +++ b/mercurial/commands.py
> @@ -1944,7 +1944,7 @@
>          tree = fileset.parse(expr)[0]
>          ui.note(tree, "\n")
>
> -    for f in fileset.getfileset(ctx, expr):
> +    for f in ctx.getfileset(expr):
>          ui.write("%s\n" % f)
>
>  @command('debugfsinfo', [], _('[PATH]'))
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel@selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel
>

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -1944,7 +1944,7 @@ 
         tree = fileset.parse(expr)[0]
         ui.note(tree, "\n")
 
-    for f in fileset.getfileset(ctx, expr):
+    for f in ctx.getfileset(expr):
         ui.write("%s\n" % f)
 
 @command('debugfsinfo', [], _('[PATH]'))