Patchwork histedit: remove unused parents() call

login
register
mail settings
Submitter David Soria Parra
Date Sept. 26, 2013, 2:29 p.m.
Message ID <6210ef8c9f620548ea1c.1380205771@achird.localdomain>
Download mbox | patch
Permalink /patch/2643/
State Accepted
Commit baab785e3ecfaf07e287af0e1a02bcaaf9dc38b4
Headers show

Comments

David Soria Parra - Sept. 26, 2013, 2:29 p.m.
# HG changeset patch
# User David Soria Parra <dsp@experimentalworks.net>
# Date 1380199639 -7200
#      Thu Sep 26 14:47:19 2013 +0200
# Node ID 6210ef8c9f620548ea1c585dd938d1e4a6747459
# Parent  ea35caf324bb04cbc9ab5e2328367bc50f558cfb
histedit: remove unused parents() call
Augie Fackler - Sept. 26, 2013, 4:52 p.m.
queued, thanks

On Sep 26, 2013, at 10:29 AM, David Soria Parra <dsp@experimentalworks.net> wrote:

> # HG changeset patch
> # User David Soria Parra <dsp@experimentalworks.net>
> # Date 1380199639 -7200
> #      Thu Sep 26 14:47:19 2013 +0200
> # Node ID 6210ef8c9f620548ea1c585dd938d1e4a6747459
> # Parent  ea35caf324bb04cbc9ab5e2328367bc50f558cfb
> histedit: remove unused parents() call
> 
> diff --git a/hgext/histedit.py b/hgext/histedit.py
> --- a/hgext/histedit.py
> +++ b/hgext/histedit.py
> @@ -501,7 +501,6 @@
> 
>     if goal == 'continue':
>         (parentctxnode, rules, keep, topmost, replacements) = readstate(repo)
> -        currentparent, wantnull = repo.dirstate.parents()
>         parentctx = repo[parentctxnode]
>         parentctx, repl = bootstrapcontinue(ui, repo, parentctx, rules, opts)
>         replacements.extend(repl)
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel@selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel

Patch

diff --git a/hgext/histedit.py b/hgext/histedit.py
--- a/hgext/histedit.py
+++ b/hgext/histedit.py
@@ -501,7 +501,6 @@ 
 
     if goal == 'continue':
         (parentctxnode, rules, keep, topmost, replacements) = readstate(repo)
-        currentparent, wantnull = repo.dirstate.parents()
         parentctx = repo[parentctxnode]
         parentctx, repl = bootstrapcontinue(ui, repo, parentctx, rules, opts)
         replacements.extend(repl)