tools/rgit2hg.sh
changeset 11517 b3ee79e8e3b9
parent 11514 5d804405964d
equal deleted inserted replaced
11516:6873bd4d120c 11517:b3ee79e8e3b9
    43     echo
    43     echo
    44     echo 'Checking mercurial log for matches ...'
    44     echo 'Checking mercurial log for matches ...'
    45     echo
    45     echo
    46     result=$(hg log -R "$HW_HG" -u "$author" -d "$date" -v -l1)
    46     result=$(hg log -R "$HW_HG" -u "$author" -d "$date" -v -l1)
    47     if [ -z "$result" ]; then
    47     if [ -z "$result" ]; then
       
    48         echo 'No match with this author'\''s name. It might differ, so let'\''s try using date only ...'
       
    49         echo
       
    50         result=$(hg log -R "$HW_HG" -d "$date" -v)
       
    51     fi
       
    52     if [ -z "$result" ]; then
    48         echo 'No match :('
    53         echo 'No match :('
    49         shift
    54         shift
    50         continue
    55         continue
    51     fi
    56     fi
    52     rev=$(echo "$result" | sed 's/^.*://;q')
    57     rev=$(echo "$result" | sed 's/^.*://;q')