mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 23:07:18 +03:00
44343769f8
Summary: We want to rename away from "mercurial". Rather than rename the "mercurial" Python package, we opted to just collapse it into the parent "edenscm" package. This is also a step towards further organizing we want to do around the new project name. To ease the transition wrt hotfixes, we now replace "edenscm.mercurial" with "mercurial" to fix imports within base64-python extensions. Reviewed By: sggutier Differential Revision: D38943169 fbshipit-source-id: 03fa18079c51e2f7fac05d65b127095da3ab7c99
42 lines
896 B
C
42 lines
896 B
C
/*
|
|
* Portions Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This software may be used and distributed according to the terms of the
|
|
* GNU General Public License version 2.
|
|
*/
|
|
|
|
/*
|
|
* Copyright Olivia Mackall <olivia@selenic.com> and others
|
|
*
|
|
* This software may be used and distributed according to the terms of
|
|
* the GNU General Public License, incorporated herein by reference.
|
|
*/
|
|
|
|
#ifndef _HG_BDIFF_H_
|
|
#define _HG_BDIFF_H_
|
|
|
|
#include "eden/scm/edenscm/compat.h"
|
|
|
|
struct bdiff_line {
|
|
int hash, n, e;
|
|
ssize_t len;
|
|
const char* l;
|
|
};
|
|
|
|
struct bdiff_hunk;
|
|
struct bdiff_hunk {
|
|
int a1, a2, b1, b2;
|
|
struct bdiff_hunk* next;
|
|
};
|
|
|
|
int bdiff_splitlines(const char* a, ssize_t len, struct bdiff_line** lr);
|
|
int bdiff_diff(
|
|
struct bdiff_line* a,
|
|
int an,
|
|
struct bdiff_line* b,
|
|
int bn,
|
|
struct bdiff_hunk* base);
|
|
void bdiff_freehunks(struct bdiff_hunk* l);
|
|
|
|
#endif
|