mercurial/commands.py
changeset 50335 c5e93c915ab6
parent 50317 cc712ce3361f
parent 50330 9fc0d244a753
child 50402 771294224bf6
equal deleted inserted replaced
50324:dd42156b6441 50335: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: