Show More
@@ -6038,7 +6038,7 b' def update(ui, repo, node=None, **opts):' | |||
|
6038 | 6038 | brev = rev |
|
6039 | 6039 | if rev: |
|
6040 | 6040 | repo = scmutil.unhidehashlikerevs(repo, [rev], 'nowarn') |
|
6041 |
ctx = scmutil.revsingle(repo, rev, |
|
|
6041 | ctx = scmutil.revsingle(repo, rev, default=None) | |
|
6042 | 6042 | rev = ctx.rev() |
|
6043 | 6043 | hidden = ctx.hidden() |
|
6044 | 6044 | overrides = {('ui', 'forcemerge'): opts.get(r'tool', '')} |
@@ -57,6 +57,26 b' update to rev 0 with a date' | |||
|
57 | 57 | abort: you can't specify a revision and a date |
|
58 | 58 | [255] |
|
59 | 59 | |
|
60 | update to default destination (with empty revspec) | |
|
61 | ||
|
62 | $ hg update -q null | |
|
63 | $ hg update | |
|
64 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
65 | $ hg id | |
|
66 | 30aff43faee1 tip | |
|
67 | ||
|
68 | $ hg update -q null | |
|
69 | $ hg update -r '' | |
|
70 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
71 | $ hg id | |
|
72 | 30aff43faee1 tip | |
|
73 | ||
|
74 | $ hg update -q null | |
|
75 | $ hg update '' | |
|
76 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
77 | $ hg id | |
|
78 | 30aff43faee1 tip | |
|
79 | ||
|
60 | 80 | $ cd .. |
|
61 | 81 | |
|
62 | 82 | update with worker processes |
General Comments 0
You need to be logged in to leave comments.
Login now