Mercurial > hg
annotate tests/test-push-hook-lock.t @ 23196:daa73289dd2a
test-status-rev: use same names as from generate-working-copy-states
To prepare for using generate-working-copy-states.py for generating
the files and their content, let's start by renaming the files
according to the naming scheme used by that script.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Mon, 20 Oct 2014 23:56:55 -0700 |
parents | 4e0b696a1cb3 |
children | 7dd1870120b2 |
rev | line source |
---|---|
12279 | 1 $ hg init 1 |
2 | |
3 $ echo '[ui]' >> 1/.hg/hgrc | |
4 $ echo 'timeout = 10' >> 1/.hg/hgrc | |
5 | |
6 $ echo foo > 1/foo | |
7 $ hg --cwd 1 ci -A -m foo | |
8 adding foo | |
9 | |
10 $ hg clone 1 2 | |
11 updating to branch default | |
12 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
13 | |
14 $ hg clone 2 3 | |
15 updating to branch default | |
16 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
17 | |
18 $ echo '[hooks]' >> 2/.hg/hgrc | |
22559
4e0b696a1cb3
commands: add debuglocks to report/clear lock state
Matt Mackall <mpm@selenic.com>
parents:
12279
diff
changeset
|
19 $ echo 'pretxnchangegroup.a = hg debuglocks; true' >> 2/.hg/hgrc |
12279 | 20 $ echo 'changegroup.push = hg push -qf ../1' >> 2/.hg/hgrc |
21 | |
22 $ echo bar >> 3/foo | |
23 $ hg --cwd 3 ci -m bar | |
24 | |
25 $ hg --cwd 3 push ../2 | |
26 pushing to ../2 | |
27 searching for changes | |
28 adding changesets | |
29 adding manifests | |
30 adding file changes | |
31 added 1 changesets with 1 changes to 1 files | |
22559
4e0b696a1cb3
commands: add debuglocks to report/clear lock state
Matt Mackall <mpm@selenic.com>
parents:
12279
diff
changeset
|
32 lock: user *, process * (*s) (glob) |
4e0b696a1cb3
commands: add debuglocks to report/clear lock state
Matt Mackall <mpm@selenic.com>
parents:
12279
diff
changeset
|
33 wlock: free |
12279 | 34 |