Mercurial > hgsubversion
comparison tests/test_push_command.py @ 907:173065f9b715
push test: peek inside svn's pending transaction list on abort
This helps us verify that aborting a transaction is being done
properly.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Thu, 17 May 2012 08:24:54 -0500 |
parents | a279b5838aaf |
children | d99ed94f4760 |
comparison
equal
deleted
inserted
replaced
906:757d6a862c83 | 907:173065f9b715 |
---|---|
132 self.assertNotEqual('an_author', tip.user()) | 132 self.assertNotEqual('an_author', tip.user()) |
133 self.assertEqual('(no author)', tip.user().rsplit('@', 1)[0]) | 133 self.assertEqual('(no author)', tip.user().rsplit('@', 1)[0]) |
134 finally: | 134 finally: |
135 if sys.version_info >= (2,6): | 135 if sys.version_info >= (2,6): |
136 svnserve.kill() | 136 svnserve.kill() |
137 else: | 137 else: |
138 test_util.kill_process(svnserve) | 138 test_util.kill_process(svnserve) |
139 | 139 |
140 def test_push_over_svnserve(self): | 140 def test_push_over_svnserve(self): |
141 self.internal_push_over_svnserve() | 141 self.internal_push_over_svnserve() |
142 | 142 |
485 except hgutil.Abort, e: | 485 except hgutil.Abort, e: |
486 self.assertEqual(e.args[0], | 486 self.assertEqual(e.args[0], |
487 'Outgoing changesets parent is not at subversion ' | 487 'Outgoing changesets parent is not at subversion ' |
488 'HEAD\n' | 488 'HEAD\n' |
489 '(pull again and rebase on a newer revision)') | 489 '(pull again and rebase on a newer revision)') |
490 | 490 # verify that any pending transactions on the server got cleaned up |
491 self.assertEqual([], os.listdir( | |
492 os.path.join(self.tmpdir, 'testrepo-1', 'db', 'transactions'))) | |
491 | 493 |
492 def suite(): | 494 def suite(): |
493 test_classes = [PushTests, ] | 495 test_classes = [PushTests, ] |
494 all_tests = [] | 496 all_tests = [] |
495 # This is the quickest hack I could come up with to load all the tests from | 497 # This is the quickest hack I could come up with to load all the tests from |