Mercurial > hgsubversion
comparison tests/test_pull.py @ 1170:61d4fb78370b stable
pull: fix pull when phases.new-commit=secret
This was causing subtle failures during pull. I believe the line where
we manually "set phase to public" isn't required any more, but more
work is required to verify that behavior on all versions of hg, so
we'll do that as a followup on default if needed.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Fri, 04 Apr 2014 21:27:55 -0400 |
parents | cd35f6739669 |
children | 74e82a7da393 |
comparison
equal
deleted
inserted
replaced
1125:bab98093051b | 1170:61d4fb78370b |
---|---|
58 repo = self._loadupdate('branchtagcollision.svndump')[0] | 58 repo = self._loadupdate('branchtagcollision.svndump')[0] |
59 oldheads = map(node.hex, repo.heads()) | 59 oldheads = map(node.hex, repo.heads()) |
60 commands.pull(repo.ui, repo) | 60 commands.pull(repo.ui, repo) |
61 self.assertEqual(oldheads, map(node.hex, repo.heads())) | 61 self.assertEqual(oldheads, map(node.hex, repo.heads())) |
62 | 62 |
63 def test_pull_with_secret_default(self): | |
64 repo = self._loadupdate('branchtagcollision.svndump', | |
65 config={'phases.new-commit': 'secret'})[0] | |
66 oldheads = map(node.hex, repo.heads()) | |
67 commands.pull(repo.ui, repo) | |
68 self.assertEqual(oldheads, map(node.hex, repo.heads())) | |
69 | |
63 def test_skip_basic(self): | 70 def test_skip_basic(self): |
64 repo, repo_path = self._loadupdate('single_rev.svndump') | 71 repo, repo_path = self._loadupdate('single_rev.svndump') |
65 self.add_svn_rev(repo_path, {'trunk/alpha': 'Changed'}) | 72 self.add_svn_rev(repo_path, {'trunk/alpha': 'Changed'}) |
66 self.add_svn_rev(repo_path, {'trunk/beta': 'More changed'}) | 73 self.add_svn_rev(repo_path, {'trunk/beta': 'More changed'}) |
67 self.add_svn_rev(repo_path, {'trunk/gamma': 'Even more changeder'}) | 74 self.add_svn_rev(repo_path, {'trunk/gamma': 'Even more changeder'}) |