changeset 4050:3dddb03f3559

pick: use "pick" instead of "grab" for various internal API This should not much user visible impact but this is cleaner.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 31 Aug 2018 12:45:56 +0200
parents 25981fae92f9
children ddae36b4031e
files hgext3rd/evolve/cmdrewrite.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/evolve/cmdrewrite.py	Fri Aug 31 09:13:11 2018 +0200
+++ b/hgext3rd/evolve/cmdrewrite.py	Fri Aug 31 12:45:56 2018 +0200
@@ -1336,7 +1336,7 @@
     if opts.get('rev'):
         revs.append(opts['rev'])
 
-    with repo.wlock(), repo.lock(), repo.transaction('grab'):
+    with repo.wlock(), repo.lock(), repo.transaction('pick'):
         grabstate = state.cmdstate(repo, path='grabstate')
         pctx = repo['.']
 
@@ -1389,7 +1389,7 @@
             origctx = repo[orignode]
 
         overrides = {('phases', 'new-commit'): origctx.phase()}
-        with repo.ui.configoverride(overrides, 'grab'):
+        with repo.ui.configoverride(overrides, 'pick'):
             newnode = repo.commit(text=origctx.description(),
                                   user=origctx.user(),
                                   date=origctx.date(), extra=origctx.extra())