Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 50399:c5e93c915ab6
branching: merge stable into default
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Mon, 20 Mar 2023 23:16:14 +0100 |
parents | cc712ce3361f 9fc0d244a753 |
children | 771294224bf6 |
comparison
equal
deleted
inserted
replaced
50398:dd42156b6441 | 50399:c5e93c915ab6 |
---|---|
2505 | 2505 |
2506 Returns 0 on success, 1 if errors are encountered. | 2506 Returns 0 on success, 1 if errors are encountered. |
2507 """ | 2507 """ |
2508 opts = pycompat.byteskwargs(opts) | 2508 opts = pycompat.byteskwargs(opts) |
2509 | 2509 |
2510 context = repo.dirstate.changing_files | 2510 context = lambda repo: repo.dirstate.changing_files(repo) |
2511 rev = opts.get(b'at_rev') | 2511 rev = opts.get(b'at_rev') |
2512 ctx = None | 2512 ctx = None |
2513 if rev: | 2513 if rev: |
2514 ctx = logcmdutil.revsingle(repo, rev) | 2514 ctx = logcmdutil.revsingle(repo, rev) |
2515 if ctx.rev() is not None: | 2515 if ctx.rev() is not None: |
6017 This command takes effect with the next commit by default. | 6017 This command takes effect with the next commit by default. |
6018 | 6018 |
6019 Returns 0 on success, 1 if errors are encountered. | 6019 Returns 0 on success, 1 if errors are encountered. |
6020 """ | 6020 """ |
6021 opts = pycompat.byteskwargs(opts) | 6021 opts = pycompat.byteskwargs(opts) |
6022 context = repo.dirstate.changing_files | 6022 context = lambda repo: repo.dirstate.changing_files(repo) |
6023 rev = opts.get(b'at_rev') | 6023 rev = opts.get(b'at_rev') |
6024 ctx = None | 6024 ctx = None |
6025 if rev: | 6025 if rev: |
6026 ctx = logcmdutil.revsingle(repo, rev) | 6026 ctx = logcmdutil.revsingle(repo, rev) |
6027 if ctx.rev() is not None: | 6027 if ctx.rev() is not None: |