Mercurial > hgsubversion
comparison tests/test_push_command.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 | 903c9c9dfe6a |
children | cccc7a50f66d |
comparison
equal
deleted
inserted
replaced
1054:131cb06dca76 | 1055:2d7398fffd0d |
---|---|
21 | 21 |
22 import time | 22 import time |
23 | 23 |
24 | 24 |
25 class PushTests(test_util.TestBase): | 25 class PushTests(test_util.TestBase): |
26 obsolete_mode_tests = True | |
27 | |
26 def setUp(self): | 28 def setUp(self): |
27 test_util.TestBase.setUp(self) | 29 test_util.TestBase.setUp(self) |
28 self.repo_path = self.load_and_fetch('simple_branch.svndump')[1] | 30 self.repo_path = self.load_and_fetch('simple_branch.svndump')[1] |
29 | 31 |
30 def test_cant_push_empty_ctx(self): | 32 def test_cant_push_empty_ctx(self): |