comparison hgext/fix.py @ 45807:f90943d753ef

fix: suggest --source instead of --rev on empty revset `--source` is the recommended flag for regular users (`--rev` is available for advanced users). Differential Revision: https://phab.mercurial-scm.org/D9224
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 16 Oct 2020 15:05:43 -0700
parents 04de8a1ec08f
children 136a86327316
comparison
equal deleted inserted replaced
45806:7252f5237352 45807:f90943d753ef
437 mergestatemod.mergestate.read(repo).unresolved() 437 mergestatemod.mergestate.read(repo).unresolved()
438 ): 438 ):
439 raise error.Abort(b'unresolved conflicts', hint=b"use 'hg resolve'") 439 raise error.Abort(b'unresolved conflicts', hint=b"use 'hg resolve'")
440 if not revs: 440 if not revs:
441 raise error.Abort( 441 raise error.Abort(
442 b'no changesets specified', hint=b'use --rev or --working-dir' 442 b'no changesets specified', hint=b'use --source or --working-dir'
443 ) 443 )
444 return revs 444 return revs
445 445
446 446
447 def checkfixablectx(ui, repo, ctx): 447 def checkfixablectx(ui, repo, ctx):