Mercurial > hg
comparison tests/test-update-dest.t @ 33980:8abbae93045a
pull: do not prompt "hg update" if update.requiredest is set
Previously, after pull, we show:
(run 'hg update' to get a working copy)
unconditionally. People might run `hg update` and get an exception if
`update.requiredest` is set, and get a bit frustrated. This patch changes
the code to not prompt `hg update` in that case.
Differential Revision: https://phab.mercurial-scm.org/D516
author | Jun Wu <quark@fb.com> |
---|---|
date | Thu, 24 Aug 2017 20:25:16 -0700 |
parents | 86246530b8d2 |
children | eb586ed5d8ce |
comparison
equal
deleted
inserted
replaced
33979:3939b30d0cb7 | 33980:8abbae93045a |
---|---|
31 $ cd ../clone | 31 $ cd ../clone |
32 $ hg pull --update | 32 $ hg pull --update |
33 abort: update destination required by configuration | 33 abort: update destination required by configuration |
34 (use hg pull followed by hg update DEST) | 34 (use hg pull followed by hg update DEST) |
35 [255] | 35 [255] |
36 | |
37 $ cd .. | |
38 | |
39 update.requiredest should silent the "hg update" text after pull | |
40 $ hg init repo1 | |
41 $ cd repo1 | |
42 $ hg pull ../repo | |
43 pulling from ../repo | |
44 requesting all changes | |
45 adding changesets | |
46 adding manifests | |
47 adding file changes | |
48 added 2 changesets with 2 changes to 1 files |