tests/test-topic-stack-data.t
changeset 4581 48521a49a07e
parent 4471 3caa4a459439
child 4675 79bc0f1a832e
child 4704 5f90eb8fd63c
equal deleted inserted replaced
4580:3ef96578da43 4581:48521a49a07e
   170 ==============
   170 ==============
   171 
   171 
   172 basic output
   172 basic output
   173 
   173 
   174   $ hg topic
   174   $ hg topic
   175      bar (5 changesets, 1 troubled, 2 heads)
   175      bar (5 changesets, 1 unstable, 2 heads)
   176      baz (2 changesets)
   176      baz (2 changesets)
   177    * foo (2 changesets)
   177    * foo (2 changesets)
   178      fuz (3 changesets, 2 troubled)
   178      fuz (3 changesets, 2 unstable)
   179 
   179 
   180 quiet version
   180 quiet version
   181 
   181 
   182   $ hg topic --quiet
   182   $ hg topic --quiet
   183   bar
   183   bar
   186   fuz
   186   fuz
   187 
   187 
   188 verbose
   188 verbose
   189 
   189 
   190   $ hg topic --verbose
   190   $ hg topic --verbose
   191      bar (on branch: default, 5 changesets, 1 troubled, 2 heads)
   191      bar (on branch: default, 5 changesets, 1 unstable, 2 heads)
   192      baz (on branch: default, 2 changesets, 2 behind)
   192      baz (on branch: default, 2 changesets, 2 behind)
   193    * foo (on branch: lake, 2 changesets, ambiguous destination: branch 'lake' has 2 heads)
   193    * foo (on branch: lake, 2 changesets, ambiguous destination: branch 'lake' has 2 heads)
   194      fuz (on branch: default, 3 changesets, 2 troubled, 1 behind)
   194      fuz (on branch: default, 3 changesets, 2 unstable, 1 behind)
   195 
   195 
   196 json
   196 json
   197 
   197 
   198   $ hg topic -T json
   198   $ hg topic -T json
   199   [
   199   [
   200    {
   200    {
   201     "active": false,
   201     "active": false,
   202     "changesetcount": 5,
   202     "changesetcount": 5,
   203     "headcount": 2,
   203     "headcount": 2,
   204     "topic": "bar",
   204     "topic": "bar",
   205     "troubledcount": 1
   205     "unstablecount": 1
   206    },
   206    },
   207    {
   207    {
   208     "active": false,
   208     "active": false,
   209     "changesetcount": 2,
   209     "changesetcount": 2,
   210     "topic": "baz"
   210     "topic": "baz"
   216    },
   216    },
   217    {
   217    {
   218     "active": false,
   218     "active": false,
   219     "changesetcount": 3,
   219     "changesetcount": 3,
   220     "topic": "fuz",
   220     "topic": "fuz",
   221     "troubledcount": 2
   221     "unstablecount": 2
   222    }
   222    }
   223   ]
   223   ]
   224 
   224 
   225 json --verbose
   225 json --verbose
   226 
   226 
   230     "active": false,
   230     "active": false,
   231     "branches+": "default",
   231     "branches+": "default",
   232     "changesetcount": 5,
   232     "changesetcount": 5,
   233     "headcount": 2,
   233     "headcount": 2,
   234     "topic": "bar",
   234     "topic": "bar",
   235     "troubledcount": 1
   235     "unstablecount": 1
   236    },
   236    },
   237    {
   237    {
   238     "active": false,
   238     "active": false,
   239     "behindcount": 2,
   239     "behindcount": 2,
   240     "branches+": "default",
   240     "branches+": "default",
   252     "active": false,
   252     "active": false,
   253     "behindcount": 1,
   253     "behindcount": 1,
   254     "branches+": "default",
   254     "branches+": "default",
   255     "changesetcount": 3,
   255     "changesetcount": 3,
   256     "topic": "fuz",
   256     "topic": "fuz",
   257     "troubledcount": 2
   257     "unstablecount": 2
   258    }
   258    }
   259   ]
   259   ]
   260 
   260 
   261 Also test this situation with 'hg stack'
   261 Also test this situation with 'hg stack'
   262 =======================================
   262 =======================================