1577
1577
elif tree is None:
1578
1578
tree = branch.basis_tree()
1580
for fp, fc, fkind, fid, entry in tree.list_files(include_root=False):
1581
if fp.startswith(relpath):
1582
fp = osutils.pathjoin(prefix, fp[len(relpath):])
1583
if non_recursive and '/' in fp:
1585
if not all and not selection[fc]:
1587
if kind is not None and fkind != kind:
1590
kindch = entry.kind_character()
1591
outstring = '%-8s %s%s' % (fc, fp, kindch)
1592
if show_ids and fid is not None:
1593
outstring = "%-50s %s" % (outstring, fid)
1594
self.outf.write(outstring + '\n')
1596
self.outf.write(fp + '\0')
1582
for fp, fc, fkind, fid, entry in tree.list_files(include_root=False):
1583
if fp.startswith(relpath):
1584
fp = osutils.pathjoin(prefix, fp[len(relpath):])
1585
if non_recursive and '/' in fp:
1587
if not all and not selection[fc]:
1589
if kind is not None and fkind != kind:
1592
kindch = entry.kind_character()
1593
outstring = '%-8s %s%s' % (fc, fp, kindch)
1594
if show_ids and fid is not None:
1595
outstring = "%-50s %s" % (outstring, fid)
1596
self.outf.write(outstring + '\n')
1598
self.outf.write(fp + '\0')
1601
self.outf.write(fid)
1602
self.outf.write('\0')
1598
1605
if fid is not None:
1599
self.outf.write(fid)
1600
self.outf.write('\0')
1608
self.outf.write('%-50s %s\n' % (fp, my_id))
1610
self.outf.write(fp + '\n')
1610
self.outf.write('%-50s %s\n' % (fp, my_id))
1612
self.outf.write(fp + '\n')
1613
1617
class cmd_unknowns(Command):
1712
1716
@display_command
1714
1718
tree = WorkingTree.open_containing(u'.')[0]
1715
for path, file_class, kind, file_id, entry in tree.list_files():
1716
if file_class != 'I':
1718
## XXX: Slightly inefficient since this was already calculated
1719
pat = tree.is_ignored(path)
1720
print '%-50s %s' % (path, pat)
1721
for path, file_class, kind, file_id, entry in tree.list_files():
1722
if file_class != 'I':
1724
## XXX: Slightly inefficient since this was already calculated
1725
pat = tree.is_ignored(path)
1726
print '%-50s %s' % (path, pat)
1723
1731
class cmd_lookup_revision(Command):