Mercurial > hg
comparison tests/test-bookmarks.t @ 33946:83313639b8a4
tests: update test-bookmarks to pass the import checker
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Tue, 22 Aug 2017 15:04:14 -0400 |
parents | 5cd6d4826f9f |
children | eb586ed5d8ce |
comparison
equal
deleted
inserted
replaced
33945:403040b5a5bd | 33946:83313639b8a4 |
---|---|
946 $ hg commit -Aqm one | 946 $ hg commit -Aqm one |
947 $ hg book mybook | 947 $ hg book mybook |
948 $ echo a > a | 948 $ echo a > a |
949 | 949 |
950 $ cat > $TESTTMP/pausefinalize.py <<EOF | 950 $ cat > $TESTTMP/pausefinalize.py <<EOF |
951 > from __future__ import absolute_import | |
952 > import os | |
953 > import time | |
951 > from mercurial import extensions, localrepo | 954 > from mercurial import extensions, localrepo |
952 > import os, time | |
953 > def transaction(orig, self, desc, report=None): | 955 > def transaction(orig, self, desc, report=None): |
954 > tr = orig(self, desc, report) | 956 > tr = orig(self, desc, report) |
955 > def sleep(*args, **kwargs): | 957 > def sleep(*args, **kwargs): |
956 > retry = 20 | 958 > retry = 20 |
957 > while retry > 0 and not os.path.exists("$TESTTMP/unpause"): | 959 > while retry > 0 and not os.path.exists("$TESTTMP/unpause"): |