##// END OF EJS Templates
update: fix crash on bare update when directaccess is enabled...
Yuya Nishihara -
r35699:e29823c6 default
parent child Browse files
Show More
@@ -5530,6 +5530,7 b' def update(ui, repo, node=None, rev=None'
5530
5530
5531 # if we defined a bookmark, we have to remember the original name
5531 # if we defined a bookmark, we have to remember the original name
5532 brev = rev
5532 brev = rev
5533 if rev:
5533 repo = scmutil.unhidehashlikerevs(repo, [rev], 'nowarn')
5534 repo = scmutil.unhidehashlikerevs(repo, [rev], 'nowarn')
5534 ctx = scmutil.revsingle(repo, rev, rev)
5535 ctx = scmutil.revsingle(repo, rev, rev)
5535 rev = ctx.rev()
5536 rev = ctx.rev()
@@ -162,6 +162,9 b' This should not throw error'
162 $ hg up 3
162 $ hg up 3
163 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
163 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
164
164
165 $ hg up
166 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
167
165 `hg revert`
168 `hg revert`
166
169
167 $ hg revert -r 28ad74 --all
170 $ hg revert -r 28ad74 --all
General Comments 0
You need to be logged in to leave comments. Login now