76 |
76 |
77 # Data for the pull request |
77 # Data for the pull request |
78 head=$(echo $heads |cut -d ' ' -f $head_index) |
78 head=$(echo $heads |cut -d ' ' -f $head_index) |
79 title=$(hg log -r ${head} -r tip --template '{desc}') |
79 title=$(hg log -r ${head} -r tip --template '{desc}') |
80 source_repo=$(hg paths default |rev |cut -d '/' -f 1,2 |rev) |
80 source_repo=$(hg paths default |rev |cut -d '/' -f 1,2 |rev) |
81 bturl=$(grep bturl $selfpath/settings.cfg |cut -d ' ' -f 2) |
|
82 btuser=$(grep btuser $selfpath/settings.cfg |cut -d ' ' -f 2) |
|
83 btpass=$(grep btpass $selfpath/settings.cfg |cut -d ' ' -f 2) |
|
84 ticket=$(hg log -r $head --template '{bookmarks}' |cut -f 2 -d '|') |
|
85 |
81 |
86 while [ "$(echo $title |wc -c)" -gt "255" ] |
82 while [ "$(echo $title |wc -c)" -gt "255" ] |
87 do |
83 do |
88 echo "Pull request title is too long, please input a new title" |
84 echo "Pull request title is too long, please input a new title" |
89 echo -n "new title: " |
85 echo -n "new title: " |