# HG changeset patch # User Patrick Mezard # Date 1265554585 -3600 # Node ID 8522f8ef799e3528f47d19335e6437ced6491c22 # Parent cbd7065e6ab429f6c7c1ffd98f0d503b0b27fce2 pushmod: make outdated parent error message more helpful diff --git a/hgsubversion/pushmod.py b/hgsubversion/pushmod.py --- a/hgsubversion/pushmod.py +++ b/hgsubversion/pushmod.py @@ -203,7 +203,9 @@ def commit(ui, repo, rev_ctx, meta, base except core.SubversionException, e: if hasattr(e, 'apr_err') and (e.apr_err == core.SVN_ERR_FS_TXN_OUT_OF_DATE or e.apr_err == core.SVN_ERR_FS_CONFLICT): - raise hgutil.Abort('Base text was out of date, maybe rebase?') + raise hgutil.Abort('Outgoing changesets parent is not at ' + 'subversion HEAD\n' + '(pull again and rebase on a newer revision)') else: raise diff --git a/tests/test_push_command.py b/tests/test_push_command.py --- a/tests/test_push_command.py +++ b/tests/test_push_command.py @@ -475,7 +475,9 @@ class PushTests(test_util.TestBase): assert False, 'This should have aborted!' except hgutil.Abort, e: self.assertEqual(e.args[0], - 'Base text was out of date, maybe rebase?') + 'Outgoing changesets parent is not at subversion ' + 'HEAD\n' + '(pull again and rebase on a newer revision)') def suite():