Skip to content

Commit

Permalink
Merge branch 'master'
Browse files Browse the repository at this point in the history
  • Loading branch information
glandium committed Jun 6, 2020
2 parents 7446d02 + 88c227d commit 8d58ee3
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CI/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


MERCURIAL_VERSION = '5.3'
GIT_VERSION = '2.26.2'
GIT_VERSION = '2.27.0'

ALL_MERCURIAL_VERSIONS = (
'1.9.3', '2.0.2', '2.1.2', '2.2.3', '2.3.2', '2.4.2', '2.5.4',
Expand Down
3 changes: 2 additions & 1 deletion cinnabar/hg/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,8 @@ def do_cinnabarclone(repo, manifest, store):
if not any(Git.iter(
'rev-list', '--branches', '--tags', '--remotes',
'--max-count=1', '--ancestry-path', '--stdin',
stdin=(b'^%s^@' % c for c in graft))):
stdin=(b'^%s^@' % c for c in graft),
stderr=open(os.devnull, 'wb'))):
continue

candidates.append((spec, len(graft) != 0))
Expand Down
2 changes: 1 addition & 1 deletion cinnabar/remote_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ def resolve_head(head):
heads = set(self._branchmap.heads()) & unknown_heads
getbundle(self._repo, self._store, heads,
self._branchmap.names())
except Exception:
except:
wanted_refs = {}
raise
finally:
Expand Down
2 changes: 1 addition & 1 deletion git-core
Submodule git-core updated from af6b65 to b3d7a5
2 changes: 1 addition & 1 deletion helper/GIT-VERSION.mk
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
GIT_VERSION ?= v2.26.2
GIT_VERSION ?= v2.27.0
WINDOWS_GIT_VERSION ?= $(GIT_VERSION).windows.1
8 changes: 5 additions & 3 deletions helper/cinnabar-fast-import.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ static void start_packfile();
#include "hg-bundle.h"
#include "hg-data.h"
#include "list.h"
#include "sha1-array.h"
#include "oid-array.h"
#include "strslice.h"
#include "tree-walk.h"

Expand Down Expand Up @@ -131,6 +131,8 @@ static void init()
avail_tree_table = xcalloc(avail_tree_table_sz, sizeof(struct avail_tree_content*));
marks = mem_pool_calloc(&fi_mem_pool, 1, sizeof(struct mark_set));

hashmap_init(&object_table, object_entry_hashcmp, NULL, 0);

global_argc = 1;

rc_free = mem_pool_alloc(&fi_mem_pool, cmd_save * sizeof(*rc_free));
Expand Down Expand Up @@ -266,7 +268,7 @@ static uintmax_t parse_mark_ref(const char *p, char **endptr)
e->pack_id = MAX_PACK_ID;
e->idx.offset = 1;
}
insert_mark(2, e);
insert_mark(marks, 2, e);
return 2;
}

Expand Down Expand Up @@ -462,7 +464,7 @@ static void do_set(struct string_list *args)

if (args->items[2].string[0] == ':') {
uintmax_t mark = parse_mark_ref_eol(args->items[2].string);
struct object_entry *oe = find_mark(mark);
struct object_entry *oe = find_mark(marks, mark);
oidcpy(&git_id, &oe->idx.oid);
} else if (get_oid_hex(args->items[2].string, &git_id))
die("Invalid sha1");
Expand Down
2 changes: 1 addition & 1 deletion helper/hg-connect.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define HG_CONNECT_H

#include "run-command.h"
#include "sha1-array.h"
#include "oid-array.h"

struct hg_connection_stdio {
FILE *out;
Expand Down

0 comments on commit 8d58ee3

Please sign in to comment.