Patchwork bash_completion: add -p|--patch|--stat support for shelve

login
register
mail settings
Submitter Anton Shestakov
Date Nov. 10, 2015, 12:01 p.m.
Message ID <328437338dab87473f35.1447156916@neuro>
Download mbox | patch
Permalink /patch/11346/
State Accepted
Headers show

Comments

Anton Shestakov - Nov. 10, 2015, 12:01 p.m.
# HG changeset patch
# User Anton Shestakov <av6@dwimlabs.net>
# Date 1447156350 -28800
#      Tue Nov 10 19:52:30 2015 +0800
# Node ID 328437338dab87473f35a0ec64f11a73d2dd2b22
# Parent  8b2fbe3f59b1b969878691cb472369ad0067f165
bash_completion: add -p|--patch|--stat support for shelve
Sean Farley - Nov. 10, 2015, 6:32 p.m.
Anton Shestakov <av6@dwimlabs.net> writes:

> # HG changeset patch
> # User Anton Shestakov <av6@dwimlabs.net>
> # Date 1447156350 -28800
> #      Tue Nov 10 19:52:30 2015 +0800
> # Node ID 328437338dab87473f35a0ec64f11a73d2dd2b22
> # Parent  8b2fbe3f59b1b969878691cb472369ad0067f165
> bash_completion: add -p|--patch|--stat support for shelve

Looks good to me.
Yuya Nishihara - Nov. 12, 2015, 1:17 p.m.
On Tue, 10 Nov 2015 10:32:23 -0800, Sean Farley wrote:
> Anton Shestakov <av6@dwimlabs.net> writes:
> 
> > # HG changeset patch
> > # User Anton Shestakov <av6@dwimlabs.net>
> > # Date 1447156350 -28800
> > #      Tue Nov 10 19:52:30 2015 +0800
> > # Node ID 328437338dab87473f35a0ec64f11a73d2dd2b22
> > # Parent  8b2fbe3f59b1b969878691cb472369ad0067f165
> > bash_completion: add -p|--patch|--stat support for shelve
> 
> Looks good to me.

Pushed to the clowncopter, thanks!

Patch

diff --git a/contrib/bash_completion b/contrib/bash_completion
--- a/contrib/bash_completion
+++ b/contrib/bash_completion
@@ -629,7 +629,7 @@  complete -o bashdefault -o default -o no
 
 _hg_cmd_shelve()
 {
-    if [[ "$prev" = @(-d|--delete|-l|--list) ]]; then
+    if [[ "$prev" = @(-d|--delete|-l|--list|-p|--patch|--stat) ]]; then
         _hg_shelves
     else
         _hg_status "mard"