tests/test-topic-debugcb.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Fri, 01 Sep 2017 16:51:49 +0200
changeset 2904 4ae89b5834e6
parent 2903 d16781d7a061
child 2905 610d06bcd714
permissions -rw-r--r--
test: add a new root changeset to all debugconvertbookmark test case We'll make this root changeset public to check the debugconvertbookmark logic in that regards. It is added in its own changeset since it massively impact all output.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2903
d16781d7a061 tests: import section in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2902
diff changeset
     1
==================================================
2899
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
     2
Test for `hg debugconvertbookmark` added by topics
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
     3
==================================================
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
     4
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
     5
  $ . "$TESTDIR/testlib/topic_setup.sh"
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
     6
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
     7
  $ cat << EOF >> $HGRCPATH
2901
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
     8
  > drawdag=$RUNTESTDIR/drawdag.py
2899
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
     9
  > [ui]
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    10
  > logtemplate = [{rev}:{node|short}] {desc|firstline}\n\
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    11
  > {if(bookmarks, "  bookmark: {join(bookmarks,"\n  bookmark:")}\n")}\
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    12
  > {if(topics, "  topic: {topics}\n")}
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    13
  > EOF
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    14
2901
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
    15
Setting up the things
2903
d16781d7a061 tests: import section in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2902
diff changeset
    16
---------------------
2901
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
    17
2899
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    18
  $ hg init repo
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    19
  $ cd repo
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
    20
  $ echo "Hello" > root
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
    21
  $ hg commit -Aqm "root"
2899
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    22
  $ echo "Hello" > a
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    23
  $ hg commit -Aqm "First commit"
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    24
  $ echo "Hello" > b
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    25
  $ hg commit -Aqm "Second commit"
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    26
  $ hg bookmark "hellos"
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    27
  $ hg up 0 -q
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    28
  $ echo "Fix 1" > l
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    29
  $ hg commit -Aqm "Fixing first"
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    30
  $ echo "Fix 2" > m
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    31
  $ hg commit -Aqm "Fixing second"
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    32
  $ hg bookmark "secondfix"
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    33
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    34
  $ hg log -G
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
    35
  @  [4:ec0e17135a94] Fixing second
2899
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    36
  |    bookmark: secondfix
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
    37
  o  [3:e05947b88d69] Fixing first
2899
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    38
  |
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
    39
  | o  [2:f53d1144f925] Second commit
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
    40
  | |    bookmark: hellos
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
    41
  | o  [1:df1fd5e18154] First commit
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
    42
  |/
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
    43
  o  [0:249055fcca50] root
2899
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    44
  
2903
d16781d7a061 tests: import section in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2902
diff changeset
    45
d16781d7a061 tests: import section in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2902
diff changeset
    46
Generic tests
d16781d7a061 tests: import section in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2902
diff changeset
    47
=============
d16781d7a061 tests: import section in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2902
diff changeset
    48
2899
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    49
Help for the command
2903
d16781d7a061 tests: import section in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2902
diff changeset
    50
--------------------
2899
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    51
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    52
  $ hg help debugconvertbookmark
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    53
  hg debugcb [-b BOOKMARK] [--all]
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    54
  
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    55
  aliases: debugconvertbookmark
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    56
  
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    57
  Converts a bookmark to a topic with the same name.
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    58
  
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    59
  options:
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    60
  
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    61
   -b --bookmark VALUE bookmark to convert to topic
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    62
      --all            convert all bookmarks to topics
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    63
  
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    64
  (some details hidden, use --verbose to show complete help)
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    65
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    66
Running without any argument
2903
d16781d7a061 tests: import section in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2902
diff changeset
    67
----------------------------
2899
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    68
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    69
  $ hg debugconvertbookmark
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    70
  abort: you must specify either '--all' or '-b'
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    71
  [255]
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    72
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    73
Changing a particular bookmark to topic
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    74
=======================================
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    75
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    76
  $ hg debugconvertbookmark -b hellos
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
    77
  changed topic to "hellos" on 2 revisions
2899
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    78
  $ hg log -G
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
    79
  o  [6:98ae7930f6ed] Second commit
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
    80
  |    topic: hellos
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
    81
  o  [5:ff69f6ee4618] First commit
2899
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    82
  |    topic: hellos
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
    83
  | @  [4:ec0e17135a94] Fixing second
2899
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    84
  | |    bookmark: secondfix
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
    85
  | o  [3:e05947b88d69] Fixing first
2899
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    86
  |/
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
    87
  o  [0:249055fcca50] root
2899
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    88
  
2903
d16781d7a061 tests: import section in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2902
diff changeset
    89
2899
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    90
Changing all bookmarks to topic
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    91
===============================
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    92
2903
d16781d7a061 tests: import section in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2902
diff changeset
    93
Simple test
d16781d7a061 tests: import section in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2902
diff changeset
    94
-----------
d16781d7a061 tests: import section in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2902
diff changeset
    95
2899
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    96
  $ hg debugconvertbookmark --all
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    97
  switching to topic secondfix
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    98
  changed topic to "secondfix" on 2 revisions
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    99
  $ hg log -G
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   100
  @  [8:5f0f9cc1979a] Fixing second
2899
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   101
  |    topic: secondfix
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   102
  o  [7:f8ecbf3b10be] Fixing first
2899
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   103
  |    topic: secondfix
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   104
  | o  [6:98ae7930f6ed] Second commit
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   105
  | |    topic: hellos
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   106
  | o  [5:ff69f6ee4618] First commit
2899
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   107
  |/     topic: hellos
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   108
  o  [0:249055fcca50] root
2899
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   109
  
2903
d16781d7a061 tests: import section in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2902
diff changeset
   110
2899
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   111
Trying with multiple bookmarks on a single changeset
2903
d16781d7a061 tests: import section in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2902
diff changeset
   112
----------------------------------------------------
2899
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   113
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   114
  $ echo "multiple bookmarks" >> m
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   115
  $ hg commit -Aqm "Trying multiple bookmarks"
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   116
  $ hg bookmark book1
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   117
  $ hg bookmark book2
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   118
  $ hg log -G
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   119
  @  [9:4ad3e7d421d4] Trying multiple bookmarks
2899
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   120
  |    bookmark: book1
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   121
  |    bookmark:book2
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   122
  |    topic: secondfix
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   123
  o  [8:5f0f9cc1979a] Fixing second
2899
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   124
  |    topic: secondfix
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   125
  o  [7:f8ecbf3b10be] Fixing first
2899
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   126
  |    topic: secondfix
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   127
  | o  [6:98ae7930f6ed] Second commit
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   128
  | |    topic: hellos
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   129
  | o  [5:ff69f6ee4618] First commit
2899
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   130
  |/     topic: hellos
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   131
  o  [0:249055fcca50] root
2899
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   132
  
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   133
  $ hg debugconvertbookmark --all
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   134
  skipping '9' as it has multiple bookmarks on it
2899
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   135
  $ hg log -G
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   136
  @  [9:4ad3e7d421d4] Trying multiple bookmarks
2900
1928e9c802dd convertbookmark: add logic to skip revisions with multiple bookmarks
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2899
diff changeset
   137
  |    bookmark: book1
1928e9c802dd convertbookmark: add logic to skip revisions with multiple bookmarks
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2899
diff changeset
   138
  |    bookmark:book2
1928e9c802dd convertbookmark: add logic to skip revisions with multiple bookmarks
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2899
diff changeset
   139
  |    topic: secondfix
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   140
  o  [8:5f0f9cc1979a] Fixing second
2900
1928e9c802dd convertbookmark: add logic to skip revisions with multiple bookmarks
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2899
diff changeset
   141
  |    topic: secondfix
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   142
  o  [7:f8ecbf3b10be] Fixing first
2900
1928e9c802dd convertbookmark: add logic to skip revisions with multiple bookmarks
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2899
diff changeset
   143
  |    topic: secondfix
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   144
  | o  [6:98ae7930f6ed] Second commit
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   145
  | |    topic: hellos
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   146
  | o  [5:ff69f6ee4618] First commit
2899
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   147
  |/     topic: hellos
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   148
  o  [0:249055fcca50] root
2899
32306ee32806 topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   149
  
2903
d16781d7a061 tests: import section in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2902
diff changeset
   150
d16781d7a061 tests: import section in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2902
diff changeset
   151
Two bookmarks on two different topological branches
d16781d7a061 tests: import section in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2902
diff changeset
   152
---------------------------------------------------
2901
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   153
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   154
  $ cd ..
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   155
  $ rm -rf repo
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   156
  $ hg init setup1
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   157
  $ cd setup1
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   158
  $ echo "Hello" > root
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   159
  $ hg commit -Aqm "root"
2902
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   160
  $ echo "Hello" > A
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   161
  $ hg commit -Aqm "A"
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   162
  $ echo "Hello" > B
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   163
  $ hg commit -Aqm "B"
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   164
  $ echo "Hello" > C
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   165
  $ hg commit -Aqm "C"
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   166
  $ echo "Hello" > D
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   167
  $ hg commit -Aqm "D"
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   168
  $ hg up 'desc(B)'
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   169
  0 files updated, 0 files merged, 2 files removed, 0 files unresolved
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   170
  $ echo "Hello" > E
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   171
  $ hg commit -Aqm "E"
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   172
  $ echo "Hello" > F
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   173
  $ hg commit -Aqm "F"
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   174
  $ hg bookmark -r 'desc(D)' bar
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   175
  $ hg bookmark -r 'desc(F)' foo
2901
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   176
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   177
  $ hg log -G
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   178
  @  [6:32f4660df717] F
2902
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   179
  |    bookmark: foo
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   180
  o  [5:d4608d9df75e] E
2901
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   181
  |
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   182
  | o  [4:4963af405f62] D
2902
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   183
  | |    bookmark: bar
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   184
  | o  [3:ac05e0d05d00] C
2901
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   185
  |/
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   186
  o  [2:10f317d09e78] B
2901
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   187
  |
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   188
  o  [1:e34122c9a2bf] A
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   189
  |
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   190
  o  [0:249055fcca50] root
2901
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   191
  
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   192
  $ hg debugconvertbookmark --all
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   193
  changed topic to "bar" on 2 revisions
2902
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   194
  switching to topic foo
2901
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   195
  changed topic to "foo" on 2 revisions
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   196
  $ hg log -G
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   197
  @  [10:f0b5f2a5f31a] F
2901
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   198
  |    topic: foo
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   199
  o  [9:7affa1350ff0] E
2901
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   200
  |    topic: foo
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   201
  | o  [8:a1bb64d88f0e] D
2901
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   202
  | |    topic: bar
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   203
  | o  [7:71827f564e9e] C
2901
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   204
  |/     topic: bar
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   205
  o  [2:10f317d09e78] B
2901
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   206
  |
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   207
  o  [1:e34122c9a2bf] A
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   208
  |
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   209
  o  [0:249055fcca50] root
2901
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   210
  
2903
d16781d7a061 tests: import section in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2902
diff changeset
   211
d16781d7a061 tests: import section in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2902
diff changeset
   212
Two bookmarks on top of each other
d16781d7a061 tests: import section in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2902
diff changeset
   213
----------------------------------
2901
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   214
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   215
  $ cd ..
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   216
  $ rm -rf setup1
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   217
  $ hg init setup2
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   218
  $ cd setup2
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   219
  $ echo "Hello" > root
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   220
  $ hg commit -Aqm "root"
2902
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   221
  $ echo "Hello" > A
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   222
  $ hg commit -Aqm "A"
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   223
  $ hg phase --public .
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   224
  $ echo "Hello" > B
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   225
  $ hg commit -Aqm "B"
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   226
  $ echo "Hello" > C
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   227
  $ hg commit -Aqm "C"
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   228
  $ hg bookmark -r . bar
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   229
  $ echo "Hello" > D
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   230
  $ hg commit -Aqm "D"
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   231
  $ echo "Hello" > E
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   232
  $ hg commit -Aqm "E"
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   233
  $ hg bookmark -r . foo
2901
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   234
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   235
  $ hg log -G
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   236
  @  [5:c633aa1ad270] E
2902
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   237
  |    bookmark: foo
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   238
  o  [4:4963af405f62] D
2901
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   239
  |
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   240
  o  [3:ac05e0d05d00] C
2902
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   241
  |    bookmark: bar
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   242
  o  [2:10f317d09e78] B
2901
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   243
  |
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   244
  o  [1:e34122c9a2bf] A
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   245
  |
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   246
  o  [0:249055fcca50] root
2901
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   247
  
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   248
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   249
XXX: this should bot only put topic 'foo' on 3,4 but also 'bar' on 0,1,2
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   250
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   251
  $ hg debugconvertbookmark --all
2902
f6e297fda5c6 test: avoid using debugdrawdag in 'test-topic-debugcb.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2901
diff changeset
   252
  switching to topic foo
2901
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   253
  changed topic to "foo" on 2 revisions
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   254
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   255
  $ hg log -G
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   256
  @  [7:b14d13efcfa7] E
2901
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   257
  |    topic: foo
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   258
  o  [6:c89ca6e70978] D
2901
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   259
  |    topic: foo
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   260
  o  [3:ac05e0d05d00] C
2901
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   261
  |    bookmark: bar
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   262
  o  [2:10f317d09e78] B
2901
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   263
  |
2904
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   264
  o  [1:e34122c9a2bf] A
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   265
  |
4ae89b5834e6 test: add a new root changeset to all debugconvertbookmark test case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2903
diff changeset
   266
  o  [0:249055fcca50] root
2901
52e6b28704a7 tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents: 2900
diff changeset
   267