Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106964302
D36583.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D36583.diff
View Options
diff --git a/tools/tools/git/git-arc.sh b/tools/tools/git/git-arc.sh
--- a/tools/tools/git/git-arc.sh
+++ b/tools/tools/git/git-arc.sh
@@ -142,6 +142,17 @@
exit 1
}
+#
+# Filter the output of call-conduit to remove the warnings that are generated
+# for some installations where openssl module is mysteriously installed twice so
+# a warning is generated. It's likely a local config error, but we should work
+# in the face of that.
+#
+arc_call_conduit()
+{
+ arc call-conduit "$@" | grep -v '^Warning: '
+}
+
#
# Filter the output of arc list to remove the warnings as above, as well as any
# stray escape sequences that are in the list (it interferes with the parsing)
@@ -161,7 +172,7 @@
fi
echo '{"names":["'"$diff"'"]}' |
- arc call-conduit -- phid.lookup |
+ arc_call_conduit -- phid.lookup |
jq -r "select(.response != []) | .response.${diff}.phid"
}
@@ -176,7 +187,7 @@
tmp=$(mktemp)
echo '{"names":["'"$diff"'"]}' |
- arc call-conduit -- phid.lookup > "$tmp"
+ arc_call_conduit -- phid.lookup > "$tmp"
status=$(jq -r "select(.response != []) | .response.${diff}.status" < "$tmp")
summary=$(jq -r "select(.response != []) |
.response.${diff}.fullName" < "$tmp")
@@ -280,7 +291,7 @@
"value": ["'"${parentphid}"'"]
}
]}' |
- arc call-conduit -- differential.revision.edit >&3
+ arc_call_conduit -- differential.revision.edit >&3
fi
rm -f "$msg"
return 0
@@ -298,13 +309,13 @@
"constraints": {"phids": ["'"$reviewid"'"]},
"attachments": {"reviewers": true}
}' |
- arc call-conduit -- differential.revision.search |
+ arc_call_conduit -- differential.revision.search |
jq '.response.data[0].attachments.reviewers.reviewers[] | select(.status == "accepted").reviewerPHID')
if [ -n "$userids" ]; then
echo '{
"constraints": {"phids": ['"$(echo -n "$userids" | tr '[:space:]' ',')"']}
}' |
- arc call-conduit -- user.search |
+ arc_call_conduit -- user.search |
jq -r '.response.data[].fields.username'
fi
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 9, 4:32 AM (2 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15729527
Default Alt Text
D36583.diff (2 KB)
Attached To
Mode
D36583: git-arc: Cope with extra output
Attached
Detach File
Event Timeline
Log In to Comment