[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-commits-diffs] net.venge.monotone: d60a3e33d91446a0a12d35b96c
From: |
code |
Subject: |
[Monotone-commits-diffs] net.venge.monotone: d60a3e33d91446a0a12d35b96ca6625faa959450 |
Date: |
Fri, 4 Feb 2011 19:10:56 GMT |
revision: d60a3e33d91446a0a12d35b96ca6625faa959450
date: 2011-02-04T19:10:35
author: Richard Levitte <address@hidden>
branch: net.venge.monotone
changelog:
* contrib/monotone.bash_completion2 (_monotone_command_words): Make
sure we have 'mtn' as a command internally even if it was invoked as
/usr/bin/mtn, ../build/mtn or something else.
manifest:
format_version "1"
new_manifest [ca742dd77e4df3f43d2bd8bf86bd9fcd2a90f73f]
old_revision [9f5e8c4a8805b667eccd9e5e7158e2eb7be7140d]
patch "contrib/monotone.bash_completion2"
from [de3207ffd05f4ced688c43a2091e7f595793e1a3]
to [cb362c2f5061d5846b81d4837c0a7342959b303d]
============================================================
--- contrib/monotone.bash_completion2 de3207ffd05f4ced688c43a2091e7f595793e1a3
+++ contrib/monotone.bash_completion2 cb362c2f5061d5846b81d4837c0a7342959b303d
@@ -539,6 +539,13 @@ _monotone_command_words() {
for i in address@hidden; do
pw=$w
w=${words[$i]}
+
+ # We know that the first word is the command itself. Because it might
+ # have a directory spec in it, just set it to the command we know.
+ if [ $cmdi -eq 0 ]; then
+ w=mtn
+ fi
+
if [[ "$w" == --*=* || "$w" == -* ]]; then
:
elif [[ "$pw" != -* \
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Monotone-commits-diffs] net.venge.monotone: d60a3e33d91446a0a12d35b96ca6625faa959450,
code <=