Skip to content
Snippets Groups Projects
Commit 2072e403 authored by Pierre-Yves David's avatar Pierre-Yves David
Browse files

phases: exclude secret when doing a local clone

This is achieved by denying copy clone when any secret changeset exist.
parent 12dea4d9
No related branches found
No related tags found
No related merge requests found
......@@ -626,6 +626,10 @@
def local(self):
return self
def cancopy(self):
return (repo.repository.cancopy(self)
and not self._phaseroots[phases.secret])
def join(self, f):
return os.path.join(self.path, f)
......
......@@ -164,6 +164,17 @@
4 changesets found
$ cd ..
Test secret changeset are not cloned
(during local clone)
$ hg clone -qU initialrepo clone-dest
$ hglog -R clone-dest
4 0 B'
3 0 D
2 0 C
1 0 B
0 0 A
Test revset
$ cd initialrepo
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment