Show More
@@ -2350,7 +2350,7 b' def copy(ui, repo, *pats, **opts):' | |||||
2350 | Returns 0 on success, 1 if errors are encountered. |
|
2350 | Returns 0 on success, 1 if errors are encountered. | |
2351 | """ |
|
2351 | """ | |
2352 | opts = pycompat.byteskwargs(opts) |
|
2352 | opts = pycompat.byteskwargs(opts) | |
2353 |
with repo.wlock( |
|
2353 | with repo.wlock(): | |
2354 | return cmdutil.copy(ui, repo, pats, opts) |
|
2354 | return cmdutil.copy(ui, repo, pats, opts) | |
2355 |
|
2355 | |||
2356 |
|
2356 | |||
@@ -5807,7 +5807,7 b' def rename(ui, repo, *pats, **opts):' | |||||
5807 | Returns 0 on success, 1 if errors are encountered. |
|
5807 | Returns 0 on success, 1 if errors are encountered. | |
5808 | """ |
|
5808 | """ | |
5809 | opts = pycompat.byteskwargs(opts) |
|
5809 | opts = pycompat.byteskwargs(opts) | |
5810 |
with repo.wlock( |
|
5810 | with repo.wlock(): | |
5811 | return cmdutil.copy(ui, repo, pats, opts, rename=True) |
|
5811 | return cmdutil.copy(ui, repo, pats, opts, rename=True) | |
5812 |
|
5812 | |||
5813 |
|
5813 |
General Comments 0
You need to be logged in to leave comments.
Login now