Mercurial > hgsubversion
comparison tests/test_single_dir_push.py @ 1055:2d7398fffd0d
push: obsolete rather than rebase & strip when enabled
This requires a few changes to wrappers.push() to use obsolescence
rather than strip and to make the rebase -- which is non-destructive
with obsolete active -- to no longer keep the originals. Possible
future work involves no longer relying on rebase for non-outgoing
revisions, and simply leaving them in the troubled state.
We test this feature by adding setting obsolete_mode_tests to True in
classes that push changes.
author | Dan Villiom Podlaski Christiansen <dan@cabo.dk> |
---|---|
date | Fri, 09 Aug 2013 19:30:25 +0200 |
parents | 3092b3c109a8 |
children | cf325cd90b22 |
comparison
equal
deleted
inserted
replaced
1054:131cb06dca76 | 1055:2d7398fffd0d |
---|---|
9 from mercurial import hg | 9 from mercurial import hg |
10 from mercurial import node | 10 from mercurial import node |
11 from mercurial import ui | 11 from mercurial import ui |
12 | 12 |
13 class TestSingleDirPush(test_util.TestBase): | 13 class TestSingleDirPush(test_util.TestBase): |
14 obsolete_mode_tests = True | |
15 | |
14 def test_push_single_dir(self): | 16 def test_push_single_dir(self): |
15 # Tests simple pushing from default branch to a single dir repo | 17 # Tests simple pushing from default branch to a single dir repo |
16 repo, repo_path = self.load_and_fetch('branch_from_tag.svndump', | 18 repo, repo_path = self.load_and_fetch('branch_from_tag.svndump', |
17 stupid=False, | 19 stupid=False, |
18 layout='single', | 20 layout='single', |