Mercurial > hg
comparison hgext/split.py @ 38069:5ba0cf22e4d0
py3: fix kwargs handling in hgext/split.py
Differential Revision: https://phab.mercurial-scm.org/D3593
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sat, 19 May 2018 18:25:18 +0530 |
parents | 83bade6206d4 |
children | 4f885770c4a2 |
comparison
equal
deleted
inserted
replaced
38068:c560a4ea6dac | 38069:5ba0cf22e4d0 |
---|---|
58 If --rev was not given, split the working directory parent. | 58 If --rev was not given, split the working directory parent. |
59 | 59 |
60 By default, rebase connected non-obsoleted descendants onto the new | 60 By default, rebase connected non-obsoleted descendants onto the new |
61 changeset. Use --no-rebase to avoid the rebase. | 61 changeset. Use --no-rebase to avoid the rebase. |
62 """ | 62 """ |
63 opts = pycompat.byteskwargs(opts) | |
63 revlist = [] | 64 revlist = [] |
64 if opts.get('rev'): | 65 if opts.get('rev'): |
65 revlist.append(opts.get('rev')) | 66 revlist.append(opts.get('rev')) |
66 revlist.extend(revs) | 67 revlist.extend(revs) |
67 with repo.wlock(), repo.lock(), repo.transaction('split') as tr: | 68 with repo.wlock(), repo.lock(), repo.transaction('split') as tr: |