-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
helper: Support bundle2 responses to bundle2 pushes
Even when the client doesn't indicate supporting bundle2 replies, mercurial servers send errors through bundle2 replies. So we're pretty much forced to support bundle2 replies, and now send a replycaps part unconditionally, so that we always get bundle2 replies to bundle2 pushes through native wire protocol.
- Loading branch information
Showing
5 changed files
with
74 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
#ifndef BUNDLE_H | ||
#define BUNDLE_H | ||
|
||
#include "strbuf.h" | ||
#include <stdio.h> | ||
|
||
extern void copy_bundle(FILE *in, FILE *out); | ||
extern void copy_bundle_to_strbuf(FILE *in, struct strbuf *out); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters