tests/test-commit-amend.t
branchstable
changeset 29181 dae38633eba8
parent 28627 d7af9b4ae7dd
child 29775 978b907d9b36
equal deleted inserted replaced
29180:8c5e880c7e25 29181:dae38633eba8
  1154   newdirname/newfile.py renamed from olddirname/newfile.py:690b295714aed510803d3020da9c70fca8336def (glob)
  1154   newdirname/newfile.py renamed from olddirname/newfile.py:690b295714aed510803d3020da9c70fca8336def (glob)
  1155   $ hg debugindex newdirname/newfile.py
  1155   $ hg debugindex newdirname/newfile.py
  1156      rev    offset  length  delta linkrev nodeid       p1           p2
  1156      rev    offset  length  delta linkrev nodeid       p1           p2
  1157        0         0      88     -1       3 34a4d536c0c0 000000000000 000000000000
  1157        0         0      88     -1       3 34a4d536c0c0 000000000000 000000000000
  1158 
  1158 
       
  1159 Test if amend preserves executable bit changes
       
  1160   $ chmod +x newdirname/commonfile.py
       
  1161   $ hg ci -m chmod
       
  1162   $ hg ci --amend -m "chmod amended"
       
  1163   $ hg ci --amend -m "chmod amended second time"
       
  1164   $ hg log -p --git -r .
       
  1165   changeset:   8:b1326f52dddf
       
  1166   branch:      newdirname
       
  1167   tag:         tip
       
  1168   parent:      5:7fd235f7cb2f
       
  1169   user:        test
       
  1170   date:        Thu Jan 01 00:00:00 1970 +0000
       
  1171   summary:     chmod amended second time
       
  1172   
       
  1173   diff --git a/newdirname/commonfile.py b/newdirname/commonfile.py
       
  1174   old mode 100644
       
  1175   new mode 100755
       
  1176