comparison tests/test-1993.t @ 12726:61c0df2b089a

update: use revsingle to enable use of revsets as update targets (issue1993)
author Augie Fackler <durin42@gmail.com>
date Mon, 11 Oct 2010 10:07:42 -0500
parents
children f2719b387380
comparison
equal deleted inserted replaced
12725:24f16c2c6d41 12726:61c0df2b089a
1 $ hg init a
2 $ cd a
3 $ echo a > a
4 $ hg ci -Am0
5 adding a
6 $ echo b > b
7 $ hg ci -Am1
8 adding b
9 $ hg tag -r0 default
10 warning: tag default conflicts with existing branch name
11 $ hg log
12 changeset: 2:30a83d1e4a1e
13 tag: tip
14 user: test
15 date: Thu Jan 01 00:00:00 1970 +0000
16 summary: Added tag default for changeset f7b1eb17ad24
17
18 changeset: 1:925d80f479bb
19 user: test
20 date: Thu Jan 01 00:00:00 1970 +0000
21 summary: 1
22
23 changeset: 0:f7b1eb17ad24
24 tag: default
25 user: test
26 date: Thu Jan 01 00:00:00 1970 +0000
27 summary: 0
28
29 $ hg update 'tag(default)'
30 0 files updated, 0 files merged, 2 files removed, 0 files unresolved
31 $ hg parents
32 changeset: 0:f7b1eb17ad24
33 tag: default
34 user: test
35 date: Thu Jan 01 00:00:00 1970 +0000
36 summary: 0
37
38 $ hg update 'branch(default)'
39 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
40 $ hg parents
41 changeset: 2:30a83d1e4a1e
42 tag: tip
43 user: test
44 date: Thu Jan 01 00:00:00 1970 +0000
45 summary: Added tag default for changeset f7b1eb17ad24
46