[PATCH 5 of 5 evolve-ext] prune: add --keep to not touch the working copy

Pierre-Yves David pierre-yves.david at ens-lyon.org
Fri Mar 20 14:56:38 CDT 2015



On 03/19/2015 06:14 PM, Durham Goode wrote:
> # HG changeset patch
> # User Durham Goode <durham at fb.com>
> # Date 1426787762 25200
> #      Thu Mar 19 10:56:02 2015 -0700
> # Node ID 811a7345955e540045d57ed5698db0f12c27f36e
> # Parent  e93100523ef10fae3fcee2bdeac0f676ed842ecd
> prune: add --keep to not touch the working copy

These are pushed to main, thanks (but the --descendant ones). Thanks!

This last patch received this minor update:

--- a/hgext/evolve.py
+++ b/hgext/evolve.py
@@ -1839,11 +1839,11 @@ def cmdprune(ui, repo, *revs, **opts):
                  # strip.stripcmd(). We might want to refactor this 
somewhere
                  # common at some point.

                  # only reset the dirstate for files that would 
actually change
                  # between the working context and uctx
-                descendantrevs = repo.revs("%s::." % newnode.rev())
+                descendantrevs = repo.revs("%d::." % newnode.rev())
                  changedfiles = []
                  for rev in descendantrevs:
                      # blindly reset the files, regardless of what 
actually changed
                      changedfiles.extend(repo[rev].files())
-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list