Mercurial > hg
comparison tests/test-treediscovery-legacy.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 |
---|---|
285 $ hg push $remote | 285 $ hg push $remote |
286 pushing to http://localhost:$HGPORT/ | 286 pushing to http://localhost:$HGPORT/ |
287 searching for changes | 287 searching for changes |
288 abort: push creates new remote branches: both, name1 | 288 abort: push creates new remote branches: both, name1 |
289 (use 'hg push --new-branch' to create new remote branches) | 289 (use 'hg push --new-branch' to create new remote branches) |
290 [255] | 290 [20] |
291 $ hg push $remote --new-branch | 291 $ hg push $remote --new-branch |
292 pushing to http://localhost:$HGPORT/ | 292 pushing to http://localhost:$HGPORT/ |
293 searching for changes | 293 searching for changes |
294 remote: adding changesets | 294 remote: adding changesets |
295 remote: adding manifests | 295 remote: adding manifests |