Mercurial > hg
comparison tests/test-bundle2.t @ 21617:0cfda08afd24
bundle2: rename UnknownPartError to BundleValueError
We are going to raise exceptions for a wider range of cases: unsupported
mandatory stream and part parameters. We rename the exception with a wider
name.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Wed, 28 May 2014 14:22:24 -0700 |
parents | f9dabfceb259 |
children | 7568f5c1c801 |
comparison
equal
deleted
inserted
replaced
21616:0a8e7f81e8ae | 21617:0cfda08afd24 |
---|---|
133 > tr = repo.transaction('processbundle') | 133 > tr = repo.transaction('processbundle') |
134 > try: | 134 > try: |
135 > unbundler = bundle2.unbundle20(ui, sys.stdin) | 135 > unbundler = bundle2.unbundle20(ui, sys.stdin) |
136 > op = bundle2.processbundle(repo, unbundler, lambda: tr) | 136 > op = bundle2.processbundle(repo, unbundler, lambda: tr) |
137 > tr.close() | 137 > tr.close() |
138 > except KeyError, exc: | 138 > except bundle2.BundleValueError, exc: |
139 > raise util.Abort('missing support for %s' % exc) | 139 > raise util.Abort('missing support for %s' % exc) |
140 > except error.PushRaced, exc: | 140 > except error.PushRaced, exc: |
141 > raise util.Abort('push race: %s' % exc) | 141 > raise util.Abort('push race: %s' % exc) |
142 > finally: | 142 > finally: |
143 > if tr is not None: | 143 > if tr is not None: |
535 Patali Dirapata, Cromda Cromda Ripalo, Pata Pata, Ko Ko Ko | 535 Patali Dirapata, Cromda Cromda Ripalo, Pata Pata, Ko Ko Ko |
536 Bokoro Dipoulito, Rondi Rondi Pepino, Pata Pata, Ko Ko Ko | 536 Bokoro Dipoulito, Rondi Rondi Pepino, Pata Pata, Ko Ko Ko |
537 Emana Karassoli, Loucra Loucra Ponponto, Pata Pata, Ko Ko Ko. | 537 Emana Karassoli, Loucra Loucra Ponponto, Pata Pata, Ko Ko Ko. |
538 debugreply: no reply | 538 debugreply: no reply |
539 0 unread bytes | 539 0 unread bytes |
540 abort: missing support for 'test:unknown' | 540 abort: missing support for test:unknown |
541 [255] | 541 [255] |
542 | 542 |
543 unbundle with a reply | 543 unbundle with a reply |
544 | 544 |
545 $ hg bundle2 --parts --reply ../parts-reply.hg2 | 545 $ hg bundle2 --parts --reply ../parts-reply.hg2 |
1002 > EOF | 1002 > EOF |
1003 | 1003 |
1004 $ hg -R main push other -r e7ec4e813ba6 | 1004 $ hg -R main push other -r e7ec4e813ba6 |
1005 pushing to other | 1005 pushing to other |
1006 searching for changes | 1006 searching for changes |
1007 abort: missing support for 'test:unknown' | 1007 abort: missing support for test:unknown |
1008 [255] | 1008 [255] |
1009 | 1009 |
1010 $ hg -R main push ssh://user@dummy/other -r e7ec4e813ba6 | 1010 $ hg -R main push ssh://user@dummy/other -r e7ec4e813ba6 |
1011 pushing to ssh://user@dummy/other | 1011 pushing to ssh://user@dummy/other |
1012 searching for changes | 1012 searching for changes |
1013 abort: missing support for "'test:unknown'" | 1013 abort: missing support for test:unknown |
1014 [255] | 1014 [255] |
1015 | 1015 |
1016 $ hg -R main push http://localhost:$HGPORT2/ -r e7ec4e813ba6 | 1016 $ hg -R main push http://localhost:$HGPORT2/ -r e7ec4e813ba6 |
1017 pushing to http://localhost:$HGPORT2/ | 1017 pushing to http://localhost:$HGPORT2/ |
1018 searching for changes | 1018 searching for changes |
1019 abort: missing support for "'test:unknown'" | 1019 abort: missing support for test:unknown |
1020 [255] | 1020 [255] |
1021 | 1021 |
1022 Doing the actual push: race | 1022 Doing the actual push: race |
1023 | 1023 |
1024 $ cat << EOF >> $HGRCPATH | 1024 $ cat << EOF >> $HGRCPATH |