author | Pierre-Yves David <pierre-yves.david@fb.com> |
Mon, 03 Mar 2014 14:59:43 -0800 | |
changeset 832 | 46e81a5d2d94 |
parent 814 | e629a4f9d498 |
permissions | -rw-r--r-- |
814
e629a4f9d498
fastobs: move the extension to the hgext dir
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
797
diff
changeset
|
1 |
$ fastobs="$TESTDIR"/../hgext/hgfastobs.py |
797 | 2 |
$ echo 'from mercurial import obsolete ; obsolete._enabled = True' > enableobs.py |
3 |
$ cat >> $HGRCPATH <<EOF |
|
4 |
> [obsolete] |
|
5 |
> syncstrategy = boxfill |
|
6 |
> [extensions] |
|
7 |
> EOF |
|
8 |
$ echo "enable-obsolete = $PWD/enableobs.py" >> $HGRCPATH |
|
9 |
$ echo "fastobs = $fastobs" >> $HGRCPATH |
|
10 |
||
11 |
$ hg init alice |
|
12 |
$ hg init bob |
|
13 |
$ hg init trent |
|
14 |
$ cd alice |
|
15 |
$ echo a > a |
|
16 |
$ hg addr && hg ci -m 'add a' |
|
17 |
adding a |
|
18 |
$ echo aa >> a |
|
19 |
$ hg ci -m 'edit a' |
|
20 |
$ echo aa > a |
|
21 |
$ hg ci --amend -m 'edit a' |
|
22 |
$ hg debugobsolete |
|
23 |
e772e827cd64564621e7e5af15c9f848e3b92c8e efa8cd969bc37e6a1330c29f4234fe9e9be681b3 0 {'date': '* 0', 'user': 'test'} (glob) |
|
24 |
5ccfcbc00f2a19cd7affedce5ff087e68e67c6cc 0 {'date': '* 0', 'user': 'test'} (glob) |
|
25 |
$ hg push ../trent |
|
26 |
pushing to ../trent |
|
27 |
searching for changes |
|
28 |
adding changesets |
|
29 |
adding manifests |
|
30 |
adding file changes |
|
31 |
added 2 changesets with 2 changes to 1 files |
|
32 |
boxpush: about to transmit 2 obsolete markers (2 markers total) |
|
33 |
$ cd ../bob |
|
34 |
$ hg pull ../trent |
|
35 |
pulling from ../trent |
|
36 |
requesting all changes |
|
37 |
adding changesets |
|
38 |
adding manifests |
|
39 |
adding file changes |
|
40 |
added 2 changesets with 2 changes to 1 files |
|
41 |
(run 'hg update' to get a working copy) |
|
42 |
$ hg debugobsolete | sort |
|
43 |
5ccfcbc00f2a19cd7affedce5ff087e68e67c6cc 0 {'date': '* 0', 'user': 'test'} (glob) |
|
44 |
e772e827cd64564621e7e5af15c9f848e3b92c8e efa8cd969bc37e6a1330c29f4234fe9e9be681b3 0 {'date': '* 0', 'user': 'test'} (glob) |