equal
deleted
inserted
replaced
2196 files, dirs = set(), set() |
2196 files, dirs = set(), set() |
2197 for spec in specs: |
2197 for spec in specs: |
2198 f, d = complete(spec, acceptable or 'nmar') |
2198 f, d = complete(spec, acceptable or 'nmar') |
2199 files.update(f) |
2199 files.update(f) |
2200 dirs.update(d) |
2200 dirs.update(d) |
2201 for d in dirs: |
2201 if not files and len(dirs) == 1: |
2202 files.add(d + 'a') |
2202 # force the shell to consider a completion that matches one |
2203 files.add(d + 'b') |
2203 # directory and zero files to be ambiguous |
|
2204 dirs.add(iter(dirs).next() + '.') |
|
2205 files.update(dirs) |
2204 ui.write('\n'.join(repo.pathto(p, cwd) for p in sorted(files))) |
2206 ui.write('\n'.join(repo.pathto(p, cwd) for p in sorted(files))) |
2205 ui.write('\n') |
2207 ui.write('\n') |
2206 |
2208 |
2207 @command('debugpushkey', [], _('REPO NAMESPACE [KEY OLD NEW]')) |
2209 @command('debugpushkey', [], _('REPO NAMESPACE [KEY OLD NEW]')) |
2208 def debugpushkey(ui, repopath, namespace, *keyinfo, **opts): |
2210 def debugpushkey(ui, repopath, namespace, *keyinfo, **opts): |