comparison mercurial/localrepo.py @ 15888:2072e4031994

phases: exclude secret when doing a local clone This is achieved by denying copy clone when any secret changeset exist.
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Wed, 11 Jan 2012 17:26:27 +0100
parents a5917346c72e
children 816209eaf963
comparison
equal deleted inserted replaced
15887:12dea4d998ec 15888:2072e4031994
623 nm = self.changelog.nodemap 623 nm = self.changelog.nodemap
624 return [(n in nm) for n in nodes] 624 return [(n in nm) for n in nodes]
625 625
626 def local(self): 626 def local(self):
627 return self 627 return self
628
629 def cancopy(self):
630 return (repo.repository.cancopy(self)
631 and not self._phaseroots[phases.secret])
628 632
629 def join(self, f): 633 def join(self, f):
630 return os.path.join(self.path, f) 634 return os.path.join(self.path, f)
631 635
632 def wjoin(self, f): 636 def wjoin(self, f):