Page MenuHomeFreeBSD

D36583.id121632.diff
No OneTemporary

D36583.id121632.diff

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: '
+}
+
diff2phid()
{
local diff
@@ -152,7 +163,7 @@
fi
echo '{"names":["'"$diff"'"]}' |
- arc call-conduit -- phid.lookup |
+ arc_call_conduit -- phid.lookup |
jq -r "select(.response != []) | .response.${diff}.phid"
}
@@ -167,7 +178,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")
@@ -272,7 +283,7 @@
"value": ["'"${parentphid}"'"]
}
]}' |
- arc call-conduit -- differential.revision.edit >&3
+ arc_call_conduit -- differential.revision.edit >&3
fi
rm -f "$msg"
return 0
@@ -290,13 +301,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

Mime Type
text/plain
Expires
Thu, Oct 23, 12:21 PM (21 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24091291
Default Alt Text
D36583.id121632.diff (2 KB)

Event Timeline