tests/test-boxpush.t
author Pierre-Yves David <pierre-yves.david@logilab.fr>
Thu, 13 Feb 2014 18:09:54 -0800
changeset 805 66c02a2e8e2f
parent 797 2f9ea881591a
child 814 e629a4f9d498
permissions -rw-r--r--
prune: wrap mercurial internal to add parent information in prune marker We store as a p1 (and p2) key in the extra dict for marker. This allow us to record this information for future use without requiering a format change.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
797
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
     1
  $ fastobs="$TESTDIR"/../hgfastobs.py
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
     2
  $ echo 'from mercurial import obsolete ; obsolete._enabled = True' > enableobs.py
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
     3
  $ cat >> $HGRCPATH <<EOF
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
     4
  > [obsolete]
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
     5
  > syncstrategy = boxfill
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
     6
  > [extensions]
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
     7
  > EOF
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
     8
  $ echo "enable-obsolete = $PWD/enableobs.py" >> $HGRCPATH
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
     9
  $ echo "fastobs = $fastobs" >> $HGRCPATH
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    10
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    11
  $ hg init alice
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    12
  $ hg init bob
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    13
  $ hg init trent
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    14
  $ cd alice
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    15
  $ echo a > a
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    16
  $ hg addr && hg ci -m 'add a'
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    17
  adding a
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    18
  $ echo aa >> a
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    19
  $ hg ci -m 'edit a'
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    20
  $ echo aa > a
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    21
  $ hg ci --amend -m 'edit a'
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    22
  $ hg debugobsolete
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    23
  e772e827cd64564621e7e5af15c9f848e3b92c8e efa8cd969bc37e6a1330c29f4234fe9e9be681b3 0 {'date': '* 0', 'user': 'test'} (glob)
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    24
  5ccfcbc00f2a19cd7affedce5ff087e68e67c6cc 0 {'date': '* 0', 'user': 'test'} (glob)
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    25
  $ hg push ../trent
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    26
  pushing to ../trent
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    27
  searching for changes
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    28
  adding changesets
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    29
  adding manifests
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    30
  adding file changes
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    31
  added 2 changesets with 2 changes to 1 files
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    32
  boxpush: about to transmit 2 obsolete markers (2 markers total)
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    33
  $ cd ../bob
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    34
  $ hg pull ../trent
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    35
  pulling from ../trent
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    36
  requesting all changes
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    37
  adding changesets
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    38
  adding manifests
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    39
  adding file changes
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    40
  added 2 changesets with 2 changes to 1 files
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    41
  (run 'hg update' to get a working copy)
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    42
  $ hg debugobsolete | sort
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    43
  5ccfcbc00f2a19cd7affedce5ff087e68e67c6cc 0 {'date': '* 0', 'user': 'test'} (glob)
2f9ea881591a Add initial test.
Augie Fackler <raf@durin42.com>
parents:
diff changeset
    44
  e772e827cd64564621e7e5af15c9f848e3b92c8e efa8cd969bc37e6a1330c29f4234fe9e9be681b3 0 {'date': '* 0', 'user': 'test'} (glob)