# HG changeset patch # User Pierre-Yves David # Date 1535712356 -7200 # Node ID 3dddb03f355969bca323d7b9403545bf90f31107 # Parent 25981fae92f93aca71980528056128792cfc7224 pick: use "pick" instead of "grab" for various internal API This should not much user visible impact but this is cleaner. diff -r 25981fae92f9 -r 3dddb03f3559 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())