# HG changeset patch # User Matt Mackall # Date 1406762917 18000 # Node ID 93b804fced5ac3663a0f81d4fcee49ef23305371 # Parent 6dfb78f18bdba03067c7060cbe5b4ca2e757dde9 test-bundle2: move file mode setting after sys import diff -r 6dfb78f18bdb -r 93b804fced5a tests/test-bundle2.t --- a/tests/test-bundle2.t Sat Jul 26 09:27:11 2014 +0300 +++ b/tests/test-bundle2.t Wed Jul 30 18:28:37 2014 -0500 @@ -8,6 +8,15 @@ > code. We still need to be able to test it while it grow up. > """ > + > import sys + > from mercurial import cmdutil + > from mercurial import util + > from mercurial import bundle2 + > from mercurial import scmutil + > from mercurial import discovery + > from mercurial import changegroup + > from mercurial import error + > > try: > import msvcrt > msvcrt.setmode(sys.stdin.fileno(), os.O_BINARY) @@ -16,14 +25,6 @@ > except ImportError: > pass > - > import sys - > from mercurial import cmdutil - > from mercurial import util - > from mercurial import bundle2 - > from mercurial import scmutil - > from mercurial import discovery - > from mercurial import changegroup - > from mercurial import error > cmdtable = {} > command = cmdutil.command(cmdtable) >