Changeset 243a4415d03e…
Parent c6953dffe7b7…
by
Changes to one file · Browse files at 243a4415d03e Showing diff from parent c6953dffe7b7 Diff from another changeset...
@@ -154,21 +154,15 @@
if (cur.isdir)
{
+ if (!relpath.empty())
+ {
+ Dirstate* pds2 = Dirstatecache::get(cur.hgroot, cur.basedir);
+ if (pds2 && !pds2->root().getdir(relpath))
+ return 0; // unknown dir -> no icon
+ }
+
DirectoryStatus* pds = DirectoryStatus::get(cur.hgroot);
- if (!pds) {
- outStatus = '?';
- }
- else
- {
- if (!relpath.empty())
- {
- Dirstate* pds2 = Dirstatecache::get(cur.hgroot, cur.basedir);
- if (pds2 && !pds2->root().getdir(relpath))
- return 0;
- }
-
- outStatus = pds->status(relpath);
- }
+ outStatus = (pds ? pds->status(relpath) : '?');
}
else
{
|
Loading...