pull-request.sh

changeset 7
7dbc04a61376
parent 5
9d63b4f82112
child 9
7e8ccf76a84d
equal deleted inserted replaced
6:b7f23f86cb2c 7:7dbc04a61376
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: "

mercurial