Mercurial > hg-stable
comparison tests/test-export.t @ 38057:c76526d7d6e9
export: add -B option to select a bookmark
Just like `hg email -B`, `hg strip -B`, supports -B in export to select a list
of changesets reachable from a bookmark.
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 14 May 2018 12:53:13 +0200 |
parents | 31750413f8d7 |
children | 8d72e29ad1e0 |
comparison
equal
deleted
inserted
replaced
38056:768bd75835d7 | 38057:c76526d7d6e9 |
---|---|
98 foo-foo_3.patch | 98 foo-foo_3.patch |
99 $ grep HG foo-foo_2.patch | wc -l | 99 $ grep HG foo-foo_2.patch | wc -l |
100 \s*1 (re) | 100 \s*1 (re) |
101 $ grep HG foo-foo_3.patch | wc -l | 101 $ grep HG foo-foo_3.patch | wc -l |
102 \s*1 (re) | 102 \s*1 (re) |
103 | |
104 Using bookmarks: | |
105 | |
106 $ hg book -f -r 9 @ | |
107 $ hg book -f -r 11 test | |
108 $ hg export -B test | |
109 # HG changeset patch | |
110 # User test | |
111 # Date 0 0 | |
112 # Thu Jan 01 00:00:00 1970 +0000 | |
113 # Node ID 5f17a83f5fbd9414006a5e563eab4c8a00729efd | |
114 # Parent 747d3c68f8ec44bb35816bfcd59aeb50b9654c2f | |
115 foo-10 | |
116 | |
117 diff -r 747d3c68f8ec -r 5f17a83f5fbd foo | |
118 --- a/foo Thu Jan 01 00:00:00 1970 +0000 | |
119 +++ b/foo Thu Jan 01 00:00:00 1970 +0000 | |
120 @@ -8,3 +8,4 @@ | |
121 foo-7 | |
122 foo-8 | |
123 foo-9 | |
124 +foo-10 | |
125 # HG changeset patch | |
126 # User test | |
127 # Date 0 0 | |
128 # Thu Jan 01 00:00:00 1970 +0000 | |
129 # Node ID f3acbafac161ec68f1598af38f794f28847ca5d3 | |
130 # Parent 5f17a83f5fbd9414006a5e563eab4c8a00729efd | |
131 foo-11 | |
132 | |
133 diff -r 5f17a83f5fbd -r f3acbafac161 foo | |
134 --- a/foo Thu Jan 01 00:00:00 1970 +0000 | |
135 +++ b/foo Thu Jan 01 00:00:00 1970 +0000 | |
136 @@ -9,3 +9,4 @@ | |
137 foo-8 | |
138 foo-9 | |
139 foo-10 | |
140 +foo-11 | |
103 | 141 |
104 Exporting 4 changesets to a file: | 142 Exporting 4 changesets to a file: |
105 | 143 |
106 $ hg export -o export_internal 1 2 3 4 | 144 $ hg export -o export_internal 1 2 3 4 |
107 $ grep HG export_internal | wc -l | 145 $ grep HG export_internal | wc -l |