Re: [PATCH evolve-ext] evolve: further clarify that update is performed only when requested

2019-07-18 Thread Pierre-Yves David

I pushed the result, thanks !

On 7/18/19 7:03 PM, Kevin Peng wrote:

I see. Thanks!

On Thu, Jul 18, 2019 at 2:51 AM Anton Shestakov  wrote:


On Wed, 17 Jul 2019 12:06:14 -0700
Kevin Peng via Mercurial-devel 
wrote:


Here is an updated patch:

# HG changeset patch
# User kevp...@google.com
# Date 1560563083 25200
#  Fri Jun 14 18:44:43 2019 -0700
# Node ID 8716e0b2ff1cf09efa79dca6303a83600ee42824
# Parent  8195452be71d446eff972ea128199f943731b7fb
evolve: further clarify when update is performed

diff --git a/hgext3rd/evolve/evolvecmd.py b/hgext3rd/evolve/evolvecmd.py
--- a/hgext3rd/evolve/evolvecmd.py
+++ b/hgext3rd/evolve/evolvecmd.py
@@ -1536,9 +1536,9 @@ def evolve(ui, repo, **opts):
  If so, evolve rebases that changeset. If not, evolve refuses to guess your
  intention, and gives a hint about what you might want to do next.

-Any time evolve creates a changeset, it updates the working copy to the new
-changeset. Using ``--update`` will make evolve perform an update after any
-successful evolve operation.
+When ``--update`` is set, a successful evolve operation will update the
+working copy to the newly created changeset. Moreover, an update will
+always be performed if the current working directory parent is obsolete.

  Automatic mode only handles common use cases. For example, it avoids 
taking
  action in the case of ambiguity, and it ignores orphan changesets that are


We already pushed your previous patch after some copy editing, so I
took the liberty of amending this one to apply it cleanly. It can be
seen and reviewed (if you have bitbucket account) at:
https://bitbucket.org/octobus/evolve-devel/commits/d0965c5c5335d14ea0bcb4e0bf336f43ba4fe381

And it looks good to me.


--
Pierre-Yves David
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


Re: [PATCH evolve-ext] evolve: further clarify that update is performed only when requested

2019-07-18 Thread Kevin Peng via Mercurial-devel
I see. Thanks!

On Thu, Jul 18, 2019 at 2:51 AM Anton Shestakov  wrote:
>
> On Wed, 17 Jul 2019 12:06:14 -0700
> Kevin Peng via Mercurial-devel 
> wrote:
>
> > Here is an updated patch:
> >
> > # HG changeset patch
> > # User kevp...@google.com
> > # Date 1560563083 25200
> > #  Fri Jun 14 18:44:43 2019 -0700
> > # Node ID 8716e0b2ff1cf09efa79dca6303a83600ee42824
> > # Parent  8195452be71d446eff972ea128199f943731b7fb
> > evolve: further clarify when update is performed
> >
> > diff --git a/hgext3rd/evolve/evolvecmd.py b/hgext3rd/evolve/evolvecmd.py
> > --- a/hgext3rd/evolve/evolvecmd.py
> > +++ b/hgext3rd/evolve/evolvecmd.py
> > @@ -1536,9 +1536,9 @@ def evolve(ui, repo, **opts):
> >  If so, evolve rebases that changeset. If not, evolve refuses to guess 
> > your
> >  intention, and gives a hint about what you might want to do next.
> >
> > -Any time evolve creates a changeset, it updates the working copy to 
> > the new
> > -changeset. Using ``--update`` will make evolve perform an update after 
> > any
> > -successful evolve operation.
> > +When ``--update`` is set, a successful evolve operation will update the
> > +working copy to the newly created changeset. Moreover, an update will
> > +always be performed if the current working directory parent is 
> > obsolete.
> >
> >  Automatic mode only handles common use cases. For example, it avoids 
> > taking
> >  action in the case of ambiguity, and it ignores orphan changesets that 
> > are
>
> We already pushed your previous patch after some copy editing, so I
> took the liberty of amending this one to apply it cleanly. It can be
> seen and reviewed (if you have bitbucket account) at:
> https://bitbucket.org/octobus/evolve-devel/commits/d0965c5c5335d14ea0bcb4e0bf336f43ba4fe381
>
> And it looks good to me.
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


Re: [PATCH evolve-ext] evolve: further clarify that update is performed only when requested

2019-07-18 Thread Anton Shestakov
On Wed, 17 Jul 2019 12:06:14 -0700
Kevin Peng via Mercurial-devel 
wrote:

> Here is an updated patch:
> 
> # HG changeset patch
> # User kevp...@google.com
> # Date 1560563083 25200
> #  Fri Jun 14 18:44:43 2019 -0700
> # Node ID 8716e0b2ff1cf09efa79dca6303a83600ee42824
> # Parent  8195452be71d446eff972ea128199f943731b7fb
> evolve: further clarify when update is performed
> 
> diff --git a/hgext3rd/evolve/evolvecmd.py b/hgext3rd/evolve/evolvecmd.py
> --- a/hgext3rd/evolve/evolvecmd.py
> +++ b/hgext3rd/evolve/evolvecmd.py
> @@ -1536,9 +1536,9 @@ def evolve(ui, repo, **opts):
>  If so, evolve rebases that changeset. If not, evolve refuses to guess 
> your
>  intention, and gives a hint about what you might want to do next.
> 
> -Any time evolve creates a changeset, it updates the working copy to the 
> new
> -changeset. Using ``--update`` will make evolve perform an update after 
> any
> -successful evolve operation.
> +When ``--update`` is set, a successful evolve operation will update the
> +working copy to the newly created changeset. Moreover, an update will
> +always be performed if the current working directory parent is obsolete.
> 
>  Automatic mode only handles common use cases. For example, it avoids 
> taking
>  action in the case of ambiguity, and it ignores orphan changesets that 
> are

We already pushed your previous patch after some copy editing, so I
took the liberty of amending this one to apply it cleanly. It can be
seen and reviewed (if you have bitbucket account) at:
https://bitbucket.org/octobus/evolve-devel/commits/d0965c5c5335d14ea0bcb4e0bf336f43ba4fe381

And it looks good to me.
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


Re: [PATCH evolve-ext] evolve: further clarify that update is performed only when requested

2019-07-17 Thread Kevin Peng via Mercurial-devel
Here is an updated patch:

# HG changeset patch
# User kevp...@google.com
# Date 1560563083 25200
#  Fri Jun 14 18:44:43 2019 -0700
# Node ID 8716e0b2ff1cf09efa79dca6303a83600ee42824
# Parent  8195452be71d446eff972ea128199f943731b7fb
evolve: further clarify when update is performed

diff --git a/hgext3rd/evolve/evolvecmd.py b/hgext3rd/evolve/evolvecmd.py
--- a/hgext3rd/evolve/evolvecmd.py
+++ b/hgext3rd/evolve/evolvecmd.py
@@ -1536,9 +1536,9 @@ def evolve(ui, repo, **opts):
 If so, evolve rebases that changeset. If not, evolve refuses to guess your
 intention, and gives a hint about what you might want to do next.

-Any time evolve creates a changeset, it updates the working copy to the new
-changeset. Using ``--update`` will make evolve perform an update after any
-successful evolve operation.
+When ``--update`` is set, a successful evolve operation will update the
+working copy to the newly created changeset. Moreover, an update will
+always be performed if the current working directory parent is obsolete.

 Automatic mode only handles common use cases. For example, it avoids taking
 action in the case of ambiguity, and it ignores orphan changesets that are

On Wed, Jul 17, 2019 at 9:03 AM Pierre-Yves David
 wrote:
>
>
>
> On 7/13/19 2:23 AM, Kevin Peng wrote:
> > LGTM. Anton Shestakov also pointed out that evolve will also
> > automatically update if the working dir parent is obsolete; perhaps we
> > should mention that as well?
> >
> > What about:
> >   When ``--update`` is set, a successful evolve operation will update 
> > the
> >   working copy to the newly created changeset. Moreover, an update will
> >   always be performed if the current working directory parent is 
> > obsolete.
> >
> > If this looks good to you, then I can send an updated patch.
>
> This looks good. Anton, what do you think about it?
>
> --
> Pierre-Yves David
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


Re: [PATCH evolve-ext] evolve: further clarify that update is performed only when requested

2019-07-17 Thread Pierre-Yves David



On 7/13/19 2:23 AM, Kevin Peng wrote:

LGTM. Anton Shestakov also pointed out that evolve will also
automatically update if the working dir parent is obsolete; perhaps we
should mention that as well?

What about:
  When ``--update`` is set, a successful evolve operation will update the
  working copy to the newly created changeset. Moreover, an update will
  always be performed if the current working directory parent is obsolete.

If this looks good to you, then I can send an updated patch.


This looks good. Anton, what do you think about it?

--
Pierre-Yves David
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


Re: [PATCH evolve-ext] evolve: further clarify that update is performed only when requested

2019-07-12 Thread Kevin Peng via Mercurial-devel
LGTM. Anton Shestakov also pointed out that evolve will also
automatically update if the working dir parent is obsolete; perhaps we
should mention that as well?

What about:
 When ``--update`` is set, a successful evolve operation will update the
 working copy to the newly created changeset. Moreover, an update will
 always be performed if the current working directory parent is obsolete.

If this looks good to you, then I can send an updated patch.



On Tue, Jul 2, 2019 at 1:27 AM Pierre-Yves David
 wrote:
>
> On 6/15/19 6:20 AM, kevpeng--- via Mercurial-devel wrote:
> > # HG changeset patch
> > # User kevp...@google.com
> > # Date 1560563083 25200
> > #  Fri Jun 14 18:44:43 2019 -0700
> > # Node ID 26769b7cb539e08ed51823750fe799cef1f10bf5
> > # Parent  8195452be71d446eff972ea128199f943731b7fb
> > evolve: further clarify that update is performed only when requested
> >
> > diff --git a/hgext3rd/evolve/evolvecmd.py b/hgext3rd/evolve/evolvecmd.py
> > --- a/hgext3rd/evolve/evolvecmd.py
> > +++ b/hgext3rd/evolve/evolvecmd.py
> > @@ -1536,9 +1536,8 @@ def evolve(ui, repo, **opts):
> >   If so, evolve rebases that changeset. If not, evolve refuses to guess 
> > your
> >   intention, and gives a hint about what you might want to do next.
> >
> > -Any time evolve creates a changeset, it updates the working copy to 
> > the new
> > -changeset. Using ``--update`` will make evolve perform an update after 
> > any
> > -successful evolve operation.
> > +Using ``--update`` will make evolve update the working copy to the new
> > +changeset after any successful evolve operation.
>
> Hi, what do you think about this wording ?
>
>  When ``--update`` is set, successful evolve operations update the
>  working copy parents to the newly created changesets.
>
> --
> Pierre-Yves David
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


Re: [PATCH evolve-ext] evolve: further clarify that update is performed only when requested

2019-07-02 Thread Pierre-Yves David

On 6/15/19 6:20 AM, kevpeng--- via Mercurial-devel wrote:

# HG changeset patch
# User kevp...@google.com
# Date 1560563083 25200
#  Fri Jun 14 18:44:43 2019 -0700
# Node ID 26769b7cb539e08ed51823750fe799cef1f10bf5
# Parent  8195452be71d446eff972ea128199f943731b7fb
evolve: further clarify that update is performed only when requested

diff --git a/hgext3rd/evolve/evolvecmd.py b/hgext3rd/evolve/evolvecmd.py
--- a/hgext3rd/evolve/evolvecmd.py
+++ b/hgext3rd/evolve/evolvecmd.py
@@ -1536,9 +1536,8 @@ def evolve(ui, repo, **opts):
  If so, evolve rebases that changeset. If not, evolve refuses to guess your
  intention, and gives a hint about what you might want to do next.
  
-Any time evolve creates a changeset, it updates the working copy to the new

-changeset. Using ``--update`` will make evolve perform an update after any
-successful evolve operation.
+Using ``--update`` will make evolve update the working copy to the new
+changeset after any successful evolve operation.


Hi, what do you think about this wording ?

When ``--update`` is set, successful evolve operations update the
working copy parents to the newly created changesets.

--
Pierre-Yves David
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


Re: [PATCH evolve-ext] evolve: further clarify that update is performed only when requested

2019-06-24 Thread Anton Shestakov
On Fri, 14 Jun 2019 21:20:39 -0700
kevpeng--- via Mercurial-devel 
wrote:

> # HG changeset patch
> # User kevp...@google.com
> # Date 1560563083 25200
> #  Fri Jun 14 18:44:43 2019 -0700
> # Node ID 26769b7cb539e08ed51823750fe799cef1f10bf5
> # Parent  8195452be71d446eff972ea128199f943731b7fb
> evolve: further clarify that update is performed only when requested

To be precise, evolve still performs an update when working directory
parent is obsolete (no need for --update); and _warnobsoletewc() in
evolve/__init__.py recommends running plain `hg evolve` in such case.

I'll ping Pierre-Yves about this patch, sorry about the delay.
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


[PATCH evolve-ext] evolve: further clarify that update is performed only when requested

2019-06-16 Thread kevpeng--- via Mercurial-devel
# HG changeset patch
# User kevp...@google.com
# Date 1560563083 25200
#  Fri Jun 14 18:44:43 2019 -0700
# Node ID 26769b7cb539e08ed51823750fe799cef1f10bf5
# Parent  8195452be71d446eff972ea128199f943731b7fb
evolve: further clarify that update is performed only when requested

diff --git a/hgext3rd/evolve/evolvecmd.py b/hgext3rd/evolve/evolvecmd.py
--- a/hgext3rd/evolve/evolvecmd.py
+++ b/hgext3rd/evolve/evolvecmd.py
@@ -1536,9 +1536,8 @@ def evolve(ui, repo, **opts):
 If so, evolve rebases that changeset. If not, evolve refuses to guess your
 intention, and gives a hint about what you might want to do next.
 
-Any time evolve creates a changeset, it updates the working copy to the new
-changeset. Using ``--update`` will make evolve perform an update after any
-successful evolve operation.
+Using ``--update`` will make evolve update the working copy to the new
+changeset after any successful evolve operation.
 
 Automatic mode only handles common use cases. For example, it avoids taking
 action in the case of ambiguity, and it ignores orphan changesets that are


___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


[PATCH evolve-ext] evolve: further clarify that update is performed only when requested

2019-06-16 Thread kevpeng--- via Mercurial-devel
# HG changeset patch
# User kevp...@google.com
# Date 1560563083 25200
#  Fri Jun 14 18:44:43 2019 -0700
# Node ID 26769b7cb539e08ed51823750fe799cef1f10bf5
# Parent  8195452be71d446eff972ea128199f943731b7fb
evolve: further clarify that update is performed only when requested

diff --git a/hgext3rd/evolve/evolvecmd.py b/hgext3rd/evolve/evolvecmd.py
--- a/hgext3rd/evolve/evolvecmd.py
+++ b/hgext3rd/evolve/evolvecmd.py
@@ -1536,9 +1536,8 @@ def evolve(ui, repo, **opts):
 If so, evolve rebases that changeset. If not, evolve refuses to guess your
 intention, and gives a hint about what you might want to do next.
 
-Any time evolve creates a changeset, it updates the working copy to the new
-changeset. Using ``--update`` will make evolve perform an update after any
-successful evolve operation.
+Using ``--update`` will make evolve update the working copy to the new
+changeset after any successful evolve operation.
 
 Automatic mode only handles common use cases. For example, it avoids taking
 action in the case of ambiguity, and it ignores orphan changesets that are


___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel