Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/debugcommands.py @ 48130:5105a9975407
errors: raise InputError from revsingle() iff revset provided by the user
Same reasoning as for `revrange()` in an earlier patch.
Differential Revision: https://phab.mercurial-scm.org/D11562
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 28 Sep 2021 15:11:22 -0700 |
parents | 5ced12cfa41b |
children | b669e40fbbd6 |
comparison
equal
deleted
inserted
replaced
48129:b74e128676d4 | 48130:5105a9975407 |
---|---|
504 ], | 504 ], |
505 b'REV', | 505 b'REV', |
506 ) | 506 ) |
507 def debugchangedfiles(ui, repo, rev, **opts): | 507 def debugchangedfiles(ui, repo, rev, **opts): |
508 """list the stored files changes for a revision""" | 508 """list the stored files changes for a revision""" |
509 ctx = scmutil.revsingle(repo, rev, None) | 509 ctx = logcmdutil.revsingle(repo, rev, None) |
510 files = None | 510 files = None |
511 | 511 |
512 if opts['compute']: | 512 if opts['compute']: |
513 files = metadata.compute_all_files_changes(ctx) | 513 files = metadata.compute_all_files_changes(ctx) |
514 else: | 514 else: |
1371 '''parse and apply a fileset specification''' | 1371 '''parse and apply a fileset specification''' |
1372 from . import fileset | 1372 from . import fileset |
1373 | 1373 |
1374 fileset.symbols # force import of fileset so we have predicates to optimize | 1374 fileset.symbols # force import of fileset so we have predicates to optimize |
1375 opts = pycompat.byteskwargs(opts) | 1375 opts = pycompat.byteskwargs(opts) |
1376 ctx = scmutil.revsingle(repo, opts.get(b'rev'), None) | 1376 ctx = logcmdutil.revsingle(repo, opts.get(b'rev'), None) |
1377 | 1377 |
1378 stages = [ | 1378 stages = [ |
1379 (b'parsed', pycompat.identity), | 1379 (b'parsed', pycompat.identity), |
1380 (b'analyzed', filesetlang.analyze), | 1380 (b'analyzed', filesetlang.analyze), |
1381 (b'optimized', filesetlang.optimize), | 1381 (b'optimized', filesetlang.optimize), |