[PATCH V2 2/2] bash_completion: recognize the --output option

Ahmed S. Darwish darwish.07 at gmail.com
Mon Jul 1 11:30:41 CDT 2013


# HG changeset patch
# User Ahmed S. Darwish <a.darwish at vireton.com>
# Date 1372695308 -7200
# Node ID 97c5442d88a5df004d3c48a16461e549db57b3c7
# Parent  c1aa2fdfc7b7a8fff58b192259dcdf4f74f7ada7
bash_completion: recognize the --output option

`--output <TAB>' 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


More information about the Mercurial-devel mailing list