Last modified: 2010-06-18 20:01:02 UTC
It is useful to have a isLocal() method in FileRepo, to check easily, if a repo is the local repo.
Created attachment 7406 [details] patch to move isLocal from File to FileRepo Thanks.
What's the use case for this? Where would you have a FileRepo object that you need to know local/non-local, but you're not already using some file?
The method FileRepo::getDisplayName() can use this method. With this method in FileRepo there is only one check of 'local' and not two hardcoded strings.
Created attachment 7407 [details] patch-2: add missing null check
Fixed in r68235.