隨筆-69  評(píng)論-0  文章-5  trackbacks-0
          pre-commit.tmpl,然后更名pre-commit并加上執(zhí)行權(quán)限:
          #!/bin/sh

          REPOS
          ="$1"
          TXN
          ="$2"

          RES
          ="OK"
          # Make sure that the log message contains some text.
          SVNLOOK=/app/subversion/bin/svnlook
          $SVNLOOK log -"$TXN" "$REPOS" | egrep "[^[:space:]]+" >/dev/null || unset RES
          if [ "$RES" != "OK" ]
          then
              echo 
          "You must input some comments for you commit" >&2
              
          exit 1
          fi

          # All checks passed, so allow the commit.
          exit 0


          posted on 2008-05-28 14:18 liunix 閱讀(1496) 評(píng)論(0)  編輯  收藏

          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 乐至县| 谢通门县| 长宁区| 洛川县| 修武县| 太仆寺旗| 巫山县| 且末县| 涞源县| 溆浦县| 磐石市| 河间市| 虹口区| 东乌珠穆沁旗| 黄陵县| 宣威市| 华容县| 启东市| 黑河市| 彩票| 聂拉木县| 庆元县| 五家渠市| 竹溪县| 黄山市| 延长县| 吉安市| 八宿县| 台州市| 盈江县| 济阳县| 广东省| 清水县| 沁源县| 博罗县| 南宁市| 大渡口区| 吉木萨尔县| 灵宝市| 平舆县| 莲花县|