Patchwork [in,crew] bash_completion: nuke a duplicated function

login
register
mail settings
Submitter Bryan O'Sullivan
Date March 21, 2013, 4:14 p.m.
Message ID <fff3a811451082b9f479.1363882476@australite.local>
Download mbox | patch
Permalink /patch/1147/
State Accepted
Commit fff3a811451082b9f47909c38e7c6d3b15177b34
Headers show

Comments

Bryan O'Sullivan - March 21, 2013, 4:14 p.m.
# HG changeset patch
# User Bryan O'Sullivan <bryano@fb.com>
# Date 1363882396 25200
# Node ID fff3a811451082b9f47909c38e7c6d3b15177b34
# Parent  05d544d17fa29c28d47483ae829b1a1c93ac4bd4
bash_completion: nuke a duplicated function

Patch

diff --git a/contrib/bash_completion b/contrib/bash_completion
--- a/contrib/bash_completion
+++ b/contrib/bash_completion
@@ -294,13 +294,6 @@  complete -o bashdefault -o default -F _h
 # Completion for commands provided by extensions
 
 # bookmarks
-_hg_bookmarks()
-{
-    local bookmarks="$(_hg_cmd bookmarks --quiet )"
-    local IFS=$'\n'
-    COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$bookmarks' -- "$cur"))
-}
-
 _hg_cmd_bookmarks()
 {
     if [[ "$prev" = @(-d|--delete|-m|--rename) ]]; then