tests/test-glog
changeset 8397 613ac2856535
parent 8268 6486fb03be7c
child 9176 d12e9b40e444
equal deleted inserted replaced
8396:d7a77ad9bcce 8397:613ac2856535
    80     msg=$2
    80     msg=$2
    81     shift 2
    81     shift 2
    82     if [ "$#" -gt 0 ]; then
    82     if [ "$#" -gt 0 ]; then
    83         hg debugsetparents "$@"
    83         hg debugsetparents "$@"
    84     fi
    84     fi
    85     echo $rev > $rev
    85     echo $rev > a
    86     hg add $rev
    86     hg commit -Aqd "$rev 0" -m "($rev) $msg"
    87     hg rawcommit -q -d "$rev 0" -m "($rev) $msg" $rev
       
    88 }
    87 }
    89 
    88 
    90 echo "[extensions]" >> $HGRCPATH
    89 echo "[extensions]" >> $HGRCPATH
    91 echo "graphlog=" >> $HGRCPATH
    90 echo "graphlog=" >> $HGRCPATH
    92 
    91 
   140 
   139 
   141 echo % glog
   140 echo % glog
   142 hg glog
   141 hg glog
   143 
   142 
   144 echo % file glog
   143 echo % file glog
   145 hg glog 5
   144 hg glog a
   146 
   145 
   147 echo % unused arguments
   146 echo % unused arguments
   148 hg glog -q foo bar || echo failed
   147 hg glog -q foo bar || echo failed
   149 
   148 
   150 echo % from outer space
   149 echo % from outer space
   151 cd ..
   150 cd ..
   152 hg glog -l1 repo
   151 hg glog -l1 repo
   153 hg glog -l1 repo/0
   152 hg glog -l1 repo/a
   154 hg glog -l1 repo/missing
   153 hg glog -l1 repo/missing
   155 
   154 
   156 echo % file log with revs != cset revs
   155 echo % file log with revs != cset revs
   157 hg init flog
   156 hg init flog
   158 cd flog
   157 cd flog