2019-12-10 02:24:31 +03:00
|
|
|
#chg-compatible
|
2022-09-12 21:49:55 +03:00
|
|
|
$ setconfig devel.segmented-changelog-rev-compat=true
|
2022-08-03 23:12:34 +03:00
|
|
|
$ setconfig workingcopy.ruststatus=False
|
2021-09-23 04:01:23 +03:00
|
|
|
$ setconfig experimental.allowfilepeer=True
|
2019-12-10 02:24:31 +03:00
|
|
|
|
2020-01-20 13:42:49 +03:00
|
|
|
$ disable treemanifest
|
2018-01-23 23:09:16 +03:00
|
|
|
|
2016-11-03 06:58:46 +03:00
|
|
|
==================================
|
|
|
|
Basic testing for the push command
|
|
|
|
==================================
|
|
|
|
|
|
|
|
Testing of the '--rev' flag
|
|
|
|
===========================
|
|
|
|
|
|
|
|
$ hg init test-revflag
|
|
|
|
$ hg -R test-revflag unbundle "$TESTDIR/bundles/remote.hg"
|
2011-04-30 19:38:06 +04:00
|
|
|
adding changesets
|
|
|
|
adding manifests
|
|
|
|
adding file changes
|
2010-09-14 14:20:51 +04:00
|
|
|
|
|
|
|
$ for i in 0 1 2 3 4 5 6 7 8; do
|
|
|
|
> echo
|
2016-11-03 06:58:46 +03:00
|
|
|
> hg init test-revflag-"$i"
|
|
|
|
> hg -R test-revflag push -r "$i" test-revflag-"$i"
|
|
|
|
> hg -R test-revflag-"$i" verify
|
2010-09-14 14:20:51 +04:00
|
|
|
> done
|
|
|
|
|
2016-11-03 06:58:46 +03:00
|
|
|
pushing to test-revflag-0
|
2010-09-14 14:20:51 +04:00
|
|
|
searching for changes
|
|
|
|
adding changesets
|
|
|
|
adding manifests
|
|
|
|
adding file changes
|
2021-06-11 00:43:29 +03:00
|
|
|
warning: verify does not actually check anything in this repo
|
2010-09-14 14:20:51 +04:00
|
|
|
|
2016-11-03 06:58:46 +03:00
|
|
|
pushing to test-revflag-1
|
2010-09-14 14:20:51 +04:00
|
|
|
searching for changes
|
|
|
|
adding changesets
|
|
|
|
adding manifests
|
|
|
|
adding file changes
|
2021-06-11 00:43:29 +03:00
|
|
|
warning: verify does not actually check anything in this repo
|
2010-09-14 14:20:51 +04:00
|
|
|
|
2016-11-03 06:58:46 +03:00
|
|
|
pushing to test-revflag-2
|
2010-09-14 14:20:51 +04:00
|
|
|
searching for changes
|
|
|
|
adding changesets
|
|
|
|
adding manifests
|
|
|
|
adding file changes
|
2021-06-11 00:43:29 +03:00
|
|
|
warning: verify does not actually check anything in this repo
|
2010-09-14 14:20:51 +04:00
|
|
|
|
2016-11-03 06:58:46 +03:00
|
|
|
pushing to test-revflag-3
|
2010-09-14 14:20:51 +04:00
|
|
|
searching for changes
|
|
|
|
adding changesets
|
|
|
|
adding manifests
|
|
|
|
adding file changes
|
2021-06-11 00:43:29 +03:00
|
|
|
warning: verify does not actually check anything in this repo
|
2010-09-14 14:20:51 +04:00
|
|
|
|
2016-11-03 06:58:46 +03:00
|
|
|
pushing to test-revflag-4
|
2010-09-14 14:20:51 +04:00
|
|
|
searching for changes
|
|
|
|
adding changesets
|
|
|
|
adding manifests
|
|
|
|
adding file changes
|
2021-06-11 00:43:29 +03:00
|
|
|
warning: verify does not actually check anything in this repo
|
2010-09-14 14:20:51 +04:00
|
|
|
|
2016-11-03 06:58:46 +03:00
|
|
|
pushing to test-revflag-5
|
2010-09-14 14:20:51 +04:00
|
|
|
searching for changes
|
|
|
|
adding changesets
|
|
|
|
adding manifests
|
|
|
|
adding file changes
|
2021-06-11 00:43:29 +03:00
|
|
|
warning: verify does not actually check anything in this repo
|
2010-09-14 14:20:51 +04:00
|
|
|
|
2016-11-03 06:58:46 +03:00
|
|
|
pushing to test-revflag-6
|
2010-09-14 14:20:51 +04:00
|
|
|
searching for changes
|
|
|
|
adding changesets
|
|
|
|
adding manifests
|
|
|
|
adding file changes
|
2021-06-11 00:43:29 +03:00
|
|
|
warning: verify does not actually check anything in this repo
|
2010-09-14 14:20:51 +04:00
|
|
|
|
2016-11-03 06:58:46 +03:00
|
|
|
pushing to test-revflag-7
|
2010-09-14 14:20:51 +04:00
|
|
|
searching for changes
|
|
|
|
adding changesets
|
|
|
|
adding manifests
|
|
|
|
adding file changes
|
2021-06-11 00:43:29 +03:00
|
|
|
warning: verify does not actually check anything in this repo
|
2010-09-14 14:20:51 +04:00
|
|
|
|
2016-11-03 06:58:46 +03:00
|
|
|
pushing to test-revflag-8
|
2010-09-14 14:20:51 +04:00
|
|
|
searching for changes
|
|
|
|
adding changesets
|
|
|
|
adding manifests
|
|
|
|
adding file changes
|
2021-06-11 00:43:29 +03:00
|
|
|
warning: verify does not actually check anything in this repo
|
2010-09-14 14:20:51 +04:00
|
|
|
|
2016-11-03 06:58:46 +03:00
|
|
|
$ cd test-revflag-8
|
2010-09-14 14:20:51 +04:00
|
|
|
|
2016-11-03 06:58:46 +03:00
|
|
|
$ hg pull ../test-revflag-7
|
|
|
|
pulling from ../test-revflag-7
|
2010-09-14 14:20:51 +04:00
|
|
|
searching for changes
|
|
|
|
adding changesets
|
|
|
|
adding manifests
|
|
|
|
adding file changes
|
|
|
|
|
|
|
|
$ hg verify
|
2021-06-11 00:43:29 +03:00
|
|
|
warning: verify does not actually check anything in this repo
|
2010-09-14 14:20:51 +04:00
|
|
|
|
2012-06-11 03:40:51 +04:00
|
|
|
$ cd ..
|
2016-11-03 07:10:14 +03:00
|
|
|
|
2016-11-03 07:12:23 +03:00
|
|
|
Test push hook locking
|
|
|
|
=====================
|
|
|
|
|
|
|
|
$ hg init 1
|
|
|
|
|
|
|
|
$ echo '[ui]' >> 1/.hg/hgrc
|
|
|
|
$ echo 'timeout = 10' >> 1/.hg/hgrc
|
|
|
|
|
|
|
|
$ echo foo > 1/foo
|
|
|
|
$ hg --cwd 1 ci -A -m foo
|
|
|
|
adding foo
|
|
|
|
|
|
|
|
$ hg clone 1 2
|
|
|
|
updating to branch default
|
|
|
|
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
|
|
|
|
|
|
|
$ hg clone 2 3
|
|
|
|
updating to branch default
|
|
|
|
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
|
|
|
|
|
|
|
$ cat <<EOF > $TESTTMP/debuglocks-pretxn-hook.sh
|
|
|
|
> hg debuglocks
|
|
|
|
> true
|
|
|
|
> EOF
|
|
|
|
$ echo '[hooks]' >> 2/.hg/hgrc
|
|
|
|
$ echo "pretxnchangegroup.a = sh $TESTTMP/debuglocks-pretxn-hook.sh" >> 2/.hg/hgrc
|
|
|
|
$ echo 'changegroup.push = hg push -qf ../1' >> 2/.hg/hgrc
|
|
|
|
|
|
|
|
$ echo bar >> 3/foo
|
|
|
|
$ hg --cwd 3 ci -m bar
|
|
|
|
|
|
|
|
$ hg --cwd 3 push ../2 --config devel.legacy.exchange=bundle1
|
|
|
|
pushing to ../2
|
|
|
|
searching for changes
|
2018-04-12 02:04:30 +03:00
|
|
|
devel-warn: using deprecated bundlev1 format
|
|
|
|
at: */changegroup.py:* (makechangegroup) (glob)
|
2016-11-03 07:12:23 +03:00
|
|
|
adding changesets
|
|
|
|
adding manifests
|
|
|
|
adding file changes
|
2018-04-18 03:16:48 +03:00
|
|
|
lock: user *, process * (*s) (glob)
|
|
|
|
wlock: free
|
2019-04-29 14:31:28 +03:00
|
|
|
undolog/lock: absent
|
|
|
|
prefetchlock: free
|
|
|
|
infinitepushbackup.lock: free
|
2016-11-03 07:12:23 +03:00
|
|
|
|
2019-02-25 14:50:46 +03:00
|
|
|
$ hg --cwd 1 debugstrip tip -q
|
|
|
|
$ hg --cwd 2 debugstrip tip -q
|
2016-11-03 07:12:23 +03:00
|
|
|
$ hg --cwd 3 push ../2 # bundle2+
|
|
|
|
pushing to ../2
|
|
|
|
searching for changes
|
|
|
|
adding changesets
|
|
|
|
adding manifests
|
|
|
|
adding file changes
|
2018-04-18 03:16:48 +03:00
|
|
|
lock: user *, process * (*s) (glob)
|
|
|
|
wlock: user *, process * (*s) (glob)
|
2019-04-29 14:31:28 +03:00
|
|
|
undolog/lock: absent
|
|
|
|
prefetchlock: free
|
|
|
|
infinitepushbackup.lock: free
|
2016-11-03 07:12:23 +03:00
|
|
|
|
2017-06-28 18:41:25 +03:00
|
|
|
Test bare push with multiple race checking options
|
|
|
|
--------------------------------------------------
|
|
|
|
|
|
|
|
$ hg init test-bare-push-no-concurrency
|
|
|
|
$ hg init test-bare-push-unrelated-concurrency
|
2020-07-07 00:00:16 +03:00
|
|
|
$ hg -R test-revflag push -r 'desc(0.0)' test-bare-push-no-concurrency --config server.concurrent-push-mode=strict
|
2017-06-28 18:41:25 +03:00
|
|
|
pushing to test-bare-push-no-concurrency
|
|
|
|
searching for changes
|
|
|
|
adding changesets
|
|
|
|
adding manifests
|
|
|
|
adding file changes
|
2020-07-07 00:00:16 +03:00
|
|
|
$ hg -R test-revflag push -r 'desc(0.0)' test-bare-push-unrelated-concurrency --config server.concurrent-push-mode=check-related
|
2017-06-28 18:41:25 +03:00
|
|
|
pushing to test-bare-push-unrelated-concurrency
|
|
|
|
searching for changes
|
|
|
|
adding changesets
|
|
|
|
adding manifests
|
|
|
|
adding file changes
|
2017-08-01 00:40:28 +03:00
|
|
|
|