equal
deleted
inserted
replaced
44 patch, |
44 patch, |
45 pathutil, |
45 pathutil, |
46 phases, |
46 phases, |
47 pycompat, |
47 pycompat, |
48 repair, |
48 repair, |
49 requirements, |
|
50 revlog, |
49 revlog, |
51 rewriteutil, |
50 rewriteutil, |
52 scmutil, |
51 scmutil, |
53 smartset, |
52 smartset, |
54 state as statemod, |
53 state as statemod, |
1357 r = None |
1356 r = None |
1358 if repo: |
1357 if repo: |
1359 if cl: |
1358 if cl: |
1360 r = repo.unfiltered().changelog |
1359 r = repo.unfiltered().changelog |
1361 elif dir: |
1360 elif dir: |
1362 if requirements.TREEMANIFEST_REQUIREMENT not in repo.requirements: |
1361 if not scmutil.istreemanifest(repo): |
1363 raise error.Abort( |
1362 raise error.Abort( |
1364 _( |
1363 _( |
1365 b"--dir can only be used on repos with " |
1364 b"--dir can only be used on repos with " |
1366 b"treemanifest enabled" |
1365 b"treemanifest enabled" |
1367 ) |
1366 ) |