From patchwork Mon Jul 1 16:30:41 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [V2,2/2] bash_completion: recognize the --output option From: "Ahmed S. Darwish" X-Patchwork-Id: 1777 Message-Id: <20130701163041.GB10595@darwish> To: Mercurial-Devel Cc: Guillermo =?iso-8859-1?Q?P=E9rez?= , Patrick Mezard Date: Mon, 1 Jul 2013 18:30:41 +0200 # HG changeset patch # User Ahmed S. Darwish # Date 1372695308 -7200 # Node ID 97c5442d88a5df004d3c48a16461e549db57b3c7 # Parent c1aa2fdfc7b7a8fff58b192259dcdf4f74f7ada7 bash_completion: recognize the --output option `--output ' now only lists the repository untracked files. diff -r c1aa2fdfc7b7 -r 97c5442d88a5 contrib/bash_completion --- a/contrib/bash_completion Mon Jul 01 18:13:30 2013 +0200 +++ b/contrib/bash_completion Mon Jul 01 18:15:08 2013 +0200 @@ -255,7 +255,11 @@ _hg_debugpathcomplete -fa ;; diff) - _hg_status "mar" + if [[ "$prev" = @(-o|--output) ]]; then + _hg_status "u" + else + _hg_status "mar" + fi ;; revert) _hg_debugpathcomplete