equal
deleted
inserted
replaced
1 $ cat > bundle2.py << EOF |
1 $ cat > bundle2.py << EOF |
2 > """A small extension to test bundle2 pushback parts. |
2 > """A small extension to test bundle2 pushback parts. |
3 > Current bundle2 implementation doesn't provide a way to generate those |
3 > Current bundle2 implementation doesn't provide a way to generate those |
4 > parts, so they must be created by extensions. |
4 > parts, so they must be created by extensions. |
5 > """ |
5 > """ |
6 > from __future__ import absolute_import |
|
7 > from mercurial import bundle2, exchange, pushkey, util |
6 > from mercurial import bundle2, exchange, pushkey, util |
8 > def _newhandlechangegroup(op, inpart): |
7 > def _newhandlechangegroup(op, inpart): |
9 > """This function wraps the changegroup part handler for getbundle. |
8 > """This function wraps the changegroup part handler for getbundle. |
10 > It issues an additional pushkey part to send a new |
9 > It issues an additional pushkey part to send a new |
11 > bookmark back to the client""" |
10 > bookmark back to the client""" |