Patchwork [cleanup] exchange: fix indentation in _pullchangeset

login
register
mail settings
Submitter adgar@google.com
Date Nov. 6, 2014, 10:30 p.m.
Message ID <a6983f5701db9f3f9ba4.1415313016@adgar.nyc.corp.google.com>
Download mbox | patch
Permalink /patch/6618/
State Accepted
Headers show

Comments

adgar@google.com - Nov. 6, 2014, 10:30 p.m.
# HG changeset patch
# User Mike Edgar <adgar@google.com>
# Date 1414212051 14400
#      Sat Oct 25 00:40:51 2014 -0400
# Node ID a6983f5701db9f3f9ba4bd6de395b9a9688607c9
# Parent  2d54aa5397cdb1c697673ba10b7618d5ac25c69e
exchange: fix indentation in _pullchangeset
Augie Fackler - Nov. 7, 2014, 3:23 p.m.
On Thu, Nov 06, 2014 at 05:30:16PM -0500, Mike Edgar wrote:
> # HG changeset patch
> # User Mike Edgar <adgar@google.com>
> # Date 1414212051 14400
> #      Sat Oct 25 00:40:51 2014 -0400
> # Node ID a6983f5701db9f3f9ba4bd6de395b9a9688607c9
> # Parent  2d54aa5397cdb1c697673ba10b7618d5ac25c69e
> exchange: fix indentation in _pullchangeset

queued, thanks

>
> diff -r 2d54aa5397cd -r a6983f5701db mercurial/exchange.py
> --- a/mercurial/exchange.py	Sat Oct 18 01:09:41 2014 -0700
> +++ b/mercurial/exchange.py	Sat Oct 25 00:40:51 2014 -0400
> @@ -1014,9 +1014,9 @@
>          return
>      pullop.stepsdone.add('changegroup')
>      if not pullop.fetch:
> -            pullop.repo.ui.status(_("no changes found\n"))
> -            pullop.cgresult = 0
> -            return
> +        pullop.repo.ui.status(_("no changes found\n"))
> +        pullop.cgresult = 0
> +        return
>      pullop.gettransaction()
>      if pullop.heads is None and list(pullop.common) == [nullid]:
>          pullop.repo.ui.status(_("requesting all changes\n"))
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel@selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel

Patch

diff -r 2d54aa5397cd -r a6983f5701db mercurial/exchange.py
--- a/mercurial/exchange.py	Sat Oct 18 01:09:41 2014 -0700
+++ b/mercurial/exchange.py	Sat Oct 25 00:40:51 2014 -0400
@@ -1014,9 +1014,9 @@ 
         return
     pullop.stepsdone.add('changegroup')
     if not pullop.fetch:
-            pullop.repo.ui.status(_("no changes found\n"))
-            pullop.cgresult = 0
-            return
+        pullop.repo.ui.status(_("no changes found\n"))
+        pullop.cgresult = 0
+        return
     pullop.gettransaction()
     if pullop.heads is None and list(pullop.common) == [nullid]:
         pullop.repo.ui.status(_("requesting all changes\n"))