summaryrefslogtreecommitdiff
path: root/rb-branch
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir@cohens.org.il>2010-04-24 15:35:27 +0300
committerTzafrir Cohen <tzafrir@cohens.org.il>2010-04-24 15:35:27 +0300
commitb1c9c13780b5ffa7cce40bdb25cb0ec8348d880f (patch)
treed9bab5771a820e623d1406b997424024ff6fffbc /rb-branch
parenta5bef393150fe8ac6a520cb062aea612704f1917 (diff)
proper name and "email"
Use the user's Real Name for the name, and $user@$reviewboard_server as "email".
Diffstat (limited to 'rb-branch')
-rwxr-xr-xrb-branch3
1 files changed, 2 insertions, 1 deletions
diff --git a/rb-branch b/rb-branch
index 804b815..5df323c 100755
--- a/rb-branch
+++ b/rb-branch
@@ -18,7 +18,8 @@ if [ ! -x "$rb_patch" ]; then
fi
$rb_patch "$@" >"$tmp_patch_file"
-branch=`grep '^Svn-Branch:' $tmp_patch_file | sed -e 's|.*/||'`
+# For the branch name: leave only the final path component
+branch=`awk '/^Svn-Branch:/ {print $2}' $tmp_patch_file | sed -e 's|.*/||'`
svn_branch="${svn_branch_prefix}svn_$branch"
review_num=`awk '/^Review:/ {print $2}' $tmp_patch_file`
diff_num=`awk '/^Diff:/ {print $2}' $tmp_patch_file`