pick: use "pick" instead of "grab" for various internal API
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 31 Aug 2018 12:45:56 +0200
changeset 4050 3dddb03f3559
parent 4049 25981fae92f9
child 4051 ddae36b4031e
pick: use "pick" instead of "grab" for various internal API This should not much user visible impact but this is cleaner.
hgext3rd/evolve/cmdrewrite.py
--- 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())