author | Pulkit Goyal <7895pulkit@gmail.com> |
Tue, 29 Aug 2017 18:13:33 +0530 | |
changeset 2901 | 52e6b28704a7 |
parent 2900 | 1928e9c802dd |
child 2902 | f6e297fda5c6 |
permissions | -rw-r--r-- |
2899
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
1 |
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
|
2 |
================================================== |
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 |
$ . "$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
|
5 |
|
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
6 |
$ cat << EOF >> $HGRCPATH |
2901
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
7 |
> 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
|
8 |
> [ui] |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
9 |
> 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
|
10 |
> {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
|
11 |
> {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
|
12 |
> EOF |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
13 |
|
2901
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
14 |
Setting up the things |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
15 |
===================== |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
16 |
|
2899
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
17 |
$ hg init repo |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
18 |
$ cd repo |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
19 |
$ echo "Hello" > a |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
20 |
$ 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
|
21 |
$ echo "Hello" > b |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
22 |
$ 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
|
23 |
$ hg bookmark "hellos" |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
24 |
$ hg up 0 -q |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
25 |
$ echo "Fix 1" > l |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
26 |
$ 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
|
27 |
$ echo "Fix 2" > m |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
28 |
$ 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
|
29 |
$ hg bookmark "secondfix" |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
30 |
|
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
31 |
$ hg log -G |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
32 |
@ [3:b985e4fea4a4] Fixing second |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
33 |
| bookmark: secondfix |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
34 |
o [2:8e79b09248c2] Fixing first |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
35 |
| |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
36 |
| o [1:50634233706a] Second commit |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
37 |
|/ bookmark: hellos |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
38 |
o [0:3caf92e45cfb] First commit |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
39 |
|
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
40 |
Help for the command |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
41 |
==================== |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
42 |
|
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
43 |
$ hg help debugconvertbookmark |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
44 |
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
|
45 |
|
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
46 |
aliases: debugconvertbookmark |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
47 |
|
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
48 |
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
|
49 |
|
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
50 |
options: |
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 |
-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
|
53 |
--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
|
54 |
|
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
55 |
(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
|
56 |
|
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
57 |
Running without any argument |
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 |
|
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
60 |
$ hg debugconvertbookmark |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
61 |
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
|
62 |
[255] |
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 |
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
|
65 |
======================================= |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
66 |
|
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
67 |
$ hg debugconvertbookmark -b hellos |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
68 |
changed topic to "hellos" on 1 revisions |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
69 |
$ hg log -G |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
70 |
o [4:ca8825a7eb18] Second commit |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
71 |
| topic: hellos |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
72 |
| @ [3:b985e4fea4a4] Fixing second |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
73 |
| | bookmark: secondfix |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
74 |
| o [2:8e79b09248c2] Fixing first |
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 |
o [0:3caf92e45cfb] First commit |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
77 |
|
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
78 |
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
|
79 |
=============================== |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
80 |
|
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
81 |
$ hg debugconvertbookmark --all |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
82 |
switching to topic secondfix |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
83 |
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
|
84 |
$ hg log -G |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
85 |
@ [6:6efc0524f97a] Fixing second |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
86 |
| topic: secondfix |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
87 |
o [5:0a4244c62a16] Fixing first |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
88 |
| topic: secondfix |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
89 |
| o [4:ca8825a7eb18] Second commit |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
90 |
|/ topic: hellos |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
91 |
o [0:3caf92e45cfb] First commit |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
92 |
|
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
93 |
Trying with multiple bookmarks on a single changeset |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
94 |
==================================================== |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
95 |
|
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
96 |
$ echo "multiple bookmarks" >> m |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
97 |
$ 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
|
98 |
$ hg bookmark book1 |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
99 |
$ hg bookmark book2 |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
100 |
$ hg log -G |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
101 |
@ [7:7c46b4bbdda3] Trying multiple bookmarks |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
102 |
| bookmark: book1 |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
103 |
| bookmark:book2 |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
104 |
| topic: secondfix |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
105 |
o [6:6efc0524f97a] Fixing second |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
106 |
| topic: secondfix |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
107 |
o [5:0a4244c62a16] Fixing first |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
108 |
| topic: secondfix |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
109 |
| o [4:ca8825a7eb18] Second commit |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
110 |
|/ topic: hellos |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
111 |
o [0:3caf92e45cfb] First commit |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
112 |
|
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
113 |
$ hg debugconvertbookmark --all |
2900
1928e9c802dd
convertbookmark: add logic to skip revisions with multiple bookmarks
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2899
diff
changeset
|
114 |
skipping '7' 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
|
115 |
$ hg log -G |
2900
1928e9c802dd
convertbookmark: add logic to skip revisions with multiple bookmarks
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2899
diff
changeset
|
116 |
@ [7:7c46b4bbdda3] Trying multiple bookmarks |
1928e9c802dd
convertbookmark: add logic to skip revisions with multiple bookmarks
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2899
diff
changeset
|
117 |
| bookmark: book1 |
1928e9c802dd
convertbookmark: add logic to skip revisions with multiple bookmarks
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2899
diff
changeset
|
118 |
| bookmark:book2 |
1928e9c802dd
convertbookmark: add logic to skip revisions with multiple bookmarks
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2899
diff
changeset
|
119 |
| topic: secondfix |
1928e9c802dd
convertbookmark: add logic to skip revisions with multiple bookmarks
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2899
diff
changeset
|
120 |
o [6:6efc0524f97a] Fixing second |
1928e9c802dd
convertbookmark: add logic to skip revisions with multiple bookmarks
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2899
diff
changeset
|
121 |
| topic: secondfix |
1928e9c802dd
convertbookmark: add logic to skip revisions with multiple bookmarks
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2899
diff
changeset
|
122 |
o [5:0a4244c62a16] Fixing first |
1928e9c802dd
convertbookmark: add logic to skip revisions with multiple bookmarks
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2899
diff
changeset
|
123 |
| topic: secondfix |
2899
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
124 |
| o [4:ca8825a7eb18] Second commit |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
125 |
|/ topic: hellos |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
126 |
o [0:3caf92e45cfb] First commit |
32306ee32806
topics: add a new debugconvertbookmark command to convert bookmarks to topics
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
127 |
|
2901
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
128 |
Another setup |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
129 |
============== |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
130 |
|
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
131 |
$ cd .. |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
132 |
$ rm -rf repo |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
133 |
$ hg init setup1 |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
134 |
$ cd setup1 |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
135 |
$ hg debugdrawdag <<EOF |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
136 |
> D F |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
137 |
> | | |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
138 |
> C E |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
139 |
> |/ |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
140 |
> B |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
141 |
> | |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
142 |
> A |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
143 |
> EOF |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
144 |
|
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
145 |
$ hg log -G |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
146 |
o [5:11abe3fb10b8] F |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
147 |
| |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
148 |
| o [4:f585351a92f8] D |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
149 |
| | |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
150 |
o | [3:49cb92066bfd] E |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
151 |
| | |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
152 |
| o [2:26805aba1e60] C |
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 |
o [1:112478962961] B |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
155 |
| |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
156 |
o [0:426bada5c675] A |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
157 |
|
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
158 |
$ hg bookmark -r 5 foo |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
159 |
$ hg bookmark -r 4 bar |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
160 |
$ hg debugconvertbookmark --all |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
161 |
changed topic to "bar" on 2 revisions |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
162 |
changed topic to "foo" on 2 revisions |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
163 |
$ hg log -G |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
164 |
o [9:f07a5aaa3365] F |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
165 |
| topic: foo |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
166 |
o [8:00a25ca4fa07] E |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
167 |
| topic: foo |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
168 |
| o [7:603a45fb0033] D |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
169 |
| | topic: bar |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
170 |
| o [6:67dd4179b021] C |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
171 |
|/ topic: bar |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
172 |
| x [5:11abe3fb10b8] F |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
173 |
| | |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
174 |
| | x [4:f585351a92f8] D |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
175 |
| | | |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
176 |
| x | [3:49cb92066bfd] E |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
177 |
|/ / |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
178 |
| x [2:26805aba1e60] C |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
179 |
|/ |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
180 |
o [1:112478962961] B |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
181 |
| |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
182 |
o [0:426bada5c675] A |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
183 |
|
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
184 |
Another Setup |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
185 |
============= |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
186 |
|
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
187 |
$ cd .. |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
188 |
$ rm -rf setup1 |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
189 |
$ hg init setup2 |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
190 |
$ cd setup2 |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
191 |
$ hg debugdrawdag <<EOF |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
192 |
> E |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
193 |
> | |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
194 |
> D |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
195 |
> | |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
196 |
> C |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
197 |
> | |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
198 |
> B |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
199 |
> | |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
200 |
> A |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
201 |
> EOF |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
202 |
|
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
203 |
$ hg log -G |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
204 |
o [4:9bc730a19041] E |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
205 |
| |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
206 |
o [3:f585351a92f8] D |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
207 |
| |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
208 |
o [2:26805aba1e60] C |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
209 |
| |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
210 |
o [1:112478962961] B |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
211 |
| |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
212 |
o [0:426bada5c675] A |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
213 |
|
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
214 |
$ hg bookmark -r 4 foo |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
215 |
$ hg bookmark -r 2 bar |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
216 |
|
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
217 |
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
|
218 |
|
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
219 |
$ hg debugconvertbookmark --all |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
220 |
changed topic to "foo" on 2 revisions |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
221 |
|
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
222 |
$ hg log -G |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
223 |
o [6:4442f18c04c6] E |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
224 |
| topic: foo |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
225 |
o [5:0f81d1dec575] D |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
226 |
| topic: foo |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
227 |
| x [4:9bc730a19041] E |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
228 |
| | |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
229 |
| x [3:f585351a92f8] D |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
230 |
|/ |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
231 |
o [2:26805aba1e60] C |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
232 |
| bookmark: bar |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
233 |
o [1:112478962961] B |
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 |
o [0:426bada5c675] A |
52e6b28704a7
tests: add more tests for debugconvertbookmark
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2900
diff
changeset
|
236 |