Commit Graph

3 Commits

Author SHA1 Message Date
Jun Wu
8c4a52d608 config: enable obsstore by default
Summary:
This makes tests closer to production setup and removes a bunch of "saved
backup bundle to ..." messages.

With D9236657, this should not hurt server-side performance.

Unfortunately a lot tests cannot be migrated easily, mostly because revision
numbers are used. They are left with a TODO.

Reviewed By: DurhamG

Differential Revision: D9237694

fbshipit-source-id: c993fce18f07aba09f6d70964e248af8d501575a
2018-10-26 18:54:40 -07:00
Phil Cohen
3e592b81ae filemerge: add number of textual conflicts in each file to error message
Summary:
When you get an error, let's print the number of conflicts in each file. This will give the user some sense of how much work they have to do.

The code change is entirely in `filemerge.py`, and `tests/test-merge-conflict-count.t` adds a new test.

Reviewed By: quark-zju

Differential Revision: D9815243

fbshipit-source-id: 1b73a1db293902ac7242997a7d6ae09478344068
2018-10-22 12:47:41 -07:00
Phil Cohen
9e07a2e0fc merge: properly raise a InMemoryMergeConflictsError if driver raises an exception
Summary:
Merge drivers can raise exceptions. If they do, we need to restart the rebase without IMM in case they might work without IMM.

Before, we just exited out of merge.update with a positive "unresolved" count. This change raises a proper exception so we don't hit the fallback in D8886238, and have access to the failed files. It also rewrites some logic that was murky.

I think a better approach overall might be to not have driver raise exceptions, and cancel the rebase in that case or otherwise treat that case more harshly. We'd need to change existing drivers in that case. Or we can just handle this case more explicitly by adding a new `type` to `InMemoryMergeConflictsError`.

 ---

Note that because of the nice fallback in D8886238, all this does is change the line:

```
hit merge conflicts (in 1 file); switching to on-disk merge
```

to

```
hit merge conflicts (in FILE); switching to on-disk merge
```

but it's important to have explicit flow control so we can make future changes with confidence.

 ---

Reviewed By: quark-zju

Differential Revision: D8886237

fbshipit-source-id: 4e10e960f7a8d8f37de177d0596d2f3da16be4d9
2018-07-18 13:06:15 -07:00