equal
deleted
inserted
replaced
371 Subrepositories whose paths match the given pattern. |
371 Subrepositories whose paths match the given pattern. |
372 """ |
372 """ |
373 # i18n: "subrepo" is a keyword |
373 # i18n: "subrepo" is a keyword |
374 getargs(x, 0, 1, _("subrepo takes at most one argument")) |
374 getargs(x, 0, 1, _("subrepo takes at most one argument")) |
375 ctx = mctx.ctx |
375 ctx = mctx.ctx |
376 sstate = ctx.substate |
376 sstate = sorted(ctx.substate) |
377 if x: |
377 if x: |
378 pat = getstring(x, _("subrepo requires a pattern or no arguments")) |
378 pat = getstring(x, _("subrepo requires a pattern or no arguments")) |
379 |
379 |
380 import match as matchmod # avoid circular import issues |
380 import match as matchmod # avoid circular import issues |
381 fast = not matchmod.patkind(pat) |
381 fast = not matchmod.patkind(pat) |