Mercurial > public > mercurial-scm > hg
comparison mercurial/scmutil.py @ 26156:a112fffdb632
scmutil.readonlyvfs: implement join
Required in an upcoming patch.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Wed, 02 Sep 2015 22:05:58 -0700 |
parents | ce26928cbe41 |
children | cce8ebd31407 |
comparison
equal
deleted
inserted
replaced
26155:51a30cae2bff | 26156:a112fffdb632 |
---|---|
584 def __call__(self, path, mode='r', *args, **kw): | 584 def __call__(self, path, mode='r', *args, **kw): |
585 if mode not in ('r', 'rb'): | 585 if mode not in ('r', 'rb'): |
586 raise util.Abort('this vfs is read only') | 586 raise util.Abort('this vfs is read only') |
587 return self.vfs(path, mode, *args, **kw) | 587 return self.vfs(path, mode, *args, **kw) |
588 | 588 |
589 def join(self, path, *insidef): | |
590 return self.vfs.join(path, *insidef) | |
589 | 591 |
590 def walkrepos(path, followsym=False, seen_dirs=None, recurse=False): | 592 def walkrepos(path, followsym=False, seen_dirs=None, recurse=False): |
591 '''yield every hg repository under path, always recursively. | 593 '''yield every hg repository under path, always recursively. |
592 The recurse flag will only control recursion into repo working dirs''' | 594 The recurse flag will only control recursion into repo working dirs''' |
593 def errhandler(err): | 595 def errhandler(err): |