Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148943506
D36553.1789234420.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D36553.1789234420.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
@@ -195,9 +195,9 @@
title=$1
# arc list output always includes ANSI escape sequences, strip them.
- arc list | sed 's/\x1b\[[0-9;]*m//g' | \
- awk -F': ' '{
- if (substr($0, index($0, FS) + length(FS)) == "'"$title"'") {
+ arc list | sed 's/\x1b\[[0-9;]*m//g' | grep -v 'Warning: module' \
+ awk -F': ' -v title="$title" '{
+ if (substr($0, index($0, FS) + length(FS)) == title) {
print substr($1, match($1, "D[1-9][0-9]*"))
}
}'
@@ -406,7 +406,7 @@
local chash commit commits diff openrevs title
commits=$(build_commit_list "$@")
- openrevs=$(arc list)
+ openrevs=$(arc list | sed 's/\x1b\[[0-9;]*m//g' | grep -v ^Warning:)
for commit in $commits; do
chash=$(git show -s --format='%C(auto)%h' "$commit")
@@ -422,7 +422,7 @@
# differently and keep the entire status.
title=$(git show -s --format=%s "$commit")
diff=$(echo "$openrevs" | \
- awk -F'D[1-9][0-9]*:\.\\[m ' '{if ($2 == "'"$title"'") print $0}')
+ awk -F'D[1-9][0-9]*: ' '{if ($2 == "'"$title"'") print $0}')
if [ -z "$diff" ]; then
echo "No Review : $title"
elif [ "$(echo "$diff" | wc -l)" -ne 1 ]; then
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Sep 12, 5:33 PM (8 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29575784
Default Alt Text
D36553.1789234420.diff (1 KB)
Attached To
Mode
D36553: git-arc: Just strip escape sequences form arc log
Attached
Detach File
Event Timeline
Log In to Comment