[PATCH 3 of 5] test-bundle2-exchange: use error.Abort instead of util.Abort

Yuya Nishihara yuya at tcha.org
Sat Mar 24 05:53:55 EDT 2018


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1521868184 -32400
#      Sat Mar 24 14:09:44 2018 +0900
# Node ID 9e694251731bf82895a6976ecba1afa3ece3fe2d
# Parent  f69531100039b5c81677be7c9f10c7598966a120
test-bundle2-exchange: use error.Abort instead of util.Abort

diff --git a/tests/test-bundle2-exchange.t b/tests/test-bundle2-exchange.t
--- a/tests/test-bundle2-exchange.t
+++ b/tests/test-bundle2-exchange.t
@@ -933,10 +933,10 @@ Test lazily acquiring the lock during un
 
   $ cat >> $TESTTMP/locktester.py <<EOF
   > import os
-  > from mercurial import extensions, bundle2, util
+  > from mercurial import extensions, bundle2, error
   > def checklock(orig, repo, *args, **kwargs):
   >     if repo.svfs.lexists("lock"):
-  >         raise util.Abort("Lock should not be taken")
+  >         raise error.Abort("Lock should not be taken")
   >     return orig(repo, *args, **kwargs)
   > def extsetup(ui):
   >    extensions.wrapfunction(bundle2, 'processbundle', checklock)


More information about the Mercurial-devel mailing list