comparison tests/test-lfs-test-server.t @ 39405:cb70501d8b71

revert: fix the inconsistency of status msgs in --interactive mode Before this patch we were priting every action msg before actually performing that action and that was resulting in inconsistencies; like in --interactive session if user decided to not revert any changes in a file foo, still there will be a msg on console saying "reverting foo". To fix this, I have made some changes to print status msg just before the action it is going to perform, no matter if --interactive or not. Changes made in test-revert-interactive.t reflect the changed behavior. There are also some changes in test-revert.t because of change in the order of messages. Differential Revision: https://phab.mercurial-scm.org/D4380
author Sushil khanchi <sushilkhanchi97@gmail.com>
date Fri, 31 Aug 2018 23:28:09 +0530
parents 538e850ae737
children 5abc47d4ca6b
comparison
equal deleted inserted replaced
39404:90afd61ef8a2 39405:cb70501d8b71
692 $ rm -rf .hg/store/lfs 692 $ rm -rf .hg/store/lfs
693 $ rm -rf `hg config lfs.usercache` 693 $ rm -rf `hg config lfs.usercache`
694 $ rm * 694 $ rm *
695 $ hg revert --all -r 1 --debug 695 $ hg revert --all -r 1 --debug
696 http auth: user foo, password *** 696 http auth: user foo, password ***
697 adding a
698 reverting b
699 reverting c
700 reverting d
701 http auth: user foo, password *** 697 http auth: user foo, password ***
702 Status: 200 698 Status: 200
703 Content-Length: 905 (git-server !) 699 Content-Length: 905 (git-server !)
704 Content-Length: 988 (hg-server !) 700 Content-Length: 988 (hg-server !)
705 Content-Type: application/vnd.git-lfs+json 701 Content-Type: application/vnd.git-lfs+json
776 Date: $HTTP_DATE$ 772 Date: $HTTP_DATE$
777 Server: testing stub value (hg-server !) 773 Server: testing stub value (hg-server !)
778 lfs: adding d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 to the usercache 774 lfs: adding d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 to the usercache
779 lfs: processed: d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 775 lfs: processed: d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998
780 lfs: downloaded 3 files (51 bytes) 776 lfs: downloaded 3 files (51 bytes)
777 reverting b
781 lfs: found 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b in the local lfs store 778 lfs: found 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b in the local lfs store
779 reverting c
782 lfs: found d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 in the local lfs store 780 lfs: found d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 in the local lfs store
781 reverting d
783 lfs: found 37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 in the local lfs store 782 lfs: found 37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 in the local lfs store
783 adding a
784 lfs: found 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b in the local lfs store 784 lfs: found 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b in the local lfs store
785 785
786 Check error message when the remote missed a blob: 786 Check error message when the remote missed a blob:
787 787
788 $ echo FFFFF > b 788 $ echo FFFFF > b