# coding=utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. from __future__ import absolute_import from testutil.dott import feature, sh, testtmp # noqa: F401 sh % "setconfig 'extensions.treemanifest=!'" sh.enable("remotenames") # Set up without remotenames sh % "cat" << r""" [extensions] rebase= tweakdefaults= """ >> "$HGRCPATH" sh % "hg init repo" sh % "echo a" > "repo/a" sh % "hg -R repo commit -qAm a" sh % "hg -R repo bookmark master" sh % "hg clone -q repo clone" sh % "cd clone" # Pull --rebase with no local changes sh % "echo b" > "../repo/b" sh % "hg -R ../repo commit -qAm b"
from __future__ import absolute_import from testutil.dott import feature, sh, testtmp # noqa: F401 sh.setconfig( "visibility.enabled=true", "experimental.narrow-heads=1", "remotenames.selectivepull=1", "mutation.date=0 0", # Do not track config changes to stabilize the test a bit. "metalog.track-config=0", ) sh.newrepo() sh.enable("remotenames", "amend") ( sh % "hg debugdrawdag" << r""" C | B | A """ ) sh.hg("update", "desc(A)") sh.hg("bookmark", "foo") sh.hg("update", "desc(C)")