tests/test-incoming-outgoing.t
changeset 35442 0ebd94ac56d1
parent 34661 eb586ed5d8ce
child 39497 89630d0b3e23
equal deleted inserted replaced
35441:cf532a62e337 35442:0ebd94ac56d1
   489   $ hg -R r1 incoming r2 --bundle x.hg
   489   $ hg -R r1 incoming r2 --bundle x.hg
   490   comparing with r2
   490   comparing with r2
   491   searching for changes
   491   searching for changes
   492   no changes found
   492   no changes found
   493   [1]
   493   [1]
       
   494 
       
   495 Create a "split" repo that pulls from r1 and pushes to r2, using default-push
       
   496 
       
   497   $ hg clone r1 split
       
   498   updating to branch default
       
   499   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
       
   500   $ cat > split/.hg/hgrc << EOF
       
   501   > [paths]
       
   502   > default = $TESTTMP/r3
       
   503   > default-push = $TESTTMP/r2
       
   504   > EOF
       
   505   $ hg -R split outgoing
       
   506   comparing with $TESTTMP/r2
       
   507   searching for changes
       
   508   changeset:   0:3e92d79f743a
       
   509   tag:         tip
       
   510   user:        test
       
   511   date:        Thu Jan 01 00:00:00 1970 +0000
       
   512   summary:     a
       
   513   
       
   514 
       
   515 Use default:pushurl instead of default-push
       
   516 
       
   517 Windows needs a leading slash to make a URL that passes all of the checks
       
   518   $ WD=`pwd`
       
   519 #if windows
       
   520   $ WD="/$WD"
       
   521 #endif
       
   522   $ cat > split/.hg/hgrc << EOF
       
   523   > [paths]
       
   524   > default = $WD/r3
       
   525   > default:pushurl = file://$WD/r2
       
   526   > EOF
       
   527   $ hg -R split outgoing
       
   528   comparing with file:/*/$TESTTMP/r2 (glob)
       
   529   searching for changes
       
   530   changeset:   0:3e92d79f743a
       
   531   tag:         tip
       
   532   user:        test
       
   533   date:        Thu Jan 01 00:00:00 1970 +0000
       
   534   summary:     a
       
   535   
       
   536 
       
   537 Push and then double-check outgoing
       
   538 
       
   539   $ echo a >> split/foo
       
   540   $ hg -R split commit -Ama
       
   541   $ hg -R split push
       
   542   pushing to file:/*/$TESTTMP/r2 (glob)
       
   543   searching for changes
       
   544   adding changesets
       
   545   adding manifests
       
   546   adding file changes
       
   547   added 2 changesets with 2 changes to 1 files
       
   548   $ hg -R split outgoing
       
   549   comparing with file:/*/$TESTTMP/r2 (glob)
       
   550   searching for changes
       
   551   no changes found
       
   552   [1]
       
   553