Mercurial > hg
diff tests/test-merge1.t @ 34909:a52e5604d864 stable
merge default into stable for code freeze
# no-check-commit because default contains new vendored code
author | Kevin Bullock <kbullock+mercurial@ringworld.org> |
---|---|
date | Thu, 19 Oct 2017 15:15:05 -0500 |
parents | 0217d66846f7 |
children | 2a774cae3a03 |
line wrap: on
line diff
--- a/tests/test-merge1.t Wed Oct 04 09:04:52 2017 -0400 +++ b/tests/test-merge1.t Thu Oct 19 15:15:05 2017 -0500 @@ -1,4 +1,5 @@ $ cat <<EOF > merge + > from __future__ import print_function > import sys, os > > try: @@ -8,7 +9,7 @@ > except ImportError: > pass > - > print "merging for", os.path.basename(sys.argv[1]) + > print("merging for", os.path.basename(sys.argv[1])) > EOF $ HGMERGE="$PYTHON ../merge"; export HGMERGE @@ -29,17 +30,17 @@ $ mkdir b && touch b/nonempty $ hg up - abort: *: '$TESTTMP/t/b' (glob) + b: untracked directory conflicts with file + abort: untracked files in working directory differ from files in requested revision [255] $ hg ci - abort: last update was interrupted - (use 'hg update' to get a consistent checkout) - [255] + nothing changed + [1] $ hg sum parent: 0:538afb845929 commit #0 branch: default - commit: 1 unknown (interrupted update) + commit: 1 unknown (clean) update: 1 new changesets (update) phases: 2 draft $ rm b/nonempty @@ -339,9 +340,14 @@ isn't changed on the filesystem (see also issue4583). $ cat > $TESTTMP/abort.py <<EOF + > from __future__ import absolute_import > # emulate aborting before "recordupdates()". in this case, files > # are changed without updating dirstate - > from mercurial import extensions, merge, error + > from mercurial import ( + > error, + > extensions, + > merge, + > ) > def applyupdates(orig, *args, **kwargs): > orig(*args, **kwargs) > raise error.Abort('intentional aborting')