Show More
@@ -30,7 +30,6 b' from mercurial import (' | |||
|
30 | 30 | commands, |
|
31 | 31 | copies, |
|
32 | 32 | destutil, |
|
33 | dirstateguard, | |
|
34 | 33 | error, |
|
35 | 34 | extensions, |
|
36 | 35 | logcmdutil, |
@@ -1494,10 +1493,10 b' def commitmemorynode(repo, wctx, editor,' | |||
|
1494 | 1493 | def commitnode(repo, editor, extra, user, date, commitmsg): |
|
1495 | 1494 | """Commit the wd changes with parents p1 and p2. |
|
1496 | 1495 | Return node of committed revision.""" |
|
1497 |
|
|
|
1496 | tr = util.nullcontextmanager | |
|
1498 | 1497 | if not repo.ui.configbool(b'rebase', b'singletransaction'): |
|
1499 | dsguard = dirstateguard.dirstateguard(repo, b'rebase') | |
|
1500 |
with |
|
|
1498 | tr = lambda: repo.transaction(b'rebase') | |
|
1499 | with tr(): | |
|
1501 | 1500 | # Commit might fail if unresolved files exist |
|
1502 | 1501 | newnode = repo.commit( |
|
1503 | 1502 | text=commitmsg, user=user, date=date, extra=extra, editor=editor |
General Comments 0
You need to be logged in to leave comments.
Login now