##// END OF EJS Templates
narrow: replace "ui.warn(); return 1" by "raise error.Abort()"...
Martin von Zweigbergk -
r41056:74e023f5 default
parent child Browse files
Show More
@@ -365,15 +365,13 b' def trackedcmd(ui, repo, remotepath=None'
365 """
365 """
366 opts = pycompat.byteskwargs(opts)
366 opts = pycompat.byteskwargs(opts)
367 if repository.NARROW_REQUIREMENT not in repo.requirements:
367 if repository.NARROW_REQUIREMENT not in repo.requirements:
368 ui.warn(_('The narrow command is only supported on respositories cloned'
368 raise error.Abort(_('the narrow command is only supported on '
369 ' with --narrow.\n'))
369 'respositories cloned with --narrow'))
370 return 1
371
370
372 # Before supporting, decide whether it "hg tracked --clear" should mean
371 # Before supporting, decide whether it "hg tracked --clear" should mean
373 # tracking no paths or all paths.
372 # tracking no paths or all paths.
374 if opts['clear']:
373 if opts['clear']:
375 ui.warn(_('The --clear option is not yet supported.\n'))
374 raise error.Abort(_('the --clear option is not yet supported'))
376 return 1
377
375
378 # import rules from a file
376 # import rules from a file
379 newrules = opts.get('import_rules')
377 newrules = opts.get('import_rules')
@@ -196,8 +196,8 b' Testing the --import-rules flag with --a'
196 X path:widest
196 X path:widest
197
197
198 $ hg tracked --import-rules specs --clear
198 $ hg tracked --import-rules specs --clear
199 The --clear option is not yet supported.
199 abort: the --clear option is not yet supported
200 [1]
200 [255]
201
201
202 Testing with passing a out of wdir file
202 Testing with passing a out of wdir file
203
203
General Comments 0
You need to be logged in to leave comments. Login now