tests/test-boxpush.t
author Pierre-Yves David <pierre-yves.david@fb.com>
Mon, 03 Mar 2014 22:18:05 -0800
changeset 853 b82b49189328
parent 814 e629a4f9d498
permissions -rw-r--r--
exchange: add progress bar when pulling using wire protocol command progress bar on pull was only available for pushkey based pull before this changeset.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
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)