Show More
@@ -1430,7 +1430,7 b' def commitmemorynode(repo, p1, p2, wctx,' | |||||
1430 |
|
1430 | |||
1431 | # By convention, ``extra['branch']`` (set by extrafn) clobbers |
|
1431 | # By convention, ``extra['branch']`` (set by extrafn) clobbers | |
1432 | # ``branch`` (used when passing ``--keepbranches``). |
|
1432 | # ``branch`` (used when passing ``--keepbranches``). | |
1433 | branch = repo[p1].branch() |
|
1433 | branch = None | |
1434 | if b'branch' in extra: |
|
1434 | if b'branch' in extra: | |
1435 | branch = extra[b'branch'] |
|
1435 | branch = extra[b'branch'] | |
1436 |
|
1436 |
@@ -2445,6 +2445,9 b' class overlayworkingctx(committablectx):' | |||||
2445 | # necessary for memctx to register a deletion. |
|
2445 | # necessary for memctx to register a deletion. | |
2446 | return None |
|
2446 | return None | |
2447 |
|
2447 | |||
|
2448 | if branch is None: | |||
|
2449 | branch = self._wrappedctx.branch() | |||
|
2450 | ||||
2448 | return memctx( |
|
2451 | return memctx( | |
2449 | self._repo, |
|
2452 | self._repo, | |
2450 | parents, |
|
2453 | parents, |
General Comments 0
You need to be logged in to leave comments.
Login now