tests/test-push-warn.t
branchstable
changeset 15615 41885892796e
parent 14833 308e1b5acc87
child 16023 90f8b8dd0326
equal deleted inserted replaced
15610:09b200396384 15615:41885892796e
   391 Check prepush logic with merged branches:
   391 Check prepush logic with merged branches:
   392 
   392 
   393   $ hg init j
   393   $ hg init j
   394   $ hg -R j branch a
   394   $ hg -R j branch a
   395   marked working directory as branch a
   395   marked working directory as branch a
       
   396   (branches are permanent and global, did you want a bookmark?)
   396   $ echo init > j/foo
   397   $ echo init > j/foo
   397   $ hg -R j ci -Am init
   398   $ hg -R j ci -Am init
   398   adding foo
   399   adding foo
   399   $ hg clone j k
   400   $ hg clone j k
   400   updating to branch a
   401   updating to branch a
   401   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   402   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   402   $ echo a1 > j/foo
   403   $ echo a1 > j/foo
   403   $ hg -R j ci -m a1
   404   $ hg -R j ci -m a1
   404   $ hg -R k branch b
   405   $ hg -R k branch b
   405   marked working directory as branch b
   406   marked working directory as branch b
       
   407   (branches are permanent and global, did you want a bookmark?)
   406   $ echo b > k/foo
   408   $ echo b > k/foo
   407   $ hg -R k ci -m b
   409   $ hg -R k ci -m b
   408   $ hg -R k up 0
   410   $ hg -R k up 0
   409   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   411   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   410 
   412 
   464 
   466 
   465   $ hg init n
   467   $ hg init n
   466   $ cd n
   468   $ cd n
   467   $ hg branch A
   469   $ hg branch A
   468   marked working directory as branch A
   470   marked working directory as branch A
       
   471   (branches are permanent and global, did you want a bookmark?)
   469   $ echo a >a
   472   $ echo a >a
   470   $ hg ci -Ama
   473   $ hg ci -Ama
   471   adding a
   474   adding a
   472   $ hg branch B
   475   $ hg branch B
   473   marked working directory as branch B
   476   marked working directory as branch B
       
   477   (branches are permanent and global, did you want a bookmark?)
   474   $ echo b >b
   478   $ echo b >b
   475   $ hg ci -Amb
   479   $ hg ci -Amb
   476   adding b
   480   adding b
   477 
   481 
   478 b is now branch head of B, and a topological head
   482 b is now branch head of B, and a topological head
   541 
   545 
   542   $ hg init o
   546   $ hg init o
   543   $ cd o
   547   $ cd o
   544   $ hg branch A
   548   $ hg branch A
   545   marked working directory as branch A
   549   marked working directory as branch A
       
   550   (branches are permanent and global, did you want a bookmark?)
   546   $ echo a >a
   551   $ echo a >a
   547   $ hg ci -Ama
   552   $ hg ci -Ama
   548   adding a
   553   adding a
   549   $ hg branch B
   554   $ hg branch B
   550   marked working directory as branch B
   555   marked working directory as branch B
       
   556   (branches are permanent and global, did you want a bookmark?)
   551   $ echo b >b
   557   $ echo b >b
   552   $ hg ci -Amb
   558   $ hg ci -Amb
   553   adding b
   559   adding b
   554 
   560 
   555 b is now branch head of B, and a topological head
   561 b is now branch head of B, and a topological head
   627 
   633 
   628   $ hg init p
   634   $ hg init p
   629   $ cd p
   635   $ cd p
   630   $ hg branch A
   636   $ hg branch A
   631   marked working directory as branch A
   637   marked working directory as branch A
       
   638   (branches are permanent and global, did you want a bookmark?)
   632   $ echo a0 >a
   639   $ echo a0 >a
   633   $ hg ci -Ama0
   640   $ hg ci -Ama0
   634   adding a
   641   adding a
   635   $ echo a1 >a
   642   $ echo a1 >a
   636   $ hg ci -ma1
   643   $ hg ci -ma1
   637   $ hg up null
   644   $ hg up null
   638   0 files updated, 0 files merged, 1 files removed, 0 files unresolved
   645   0 files updated, 0 files merged, 1 files removed, 0 files unresolved
   639   $ hg branch B
   646   $ hg branch B
   640   marked working directory as branch B
   647   marked working directory as branch B
       
   648   (branches are permanent and global, did you want a bookmark?)
   641   $ echo b0 >b
   649   $ echo b0 >b
   642   $ hg ci -Amb0
   650   $ hg ci -Amb0
   643   adding b
   651   adding b
   644   $ echo b1 >b
   652   $ echo b1 >b
   645   $ hg ci -mb1
   653   $ hg ci -mb1
   650 
   658 
   651   $ hg up A
   659   $ hg up A
   652   1 files updated, 0 files merged, 1 files removed, 0 files unresolved
   660   1 files updated, 0 files merged, 1 files removed, 0 files unresolved
   653   $ hg branch -f B
   661   $ hg branch -f B
   654   marked working directory as branch B
   662   marked working directory as branch B
       
   663   (branches are permanent and global, did you want a bookmark?)
   655   $ echo a3 >a
   664   $ echo a3 >a
   656   $ hg ci -ma3
   665   $ hg ci -ma3
   657   created new head
   666   created new head
   658   $ hg up 3
   667   $ hg up 3
   659   1 files updated, 0 files merged, 1 files removed, 0 files unresolved
   668   1 files updated, 0 files merged, 1 files removed, 0 files unresolved
   660   $ hg branch -f A
   669   $ hg branch -f A
   661   marked working directory as branch A
   670   marked working directory as branch A
       
   671   (branches are permanent and global, did you want a bookmark?)
   662   $ echo b3 >b
   672   $ echo b3 >b
   663   $ hg ci -mb3
   673   $ hg ci -mb3
   664   created new head
   674   created new head
   665 
   675 
   666 glog of local:
   676 glog of local: