Show More
@@ -3491,19 +3491,13 b' def manifest(ui, repo, node=None, rev=No' | |||||
3491 | if rev or node: |
|
3491 | if rev or node: | |
3492 | raise error.Abort(_("can't specify a revision with --all")) |
|
3492 | raise error.Abort(_("can't specify a revision with --all")) | |
3493 |
|
3493 | |||
3494 |
res = |
|
3494 | res = set() | |
3495 | # TODO this is a massive layering violation. It assumes the repo is |
|
3495 | for rev in repo: | |
3496 | # backed by revlogs with a well-defined naming scheme. |
|
3496 | ctx = repo[rev] | |
3497 | prefix = "data/" |
|
3497 | res |= set(ctx.files()) | |
3498 | suffix = ".i" |
|
3498 | ||
3499 | plen = len(prefix) |
|
|||
3500 | slen = len(suffix) |
|
|||
3501 | with repo.lock(): |
|
|||
3502 | for fn, b, size in repo.store.datafiles(): |
|
|||
3503 | if size != 0 and fn[-slen:] == suffix and fn[:plen] == prefix: |
|
|||
3504 | res.append(fn[plen:-slen]) |
|
|||
3505 | ui.pager('manifest') |
|
3499 | ui.pager('manifest') | |
3506 | for f in res: |
|
3500 | for f in sorted(res): | |
3507 | fm.startitem() |
|
3501 | fm.startitem() | |
3508 | fm.write("path", '%s\n', f) |
|
3502 | fm.write("path", '%s\n', f) | |
3509 | fm.end() |
|
3503 | fm.end() |
@@ -878,7 +878,7 b' skip submodules in the conversion' | |||||
878 |
|
878 | |||
879 | $ hg convert -q git-repo6 no-submodules --config convert.git.skipsubmodules=True |
|
879 | $ hg convert -q git-repo6 no-submodules --config convert.git.skipsubmodules=True | |
880 | $ hg -R no-submodules manifest --all |
|
880 | $ hg -R no-submodules manifest --all | |
881 |
.gitmodules-renamed |
|
881 | .gitmodules-renamed | |
882 |
|
882 | |||
883 | convert using a different remote prefix |
|
883 | convert using a different remote prefix | |
884 | $ git init git-repo7 |
|
884 | $ git init git-repo7 |
@@ -68,9 +68,9 b' The next call is expected to return noth' | |||||
68 | l |
|
68 | l | |
69 |
|
69 | |||
70 | $ hg manifest --all |
|
70 | $ hg manifest --all | |
71 | a (no-reposimplestore !) |
|
71 | a | |
72 | b/a (no-reposimplestore !) |
|
72 | b/a | |
73 | l (no-reposimplestore !) |
|
73 | l | |
74 |
|
74 | |||
75 | The next two calls are expected to abort: |
|
75 | The next two calls are expected to abort: | |
76 |
|
76 |
General Comments 0
You need to be logged in to leave comments.
Login now