tests/test-infinitepush-bundlestore.t
changeset 50803 609a3b8058c3
parent 50802 cf0502231d56
child 50806 337bc83c1275
equal deleted inserted replaced
50802:cf0502231d56 50803:609a3b8058c3
     1 #require no-reposimplestore no-chg
       
     2 
       
     3 XXX-CHG this test hangs if `hg` is really `chg`. This was hidden by the use of
       
     4 `alias hg=chg` by run-tests.py. With such alias removed, this test is revealed
       
     5 buggy. This need to be resolved sooner than later.
       
     6 
       
     7 
       
     8 Testing infinipush extension and the confi options provided by it
       
     9 
       
    10 Create an ondisk bundlestore in .hg/scratchbranches
       
    11   $ . "$TESTDIR/library-infinitepush.sh"
       
    12   $ cp $HGRCPATH $TESTTMP/defaulthgrc
       
    13   $ setupcommon
       
    14   $ mkcommit() {
       
    15   >    echo "$1" > "$1"
       
    16   >    hg add "$1"
       
    17   >    hg ci -m "$1"
       
    18   > }
       
    19   $ hg init repo
       
    20   IMPORTANT: if you use this extension, please contact
       
    21   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
    22   unused and barring learning of users of this functionality, we drop this
       
    23   extension in Mercurial 6.6.
       
    24   $ cd repo
       
    25 
       
    26 Check that we can send a scratch on the server and it does not show there in
       
    27 the history but is stored on disk
       
    28   $ setupserver
       
    29   $ cd ..
       
    30   $ hg clone ssh://user@dummy/repo client -q
       
    31   remote: IMPORTANT: if you use this extension, please contact
       
    32   remote: mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
    33   remote: unused and barring learning of users of this functionality, we drop this
       
    34   remote: extension in Mercurial 6.6.
       
    35   IMPORTANT: if you use this extension, please contact
       
    36   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
    37   unused and barring learning of users of this functionality, we drop this
       
    38   extension in Mercurial 6.6.
       
    39   IMPORTANT: if you use this extension, please contact
       
    40   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
    41   unused and barring learning of users of this functionality, we drop this
       
    42   extension in Mercurial 6.6.
       
    43   $ cd client
       
    44   $ mkcommit initialcommit
       
    45   IMPORTANT: if you use this extension, please contact
       
    46   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
    47   unused and barring learning of users of this functionality, we drop this
       
    48   extension in Mercurial 6.6.
       
    49   IMPORTANT: if you use this extension, please contact
       
    50   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
    51   unused and barring learning of users of this functionality, we drop this
       
    52   extension in Mercurial 6.6.
       
    53   $ hg push -r .
       
    54   IMPORTANT: if you use this extension, please contact
       
    55   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
    56   unused and barring learning of users of this functionality, we drop this
       
    57   extension in Mercurial 6.6.
       
    58   pushing to ssh://user@dummy/repo
       
    59   remote: IMPORTANT: if you use this extension, please contact
       
    60   remote: mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
    61   remote: unused and barring learning of users of this functionality, we drop this
       
    62   remote: extension in Mercurial 6.6.
       
    63   IMPORTANT: if you use this extension, please contact
       
    64   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
    65   unused and barring learning of users of this functionality, we drop this
       
    66   extension in Mercurial 6.6.
       
    67   searching for changes
       
    68   remote: adding changesets
       
    69   remote: adding manifests
       
    70   remote: adding file changes
       
    71   remote: added 1 changesets with 1 changes to 1 files
       
    72   $ mkcommit scratchcommit
       
    73   IMPORTANT: if you use this extension, please contact
       
    74   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
    75   unused and barring learning of users of this functionality, we drop this
       
    76   extension in Mercurial 6.6.
       
    77   IMPORTANT: if you use this extension, please contact
       
    78   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
    79   unused and barring learning of users of this functionality, we drop this
       
    80   extension in Mercurial 6.6.
       
    81   $ hg push -r . -B scratch/mybranch
       
    82   IMPORTANT: if you use this extension, please contact
       
    83   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
    84   unused and barring learning of users of this functionality, we drop this
       
    85   extension in Mercurial 6.6.
       
    86   pushing to ssh://user@dummy/repo
       
    87   remote: IMPORTANT: if you use this extension, please contact
       
    88   remote: mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
    89   remote: unused and barring learning of users of this functionality, we drop this
       
    90   remote: extension in Mercurial 6.6.
       
    91   IMPORTANT: if you use this extension, please contact
       
    92   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
    93   unused and barring learning of users of this functionality, we drop this
       
    94   extension in Mercurial 6.6.
       
    95   searching for changes
       
    96   remote: IMPORTANT: if you use this extension, please contact
       
    97   remote: mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
    98   remote: unused and barring learning of users of this functionality, we drop this
       
    99   remote: extension in Mercurial 6.6.
       
   100   remote: pushing 1 commit:
       
   101   remote:     20759b6926ce  scratchcommit
       
   102   $ hg log -G
       
   103   IMPORTANT: if you use this extension, please contact
       
   104   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   105   unused and barring learning of users of this functionality, we drop this
       
   106   extension in Mercurial 6.6.
       
   107   @  changeset:   1:20759b6926ce
       
   108   |  bookmark:    scratch/mybranch
       
   109   |  tag:         tip
       
   110   |  user:        test
       
   111   |  date:        Thu Jan 01 00:00:00 1970 +0000
       
   112   |  summary:     scratchcommit
       
   113   |
       
   114   o  changeset:   0:67145f466344
       
   115      user:        test
       
   116      date:        Thu Jan 01 00:00:00 1970 +0000
       
   117      summary:     initialcommit
       
   118   
       
   119   $ hg log -G -R ../repo
       
   120   IMPORTANT: if you use this extension, please contact
       
   121   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   122   unused and barring learning of users of this functionality, we drop this
       
   123   extension in Mercurial 6.6.
       
   124   o  changeset:   0:67145f466344
       
   125      tag:         tip
       
   126      user:        test
       
   127      date:        Thu Jan 01 00:00:00 1970 +0000
       
   128      summary:     initialcommit
       
   129   
       
   130   $ find ../repo/.hg/scratchbranches | sort
       
   131   ../repo/.hg/scratchbranches
       
   132   ../repo/.hg/scratchbranches/filebundlestore
       
   133   ../repo/.hg/scratchbranches/filebundlestore/b9
       
   134   ../repo/.hg/scratchbranches/filebundlestore/b9/e1
       
   135   ../repo/.hg/scratchbranches/filebundlestore/b9/e1/b9e1ee5f93fb6d7c42496fc176c09839639dd9cc
       
   136   ../repo/.hg/scratchbranches/index
       
   137   ../repo/.hg/scratchbranches/index/bookmarkmap
       
   138   ../repo/.hg/scratchbranches/index/bookmarkmap/scratch
       
   139   ../repo/.hg/scratchbranches/index/bookmarkmap/scratch/mybranch
       
   140   ../repo/.hg/scratchbranches/index/nodemap
       
   141   ../repo/.hg/scratchbranches/index/nodemap/20759b6926ce827d5a8c73eb1fa9726d6f7defb2
       
   142 
       
   143 From another client we can get the scratchbranch if we ask for it explicitely
       
   144 
       
   145   $ cd ..
       
   146   $ hg clone ssh://user@dummy/repo client2 -q
       
   147   remote: IMPORTANT: if you use this extension, please contact
       
   148   remote: mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   149   remote: unused and barring learning of users of this functionality, we drop this
       
   150   remote: extension in Mercurial 6.6.
       
   151   IMPORTANT: if you use this extension, please contact
       
   152   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   153   unused and barring learning of users of this functionality, we drop this
       
   154   extension in Mercurial 6.6.
       
   155   IMPORTANT: if you use this extension, please contact
       
   156   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   157   unused and barring learning of users of this functionality, we drop this
       
   158   extension in Mercurial 6.6.
       
   159   $ cd client2
       
   160   $ hg pull -B scratch/mybranch --traceback
       
   161   IMPORTANT: if you use this extension, please contact
       
   162   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   163   unused and barring learning of users of this functionality, we drop this
       
   164   extension in Mercurial 6.6.
       
   165   remote: IMPORTANT: if you use this extension, please contact
       
   166   remote: mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   167   remote: unused and barring learning of users of this functionality, we drop this
       
   168   remote: extension in Mercurial 6.6.
       
   169   IMPORTANT: if you use this extension, please contact
       
   170   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   171   unused and barring learning of users of this functionality, we drop this
       
   172   extension in Mercurial 6.6.
       
   173   pulling from ssh://user@dummy/repo
       
   174   remote: IMPORTANT: if you use this extension, please contact
       
   175   remote: mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   176   remote: unused and barring learning of users of this functionality, we drop this
       
   177   remote: extension in Mercurial 6.6.
       
   178   IMPORTANT: if you use this extension, please contact
       
   179   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   180   unused and barring learning of users of this functionality, we drop this
       
   181   extension in Mercurial 6.6.
       
   182   searching for changes
       
   183   remote: IMPORTANT: if you use this extension, please contact
       
   184   remote: mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   185   remote: unused and barring learning of users of this functionality, we drop this
       
   186   remote: extension in Mercurial 6.6.
       
   187   adding changesets
       
   188   adding manifests
       
   189   adding file changes
       
   190   added 1 changesets with 1 changes to 1 files
       
   191   new changesets 20759b6926ce (1 drafts)
       
   192   (run 'hg update' to get a working copy)
       
   193   $ hg log -G
       
   194   IMPORTANT: if you use this extension, please contact
       
   195   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   196   unused and barring learning of users of this functionality, we drop this
       
   197   extension in Mercurial 6.6.
       
   198   o  changeset:   1:20759b6926ce
       
   199   |  bookmark:    scratch/mybranch
       
   200   |  tag:         tip
       
   201   |  user:        test
       
   202   |  date:        Thu Jan 01 00:00:00 1970 +0000
       
   203   |  summary:     scratchcommit
       
   204   |
       
   205   @  changeset:   0:67145f466344
       
   206      user:        test
       
   207      date:        Thu Jan 01 00:00:00 1970 +0000
       
   208      summary:     initialcommit
       
   209   
       
   210   $ cd ..
       
   211 
       
   212 Push to non-scratch bookmark
       
   213 
       
   214   $ cd client
       
   215   $ hg up 0
       
   216   IMPORTANT: if you use this extension, please contact
       
   217   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   218   unused and barring learning of users of this functionality, we drop this
       
   219   extension in Mercurial 6.6.
       
   220   0 files updated, 0 files merged, 1 files removed, 0 files unresolved
       
   221   $ mkcommit newcommit
       
   222   IMPORTANT: if you use this extension, please contact
       
   223   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   224   unused and barring learning of users of this functionality, we drop this
       
   225   extension in Mercurial 6.6.
       
   226   IMPORTANT: if you use this extension, please contact
       
   227   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   228   unused and barring learning of users of this functionality, we drop this
       
   229   extension in Mercurial 6.6.
       
   230   created new head
       
   231   $ hg push -r .
       
   232   IMPORTANT: if you use this extension, please contact
       
   233   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   234   unused and barring learning of users of this functionality, we drop this
       
   235   extension in Mercurial 6.6.
       
   236   pushing to ssh://user@dummy/repo
       
   237   remote: IMPORTANT: if you use this extension, please contact
       
   238   remote: mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   239   remote: unused and barring learning of users of this functionality, we drop this
       
   240   remote: extension in Mercurial 6.6.
       
   241   IMPORTANT: if you use this extension, please contact
       
   242   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   243   unused and barring learning of users of this functionality, we drop this
       
   244   extension in Mercurial 6.6.
       
   245   searching for changes
       
   246   remote: adding changesets
       
   247   remote: adding manifests
       
   248   remote: adding file changes
       
   249   remote: added 1 changesets with 1 changes to 1 files
       
   250   $ hg log -G -T '{desc} {phase} {bookmarks}'
       
   251   IMPORTANT: if you use this extension, please contact
       
   252   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   253   unused and barring learning of users of this functionality, we drop this
       
   254   extension in Mercurial 6.6.
       
   255   @  newcommit public
       
   256   |
       
   257   | o  scratchcommit draft scratch/mybranch
       
   258   |/
       
   259   o  initialcommit public
       
   260   
       
   261 
       
   262 Push to scratch branch
       
   263   $ cd ../client2
       
   264   $ hg up -q scratch/mybranch
       
   265   IMPORTANT: if you use this extension, please contact
       
   266   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   267   unused and barring learning of users of this functionality, we drop this
       
   268   extension in Mercurial 6.6.
       
   269   $ mkcommit 'new scratch commit'
       
   270   IMPORTANT: if you use this extension, please contact
       
   271   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   272   unused and barring learning of users of this functionality, we drop this
       
   273   extension in Mercurial 6.6.
       
   274   IMPORTANT: if you use this extension, please contact
       
   275   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   276   unused and barring learning of users of this functionality, we drop this
       
   277   extension in Mercurial 6.6.
       
   278   $ hg push -r . -B scratch/mybranch
       
   279   IMPORTANT: if you use this extension, please contact
       
   280   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   281   unused and barring learning of users of this functionality, we drop this
       
   282   extension in Mercurial 6.6.
       
   283   pushing to ssh://user@dummy/repo
       
   284   remote: IMPORTANT: if you use this extension, please contact
       
   285   remote: mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   286   remote: unused and barring learning of users of this functionality, we drop this
       
   287   remote: extension in Mercurial 6.6.
       
   288   IMPORTANT: if you use this extension, please contact
       
   289   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   290   unused and barring learning of users of this functionality, we drop this
       
   291   extension in Mercurial 6.6.
       
   292   searching for changes
       
   293   remote: IMPORTANT: if you use this extension, please contact
       
   294   remote: mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   295   remote: unused and barring learning of users of this functionality, we drop this
       
   296   remote: extension in Mercurial 6.6.
       
   297   remote: pushing 2 commits:
       
   298   remote:     20759b6926ce  scratchcommit
       
   299   remote:     1de1d7d92f89  new scratch commit
       
   300   $ hg log -G -T '{desc} {phase} {bookmarks}'
       
   301   IMPORTANT: if you use this extension, please contact
       
   302   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   303   unused and barring learning of users of this functionality, we drop this
       
   304   extension in Mercurial 6.6.
       
   305   @  new scratch commit draft scratch/mybranch
       
   306   |
       
   307   o  scratchcommit draft
       
   308   |
       
   309   o  initialcommit public
       
   310   
       
   311   $ scratchnodes
       
   312   1de1d7d92f8965260391d0513fe8a8d5973d3042 bed63daed3beba97fff2e819a148cf415c217a85
       
   313   20759b6926ce827d5a8c73eb1fa9726d6f7defb2 bed63daed3beba97fff2e819a148cf415c217a85
       
   314 
       
   315   $ scratchbookmarks
       
   316   scratch/mybranch 1de1d7d92f8965260391d0513fe8a8d5973d3042
       
   317 
       
   318 Push scratch bookmark with no new revs
       
   319   $ hg push -r . -B scratch/anotherbranch
       
   320   IMPORTANT: if you use this extension, please contact
       
   321   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   322   unused and barring learning of users of this functionality, we drop this
       
   323   extension in Mercurial 6.6.
       
   324   pushing to ssh://user@dummy/repo
       
   325   remote: IMPORTANT: if you use this extension, please contact
       
   326   remote: mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   327   remote: unused and barring learning of users of this functionality, we drop this
       
   328   remote: extension in Mercurial 6.6.
       
   329   IMPORTANT: if you use this extension, please contact
       
   330   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   331   unused and barring learning of users of this functionality, we drop this
       
   332   extension in Mercurial 6.6.
       
   333   searching for changes
       
   334   remote: IMPORTANT: if you use this extension, please contact
       
   335   remote: mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   336   remote: unused and barring learning of users of this functionality, we drop this
       
   337   remote: extension in Mercurial 6.6.
       
   338   remote: pushing 2 commits:
       
   339   remote:     20759b6926ce  scratchcommit
       
   340   remote:     1de1d7d92f89  new scratch commit
       
   341   $ hg log -G -T '{desc} {phase} {bookmarks}'
       
   342   IMPORTANT: if you use this extension, please contact
       
   343   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   344   unused and barring learning of users of this functionality, we drop this
       
   345   extension in Mercurial 6.6.
       
   346   @  new scratch commit draft scratch/anotherbranch scratch/mybranch
       
   347   |
       
   348   o  scratchcommit draft
       
   349   |
       
   350   o  initialcommit public
       
   351   
       
   352   $ scratchbookmarks
       
   353   scratch/anotherbranch 1de1d7d92f8965260391d0513fe8a8d5973d3042
       
   354   scratch/mybranch 1de1d7d92f8965260391d0513fe8a8d5973d3042
       
   355 
       
   356 Pull scratch and non-scratch bookmark at the same time
       
   357 
       
   358   $ hg -R ../repo book newbook
       
   359   IMPORTANT: if you use this extension, please contact
       
   360   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   361   unused and barring learning of users of this functionality, we drop this
       
   362   extension in Mercurial 6.6.
       
   363   $ cd ../client
       
   364   $ hg pull -B newbook -B scratch/mybranch --traceback
       
   365   IMPORTANT: if you use this extension, please contact
       
   366   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   367   unused and barring learning of users of this functionality, we drop this
       
   368   extension in Mercurial 6.6.
       
   369   remote: IMPORTANT: if you use this extension, please contact
       
   370   remote: mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   371   remote: unused and barring learning of users of this functionality, we drop this
       
   372   remote: extension in Mercurial 6.6.
       
   373   IMPORTANT: if you use this extension, please contact
       
   374   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   375   unused and barring learning of users of this functionality, we drop this
       
   376   extension in Mercurial 6.6.
       
   377   pulling from ssh://user@dummy/repo
       
   378   remote: IMPORTANT: if you use this extension, please contact
       
   379   remote: mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   380   remote: unused and barring learning of users of this functionality, we drop this
       
   381   remote: extension in Mercurial 6.6.
       
   382   IMPORTANT: if you use this extension, please contact
       
   383   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   384   unused and barring learning of users of this functionality, we drop this
       
   385   extension in Mercurial 6.6.
       
   386   searching for changes
       
   387   remote: IMPORTANT: if you use this extension, please contact
       
   388   remote: mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   389   remote: unused and barring learning of users of this functionality, we drop this
       
   390   remote: extension in Mercurial 6.6.
       
   391   adding changesets
       
   392   adding manifests
       
   393   adding file changes
       
   394   adding remote bookmark newbook
       
   395   added 1 changesets with 1 changes to 2 files
       
   396   new changesets 1de1d7d92f89 (1 drafts)
       
   397   (run 'hg update' to get a working copy)
       
   398   $ hg log -G -T '{desc} {phase} {bookmarks}'
       
   399   IMPORTANT: if you use this extension, please contact
       
   400   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   401   unused and barring learning of users of this functionality, we drop this
       
   402   extension in Mercurial 6.6.
       
   403   o  new scratch commit draft scratch/mybranch
       
   404   |
       
   405   | @  newcommit public
       
   406   | |
       
   407   o |  scratchcommit draft
       
   408   |/
       
   409   o  initialcommit public
       
   410   
       
   411 
       
   412 Push scratch revision without bookmark with --bundle-store
       
   413 
       
   414   $ hg up -q tip
       
   415   IMPORTANT: if you use this extension, please contact
       
   416   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   417   unused and barring learning of users of this functionality, we drop this
       
   418   extension in Mercurial 6.6.
       
   419   $ mkcommit scratchcommitnobook
       
   420   IMPORTANT: if you use this extension, please contact
       
   421   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   422   unused and barring learning of users of this functionality, we drop this
       
   423   extension in Mercurial 6.6.
       
   424   IMPORTANT: if you use this extension, please contact
       
   425   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   426   unused and barring learning of users of this functionality, we drop this
       
   427   extension in Mercurial 6.6.
       
   428   $ hg log -G -T '{desc} {phase} {bookmarks}'
       
   429   IMPORTANT: if you use this extension, please contact
       
   430   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   431   unused and barring learning of users of this functionality, we drop this
       
   432   extension in Mercurial 6.6.
       
   433   @  scratchcommitnobook draft
       
   434   |
       
   435   o  new scratch commit draft scratch/mybranch
       
   436   |
       
   437   | o  newcommit public
       
   438   | |
       
   439   o |  scratchcommit draft
       
   440   |/
       
   441   o  initialcommit public
       
   442   
       
   443   $ hg push -r . --bundle-store
       
   444   IMPORTANT: if you use this extension, please contact
       
   445   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   446   unused and barring learning of users of this functionality, we drop this
       
   447   extension in Mercurial 6.6.
       
   448   pushing to ssh://user@dummy/repo
       
   449   remote: IMPORTANT: if you use this extension, please contact
       
   450   remote: mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   451   remote: unused and barring learning of users of this functionality, we drop this
       
   452   remote: extension in Mercurial 6.6.
       
   453   IMPORTANT: if you use this extension, please contact
       
   454   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   455   unused and barring learning of users of this functionality, we drop this
       
   456   extension in Mercurial 6.6.
       
   457   searching for changes
       
   458   remote: IMPORTANT: if you use this extension, please contact
       
   459   remote: mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   460   remote: unused and barring learning of users of this functionality, we drop this
       
   461   remote: extension in Mercurial 6.6.
       
   462   remote: pushing 3 commits:
       
   463   remote:     20759b6926ce  scratchcommit
       
   464   remote:     1de1d7d92f89  new scratch commit
       
   465   remote:     2b5d271c7e0d  scratchcommitnobook
       
   466   $ hg -R ../repo log -G -T '{desc} {phase}'
       
   467   IMPORTANT: if you use this extension, please contact
       
   468   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   469   unused and barring learning of users of this functionality, we drop this
       
   470   extension in Mercurial 6.6.
       
   471   o  newcommit public
       
   472   |
       
   473   o  initialcommit public
       
   474   
       
   475 
       
   476   $ scratchnodes
       
   477   1de1d7d92f8965260391d0513fe8a8d5973d3042 66fa08ff107451320512817bed42b7f467a1bec3
       
   478   20759b6926ce827d5a8c73eb1fa9726d6f7defb2 66fa08ff107451320512817bed42b7f467a1bec3
       
   479   2b5d271c7e0d25d811359a314d413ebcc75c9524 66fa08ff107451320512817bed42b7f467a1bec3
       
   480 
       
   481 Test with pushrebase
       
   482   $ mkcommit scratchcommitwithpushrebase
       
   483   IMPORTANT: if you use this extension, please contact
       
   484   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   485   unused and barring learning of users of this functionality, we drop this
       
   486   extension in Mercurial 6.6.
       
   487   IMPORTANT: if you use this extension, please contact
       
   488   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   489   unused and barring learning of users of this functionality, we drop this
       
   490   extension in Mercurial 6.6.
       
   491   $ hg push -r . -B scratch/mybranch
       
   492   IMPORTANT: if you use this extension, please contact
       
   493   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   494   unused and barring learning of users of this functionality, we drop this
       
   495   extension in Mercurial 6.6.
       
   496   pushing to ssh://user@dummy/repo
       
   497   remote: IMPORTANT: if you use this extension, please contact
       
   498   remote: mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   499   remote: unused and barring learning of users of this functionality, we drop this
       
   500   remote: extension in Mercurial 6.6.
       
   501   IMPORTANT: if you use this extension, please contact
       
   502   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   503   unused and barring learning of users of this functionality, we drop this
       
   504   extension in Mercurial 6.6.
       
   505   searching for changes
       
   506   remote: IMPORTANT: if you use this extension, please contact
       
   507   remote: mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   508   remote: unused and barring learning of users of this functionality, we drop this
       
   509   remote: extension in Mercurial 6.6.
       
   510   remote: pushing 4 commits:
       
   511   remote:     20759b6926ce  scratchcommit
       
   512   remote:     1de1d7d92f89  new scratch commit
       
   513   remote:     2b5d271c7e0d  scratchcommitnobook
       
   514   remote:     d8c4f54ab678  scratchcommitwithpushrebase
       
   515   $ hg -R ../repo log -G -T '{desc} {phase}'
       
   516   IMPORTANT: if you use this extension, please contact
       
   517   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   518   unused and barring learning of users of this functionality, we drop this
       
   519   extension in Mercurial 6.6.
       
   520   o  newcommit public
       
   521   |
       
   522   o  initialcommit public
       
   523   
       
   524   $ scratchnodes
       
   525   1de1d7d92f8965260391d0513fe8a8d5973d3042 e3cb2ac50f9e1e6a5ead3217fc21236c84af4397
       
   526   20759b6926ce827d5a8c73eb1fa9726d6f7defb2 e3cb2ac50f9e1e6a5ead3217fc21236c84af4397
       
   527   2b5d271c7e0d25d811359a314d413ebcc75c9524 e3cb2ac50f9e1e6a5ead3217fc21236c84af4397
       
   528   d8c4f54ab678fd67cb90bb3f272a2dc6513a59a7 e3cb2ac50f9e1e6a5ead3217fc21236c84af4397
       
   529 
       
   530 Change the order of pushrebase and infinitepush
       
   531   $ mkcommit scratchcommitwithpushrebase2
       
   532   IMPORTANT: if you use this extension, please contact
       
   533   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   534   unused and barring learning of users of this functionality, we drop this
       
   535   extension in Mercurial 6.6.
       
   536   IMPORTANT: if you use this extension, please contact
       
   537   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   538   unused and barring learning of users of this functionality, we drop this
       
   539   extension in Mercurial 6.6.
       
   540   $ hg push -r . -B scratch/mybranch
       
   541   IMPORTANT: if you use this extension, please contact
       
   542   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   543   unused and barring learning of users of this functionality, we drop this
       
   544   extension in Mercurial 6.6.
       
   545   pushing to ssh://user@dummy/repo
       
   546   remote: IMPORTANT: if you use this extension, please contact
       
   547   remote: mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   548   remote: unused and barring learning of users of this functionality, we drop this
       
   549   remote: extension in Mercurial 6.6.
       
   550   IMPORTANT: if you use this extension, please contact
       
   551   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   552   unused and barring learning of users of this functionality, we drop this
       
   553   extension in Mercurial 6.6.
       
   554   searching for changes
       
   555   remote: IMPORTANT: if you use this extension, please contact
       
   556   remote: mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   557   remote: unused and barring learning of users of this functionality, we drop this
       
   558   remote: extension in Mercurial 6.6.
       
   559   remote: pushing 5 commits:
       
   560   remote:     20759b6926ce  scratchcommit
       
   561   remote:     1de1d7d92f89  new scratch commit
       
   562   remote:     2b5d271c7e0d  scratchcommitnobook
       
   563   remote:     d8c4f54ab678  scratchcommitwithpushrebase
       
   564   remote:     6c10d49fe927  scratchcommitwithpushrebase2
       
   565   $ hg -R ../repo log -G -T '{desc} {phase}'
       
   566   IMPORTANT: if you use this extension, please contact
       
   567   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   568   unused and barring learning of users of this functionality, we drop this
       
   569   extension in Mercurial 6.6.
       
   570   o  newcommit public
       
   571   |
       
   572   o  initialcommit public
       
   573   
       
   574   $ scratchnodes
       
   575   1de1d7d92f8965260391d0513fe8a8d5973d3042 cd0586065eaf8b483698518f5fc32531e36fd8e0
       
   576   20759b6926ce827d5a8c73eb1fa9726d6f7defb2 cd0586065eaf8b483698518f5fc32531e36fd8e0
       
   577   2b5d271c7e0d25d811359a314d413ebcc75c9524 cd0586065eaf8b483698518f5fc32531e36fd8e0
       
   578   6c10d49fe92751666c40263f96721b918170d3da cd0586065eaf8b483698518f5fc32531e36fd8e0
       
   579   d8c4f54ab678fd67cb90bb3f272a2dc6513a59a7 cd0586065eaf8b483698518f5fc32531e36fd8e0
       
   580 
       
   581 Non-fastforward scratch bookmark push
       
   582 
       
   583   $ hg log -GT "{rev}:{node} {desc}\n"
       
   584   IMPORTANT: if you use this extension, please contact
       
   585   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   586   unused and barring learning of users of this functionality, we drop this
       
   587   extension in Mercurial 6.6.
       
   588   @  6:6c10d49fe92751666c40263f96721b918170d3da scratchcommitwithpushrebase2
       
   589   |
       
   590   o  5:d8c4f54ab678fd67cb90bb3f272a2dc6513a59a7 scratchcommitwithpushrebase
       
   591   |
       
   592   o  4:2b5d271c7e0d25d811359a314d413ebcc75c9524 scratchcommitnobook
       
   593   |
       
   594   o  3:1de1d7d92f8965260391d0513fe8a8d5973d3042 new scratch commit
       
   595   |
       
   596   | o  2:91894e11e8255bf41aa5434b7b98e8b2aa2786eb newcommit
       
   597   | |
       
   598   o |  1:20759b6926ce827d5a8c73eb1fa9726d6f7defb2 scratchcommit
       
   599   |/
       
   600   o  0:67145f4663446a9580364f70034fea6e21293b6f initialcommit
       
   601   
       
   602   $ hg up 6c10d49fe927
       
   603   IMPORTANT: if you use this extension, please contact
       
   604   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   605   unused and barring learning of users of this functionality, we drop this
       
   606   extension in Mercurial 6.6.
       
   607   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
       
   608   $ echo 1 > amend
       
   609   $ hg add amend
       
   610   IMPORTANT: if you use this extension, please contact
       
   611   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   612   unused and barring learning of users of this functionality, we drop this
       
   613   extension in Mercurial 6.6.
       
   614   $ hg ci --amend -m 'scratch amended commit'
       
   615   IMPORTANT: if you use this extension, please contact
       
   616   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   617   unused and barring learning of users of this functionality, we drop this
       
   618   extension in Mercurial 6.6.
       
   619   saved backup bundle to $TESTTMP/client/.hg/strip-backup/6c10d49fe927-c99ffec5-amend.hg
       
   620   $ hg log -G -T '{desc} {phase} {bookmarks}'
       
   621   IMPORTANT: if you use this extension, please contact
       
   622   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   623   unused and barring learning of users of this functionality, we drop this
       
   624   extension in Mercurial 6.6.
       
   625   @  scratch amended commit draft scratch/mybranch
       
   626   |
       
   627   o  scratchcommitwithpushrebase draft
       
   628   |
       
   629   o  scratchcommitnobook draft
       
   630   |
       
   631   o  new scratch commit draft
       
   632   |
       
   633   | o  newcommit public
       
   634   | |
       
   635   o |  scratchcommit draft
       
   636   |/
       
   637   o  initialcommit public
       
   638   
       
   639 
       
   640   $ scratchbookmarks
       
   641   scratch/anotherbranch 1de1d7d92f8965260391d0513fe8a8d5973d3042
       
   642   scratch/mybranch 6c10d49fe92751666c40263f96721b918170d3da
       
   643   $ hg push -r . -B scratch/mybranch
       
   644   IMPORTANT: if you use this extension, please contact
       
   645   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   646   unused and barring learning of users of this functionality, we drop this
       
   647   extension in Mercurial 6.6.
       
   648   pushing to ssh://user@dummy/repo
       
   649   remote: IMPORTANT: if you use this extension, please contact
       
   650   remote: mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   651   remote: unused and barring learning of users of this functionality, we drop this
       
   652   remote: extension in Mercurial 6.6.
       
   653   IMPORTANT: if you use this extension, please contact
       
   654   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   655   unused and barring learning of users of this functionality, we drop this
       
   656   extension in Mercurial 6.6.
       
   657   searching for changes
       
   658   remote: IMPORTANT: if you use this extension, please contact
       
   659   remote: mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   660   remote: unused and barring learning of users of this functionality, we drop this
       
   661   remote: extension in Mercurial 6.6.
       
   662   remote: pushing 5 commits:
       
   663   remote:     20759b6926ce  scratchcommit
       
   664   remote:     1de1d7d92f89  new scratch commit
       
   665   remote:     2b5d271c7e0d  scratchcommitnobook
       
   666   remote:     d8c4f54ab678  scratchcommitwithpushrebase
       
   667   remote:     8872775dd97a  scratch amended commit
       
   668   $ scratchbookmarks
       
   669   scratch/anotherbranch 1de1d7d92f8965260391d0513fe8a8d5973d3042
       
   670   scratch/mybranch 8872775dd97a750e1533dc1fbbca665644b32547
       
   671   $ hg log -G -T '{desc} {phase} {bookmarks}'
       
   672   IMPORTANT: if you use this extension, please contact
       
   673   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   674   unused and barring learning of users of this functionality, we drop this
       
   675   extension in Mercurial 6.6.
       
   676   @  scratch amended commit draft scratch/mybranch
       
   677   |
       
   678   o  scratchcommitwithpushrebase draft
       
   679   |
       
   680   o  scratchcommitnobook draft
       
   681   |
       
   682   o  new scratch commit draft
       
   683   |
       
   684   | o  newcommit public
       
   685   | |
       
   686   o |  scratchcommit draft
       
   687   |/
       
   688   o  initialcommit public
       
   689   
       
   690 Check that push path is not ignored. Add new path to the hgrc
       
   691   $ cat >> .hg/hgrc << EOF
       
   692   > [paths]
       
   693   > peer=ssh://user@dummy/client2
       
   694   > EOF
       
   695 
       
   696 Checkout last non-scrath commit
       
   697   $ hg up 91894e11e8255
       
   698   IMPORTANT: if you use this extension, please contact
       
   699   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   700   unused and barring learning of users of this functionality, we drop this
       
   701   extension in Mercurial 6.6.
       
   702   1 files updated, 0 files merged, 6 files removed, 0 files unresolved
       
   703   $ mkcommit peercommit
       
   704   IMPORTANT: if you use this extension, please contact
       
   705   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   706   unused and barring learning of users of this functionality, we drop this
       
   707   extension in Mercurial 6.6.
       
   708   IMPORTANT: if you use this extension, please contact
       
   709   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   710   unused and barring learning of users of this functionality, we drop this
       
   711   extension in Mercurial 6.6.
       
   712 Use --force because this push creates new head
       
   713   $ hg push peer -r . -f
       
   714   IMPORTANT: if you use this extension, please contact
       
   715   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   716   unused and barring learning of users of this functionality, we drop this
       
   717   extension in Mercurial 6.6.
       
   718   pushing to ssh://user@dummy/client2
       
   719   remote: IMPORTANT: if you use this extension, please contact
       
   720   remote: mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   721   remote: unused and barring learning of users of this functionality, we drop this
       
   722   remote: extension in Mercurial 6.6.
       
   723   IMPORTANT: if you use this extension, please contact
       
   724   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   725   unused and barring learning of users of this functionality, we drop this
       
   726   extension in Mercurial 6.6.
       
   727   searching for changes
       
   728   remote: adding changesets
       
   729   remote: adding manifests
       
   730   remote: adding file changes
       
   731   remote: added 2 changesets with 2 changes to 2 files (+1 heads)
       
   732   $ hg -R ../repo log -G -T '{desc} {phase} {bookmarks}'
       
   733   IMPORTANT: if you use this extension, please contact
       
   734   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   735   unused and barring learning of users of this functionality, we drop this
       
   736   extension in Mercurial 6.6.
       
   737   o  newcommit public
       
   738   |
       
   739   o  initialcommit public
       
   740   
       
   741   $ hg -R ../client2 log -G -T '{desc} {phase} {bookmarks}'
       
   742   IMPORTANT: if you use this extension, please contact
       
   743   mercurial-devel@mercurial-scm.org IMMEDIATELY. This extension is believed to be
       
   744   unused and barring learning of users of this functionality, we drop this
       
   745   extension in Mercurial 6.6.
       
   746   o  peercommit public
       
   747   |
       
   748   o  newcommit public
       
   749   |
       
   750   | @  new scratch commit draft scratch/anotherbranch scratch/mybranch
       
   751   | |
       
   752   | o  scratchcommit draft
       
   753   |/
       
   754   o  initialcommit public
       
   755