summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2013-08-16 16:56:46 +0200
committerJan Pokorný <jpokorny@redhat.com>2013-08-16 16:56:46 +0200
commit021f9ae8b63b5f2f74d65abafbc310514c61c488 (patch)
tree9ddb5a05d18476df94e94bc1ca45d4ff9bfa642c
parent2e9cfaf017a2e48ee795abc0363c57d9e8717a0f (diff)
downloadwatch-bz-021f9ae8b63b5f2f74d65abafbc310514c61c488.tar.gz
watch-bz-021f9ae8b63b5f2f74d65abafbc310514c61c488.tar.xz
watch-bz-021f9ae8b63b5f2f74d65abafbc310514c61c488.zip
Do not show assignees if implied by --mine switch
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rwxr-xr-xwatch-bz6
1 files changed, 4 insertions, 2 deletions
diff --git a/watch-bz b/watch-bz
index 579314e..b38e36f 100755
--- a/watch-bz
+++ b/watch-bz
@@ -104,7 +104,9 @@ test -n "${CMDLINE_COMPONENT}" && COMPONENT=${CMDLINE_COMPONENT#,}
test -n "${CMDLINE_STATUS}" && STATUS=${CMDLINE_STATUS#,}
test -n "${CMDLINE_QUERY_REST}" && QUERY_REST=${CMDLINE_QUERY_REST}
+OUTPUT_FMT_ASSIGNED_TO="\ \{%{assigned_to}\}"
if test -z "${MINE}" || test "${MINE}" -eq 0; then :; else
+ OUTPUT_FMT_ASSIGNED_TO=
if test -n "${BZUSER}"; then
QUERY_REST="-a \"${BZUSER}\" ${QUERY_REST}"
else
@@ -115,9 +117,9 @@ fi
# omit component if only single one queried
echo $COMPONENT | grep -q ','
if [ $? -eq 0 ]; then
- OUTPUT_FMT="%{component}$SEP%{bug_id}$SEP%{product}$SEP%{priority}$SEP%{status}$SEP%{flags}$SEP%{short_desc}\ \{%{assigned_to}\}"
+ OUTPUT_FMT="%{component}$SEP%{bug_id}$SEP%{product}$SEP%{priority}$SEP%{status}$SEP%{flags}$SEP%{short_desc}${OUTPUT_FMT_ASSIGNED_TO}"
else
- OUTPUT_FMT="%{bug_id}$SEP%{product}$SEP%{priority}$SEP%{status}$SEP%{flags}$SEP%{short_desc}\ \{%{assigned_to}\}"
+ OUTPUT_FMT="%{bug_id}$SEP%{product}$SEP%{priority}$SEP%{status}$SEP%{flags}$SEP%{short_desc}${OUTPUT_FMT_ASSIGNED_TO}"
fi