tests/test-phabricator.t
changeset 45426 1a5d3e555c70
parent 45246 b1f2659c1c34
child 45772 294aab57a5f3
equal deleted inserted replaced
45425:f7e293e0475f 45426:1a5d3e555c70
   968   four: extend the fold range
   968   four: extend the fold range
   969   
   969   
   970   Differential Revision: https://phab.mercurial-scm.org/D8388
   970   Differential Revision: https://phab.mercurial-scm.org/D8388
   971   
   971   
   972   
   972   
   973 
   973 Hashes in the messages are updated automatically as phabsend amends and restacks
       
   974 them.  This covers both commits that are posted and descendants that are
       
   975 restacked.
       
   976 
       
   977   $ cat >> .hg/hgrc << EOF
       
   978   > [experimental]
       
   979   > evolution = all
       
   980   > EOF
       
   981 
       
   982   $ echo content > file.txt
       
   983   $ hg ci -m 'base review (generate test for phabsend)'
       
   984   $ echo 'more content' > file.txt
       
   985   $ hg ci -m '133c1c6c6449 is my parent (generate test for phabsend)'
       
   986   $ echo 'even more content' > file.txt
       
   987   $ hg ci -m 'c2874a398f7e is my parent (generate test for phabsend)'
       
   988 
       
   989   $ hg phabsend -r 17::18  --test-vcr "$VCR/phabsend-hash-fixes.json"
       
   990   D8945 - created - 133c1c6c6449: base review (generate test for phabsend)
       
   991   D8946 - created - c2874a398f7e: 133c1c6c6449 is my parent (generate test for phabsend)
       
   992   new commits: ['f444f060f4d6']
       
   993   new commits: ['9c9290f945b1']
       
   994   restabilizing 1528c12fa2e4 as b28b20212bd4
       
   995 
       
   996   $ hg log -l 3 -Tcompact
       
   997   22[tip]   b28b20212bd4   1970-01-01 00:00 +0000   test
       
   998     9c9290f945b1 is my parent (generate test for phabsend)
       
   999   
       
  1000   21   9c9290f945b1   1970-01-01 00:00 +0000   test
       
  1001     f444f060f4d6 is my parent (generate test for phabsend)
       
  1002   
       
  1003   20:16   f444f060f4d6   1970-01-01 00:00 +0000   test
       
  1004     base review (generate test for phabsend)
       
  1005   
   974   $ cd ..
  1006   $ cd ..