Mercurial > hg
comparison hgext/mq.py @ 51125:4224b1aa7ad8 stable
branching: merge default into stable for 6.6rc0
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Tue, 07 Nov 2023 15:21:11 +0100 |
parents | 18c8c18993f0 |
children | f8bf1a8e9181 |
comparison
equal
deleted
inserted
replaced
51117:f6bb9d1c230c | 51125:4224b1aa7ad8 |
---|---|
73 hex, | 73 hex, |
74 nullrev, | 74 nullrev, |
75 short, | 75 short, |
76 ) | 76 ) |
77 from mercurial.pycompat import ( | 77 from mercurial.pycompat import ( |
78 delattr, | |
79 getattr, | |
80 open, | 78 open, |
81 ) | 79 ) |
82 from mercurial import ( | 80 from mercurial import ( |
83 cmdutil, | 81 cmdutil, |
84 commands, | 82 commands, |
4184 | 4182 |
4185 repo._phasedefaults.append(mqphasedefaults) | 4183 repo._phasedefaults.append(mqphasedefaults) |
4186 | 4184 |
4187 | 4185 |
4188 def mqimport(orig, ui, repo, *args, **kwargs): | 4186 def mqimport(orig, ui, repo, *args, **kwargs): |
4189 if util.safehasattr(repo, b'abortifwdirpatched') and not kwargs.get( | 4187 if hasattr(repo, 'abortifwdirpatched') and not kwargs.get( |
4190 'no_commit', False | 4188 'no_commit', False |
4191 ): | 4189 ): |
4192 repo.abortifwdirpatched( | 4190 repo.abortifwdirpatched( |
4193 _(b'cannot import over an applied patch'), kwargs.get('force') | 4191 _(b'cannot import over an applied patch'), kwargs.get('force') |
4194 ) | 4192 ) |