Mercurial > public > mercurial-scm > hg-stable
comparison hgext/githelp.py @ 35716:05b8adf38c55
githelp: recommend `hg import` for `git am`
This referenced a third party extension. It doesn't feel appropriate
to do that from a core extension. Reference `hg import` instead.
Differential Revision: https://phab.mercurial-scm.org/D1724
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 22 Dec 2017 18:38:29 -0700 |
parents | 8dbd000f7de9 |
children | 5edfead8cc95 |
comparison
equal
deleted
inserted
replaced
35715:8dbd000f7de9 | 35716:05b8adf38c55 |
---|---|
172 | 172 |
173 def am(ui, repo, *args, **kwargs): | 173 def am(ui, repo, *args, **kwargs): |
174 cmdoptions=[ | 174 cmdoptions=[ |
175 ] | 175 ] |
176 args, opts = parseoptions(ui, cmdoptions, args) | 176 args, opts = parseoptions(ui, cmdoptions, args) |
177 cmd = Command('mimport -m') | 177 cmd = Command('import') |
178 ui.status(str(cmd), "\n\n") | 178 ui.status(str(cmd), "\n") |
179 ui.status(_("note: requires the MboxExtension and the MqExtension.\n")) | |
180 | 179 |
181 def apply(ui, repo, *args, **kwargs): | 180 def apply(ui, repo, *args, **kwargs): |
182 cmdoptions = [ | 181 cmdoptions = [ |
183 ('p', 'p', int, ''), | 182 ('p', 'p', int, ''), |
184 ] | 183 ] |