Mercurial > hg
comparison tests/test-bookmarks.t @ 17686:6e4b962600a3
bookmarks: teach the -r option to use revsets
author | David Soria Parra <dsp@php.net> |
---|---|
date | Mon, 01 Oct 2012 03:19:23 +0200 |
parents | ec7b9bec19c9 |
children | 3d1a781b23c0 |
comparison
equal
deleted
inserted
replaced
17685:8fcef9614150 | 17686:6e4b962600a3 |
---|---|
151 | 151 |
152 $ hg bookmark | 152 $ hg bookmark |
153 X2 1:925d80f479bb | 153 X2 1:925d80f479bb |
154 * Y 2:db815d6d32e6 | 154 * Y 2:db815d6d32e6 |
155 Z 0:f7b1eb17ad24 | 155 Z 0:f7b1eb17ad24 |
156 | |
157 bookmarks from a revset | |
158 $ hg bookmark -r '.^1' REVSET | |
159 $ hg bookmark -r ':tip' TIP | |
160 $ hg bookmarks | |
161 REVSET 0:f7b1eb17ad24 | |
162 * TIP 2:db815d6d32e6 | |
163 X2 1:925d80f479bb | |
164 Y 2:db815d6d32e6 | |
165 Z 0:f7b1eb17ad24 | |
166 | |
167 $ hg bookmark -d REVSET | |
168 $ hg bookmark -d TIP | |
156 | 169 |
157 rename without new name | 170 rename without new name |
158 | 171 |
159 $ hg bookmark -m Y | 172 $ hg bookmark -m Y |
160 abort: new bookmark name required | 173 abort: new bookmark name required |