tests/test-graft.t
changeset 24643 a8e6897dffbe
parent 23929 a43fdf33a6be
child 24644 51930a7180bd
equal deleted inserted replaced
24642:54e5c239c2d9 24643:a8e6897dffbe
   728   $ hg tag -f something
   728   $ hg tag -f something
   729   $ hg graft -qr 27
   729   $ hg graft -qr 27
   730   $ hg graft -f 27
   730   $ hg graft -f 27
   731   grafting 27:3d35c4c79e5a "28"
   731   grafting 27:3d35c4c79e5a "28"
   732   note: graft of 27:3d35c4c79e5a created no changes to commit
   732   note: graft of 27:3d35c4c79e5a created no changes to commit
       
   733 
       
   734   $ cd ..
       
   735 
       
   736 Graft to duplicate a commit
       
   737 
       
   738   $ hg init graftsibling
       
   739   $ cd graftsibling
       
   740   $ touch a
       
   741   $ hg commit -qAm a
       
   742   $ touch b
       
   743   $ hg commit -qAm b
       
   744   $ hg log -G -T '{rev}\n'
       
   745   @  1
       
   746   |
       
   747   o  0
       
   748   
       
   749   $ hg up -q 0
       
   750   $ hg graft -r 1
       
   751   grafting 1:0e067c57feba "b" (tip)
       
   752   $ hg log -G -T '{rev}\n'
       
   753   @  2
       
   754   |
       
   755   | o  1
       
   756   |/
       
   757   o  0
       
   758