comparison tests/test-log.t @ 37920:ea63a2004d09

update: print warning about hidden changeset after update When an attempt to update to a hidden changeset fails because the working copy is dirty, you may get a message like this: updating to a hidden changeset 343f6de32686 (hidden revision '343f6de32686' was rewritten as: 4ab941244072) abort: conflicting changes (commit or update --clean to discard changes) It's easy to miss the real error here. This patch moves the warning about the hidden changeset to after the update has happened. It changes the verb tense accordingly (and drops the "a" that I think it sounds better without). Of course, this means that the commit isn't actually hidden anymore when the message is printed. I think that's fine. Differential Revision: https://phab.mercurial-scm.org/D3479
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 07 May 2018 19:43:43 -0700
parents 141017c7f7a9
children ba93db1745ba
comparison
equal deleted inserted replaced
37919:7a97a622244d 37920:ea63a2004d09
1941 [255] 1941 [255]
1942 1942
1943 test that parent prevent a changeset to be hidden 1943 test that parent prevent a changeset to be hidden
1944 1944
1945 $ hg up 1 -q --hidden 1945 $ hg up 1 -q --hidden
1946 updating to a hidden changeset a765632148dc 1946 updated to hidden changeset a765632148dc
1947 (hidden revision 'a765632148dc' is pruned) 1947 (hidden revision 'a765632148dc' is pruned)
1948 $ hg log --template='{rev}:{node}\n' 1948 $ hg log --template='{rev}:{node}\n'
1949 1:a765632148dc55d38c35c4f247c618701886cb2f 1949 1:a765632148dc55d38c35c4f247c618701886cb2f
1950 0:9f758d63dcde62d547ebfb08e1e7ee96535f2b05 1950 0:9f758d63dcde62d547ebfb08e1e7ee96535f2b05
1951 1951