Mercurial > hg-stable
changeset 41734:ebbc4e70ebd1
narrow: fix command name in error messsage
Differential Revision: https://phab.mercurial-scm.org/D5982
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Mon, 11 Feb 2019 19:41:37 +0300 |
parents | 37b33c34bf4f |
children | 35158796f52f |
files | hgext/narrow/narrowcommands.py tests/test-narrow-trackedcmd.t |
diffstat | 2 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/narrow/narrowcommands.py Fri Feb 15 14:43:31 2019 -0500 +++ b/hgext/narrow/narrowcommands.py Mon Feb 11 19:41:37 2019 +0300 @@ -348,7 +348,7 @@ """ opts = pycompat.byteskwargs(opts) if repository.NARROW_REQUIREMENT not in repo.requirements: - raise error.Abort(_('the narrow command is only supported on ' + raise error.Abort(_('the tracked command is only supported on ' 'respositories cloned with --narrow')) # Before supporting, decide whether it "hg tracked --clear" should mean
--- a/tests/test-narrow-trackedcmd.t Fri Feb 15 14:43:31 2019 -0500 +++ b/tests/test-narrow-trackedcmd.t Mon Feb 11 19:41:37 2019 +0300 @@ -218,3 +218,13 @@ adding file changes added 3 changesets with 0 changes to 0 files new changesets *:* (glob) + + $ cd .. + +Testing tracked command on a non-narrow repo + + $ hg init non-narrow + $ cd non-narrow + $ hg tracked --addinclude foobar + abort: the tracked command is only supported on respositories cloned with --narrow + [255]