mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 07:49:11 +03:00
bash_completion: add global support for -B|--bookmark
Previously, only -r|--rev was parsed globally which meant 'hg push -B <tab>' would try to complete a path instead of a bookmark.
This commit is contained in:
parent
2c4a9fc383
commit
fa42f28d41
@ -248,6 +248,13 @@ _hg_command_specific()
|
||||
fi
|
||||
return 1
|
||||
;;
|
||||
-B|--bookmark)
|
||||
if [[ $canonical = 1 || status != "$cmd"* ]]; then
|
||||
_hg_bookmarks
|
||||
return 0
|
||||
fi
|
||||
return 1
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user