Show More
@@ -348,7 +348,7 b' def trackedcmd(ui, repo, remotepath=None' | |||
|
348 | 348 | """ |
|
349 | 349 | opts = pycompat.byteskwargs(opts) |
|
350 | 350 | if repository.NARROW_REQUIREMENT not in repo.requirements: |
|
351 |
raise error.Abort(_('the |
|
|
351 | raise error.Abort(_('the tracked command is only supported on ' | |
|
352 | 352 | 'respositories cloned with --narrow')) |
|
353 | 353 | |
|
354 | 354 | # Before supporting, decide whether it "hg tracked --clear" should mean |
@@ -218,3 +218,13 b' Testing with passing a out of wdir file' | |||
|
218 | 218 | adding file changes |
|
219 | 219 | added 3 changesets with 0 changes to 0 files |
|
220 | 220 | new changesets *:* (glob) |
|
221 | ||
|
222 | $ cd .. | |
|
223 | ||
|
224 | Testing tracked command on a non-narrow repo | |
|
225 | ||
|
226 | $ hg init non-narrow | |
|
227 | $ cd non-narrow | |
|
228 | $ hg tracked --addinclude foobar | |
|
229 | abort: the tracked command is only supported on respositories cloned with --narrow | |
|
230 | [255] |
General Comments 0
You need to be logged in to leave comments.
Login now