comparison tests/test-treediscovery.t @ 46119:9261f6c1d39b

errors: raise StateError when push fails because it creates new heads I decided to raise `StateError` here because the local and remote repos are in an incompatible state. I think remote errors (exit code 100) should be when something goes wrong on the remote and there's nothing the user can do. Differential Revision: https://phab.mercurial-scm.org/D9391
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 23 Nov 2020 16:39:53 -0800
parents 122f0b59f5f0
children
comparison
equal deleted inserted replaced
46118:db5dddb38f5b 46119:9261f6c1d39b
269 $ hg push $remote 269 $ hg push $remote
270 pushing to http://localhost:$HGPORT/ 270 pushing to http://localhost:$HGPORT/
271 searching for changes 271 searching for changes
272 abort: push creates new remote branches: both, name1 272 abort: push creates new remote branches: both, name1
273 (use 'hg push --new-branch' to create new remote branches) 273 (use 'hg push --new-branch' to create new remote branches)
274 [255] 274 [20]
275 $ hg push $remote --new-branch 275 $ hg push $remote --new-branch
276 pushing to http://localhost:$HGPORT/ 276 pushing to http://localhost:$HGPORT/
277 searching for changes 277 searching for changes
278 remote: adding changesets 278 remote: adding changesets
279 remote: adding manifests 279 remote: adding manifests