##// END OF EJS Templates
debugrebuildstate: clarify that rev can't be specified without -r...
Mads Kiilerich -
r18961:cd1ac2e5 default
parent child Browse files
Show More
@@ -2248,9 +2248,19 b' def debugpvec(ui, repo, a, b=None):'
2248
2248
2249 @command('debugrebuildstate',
2249 @command('debugrebuildstate',
2250 [('r', 'rev', '', _('revision to rebuild to'), _('REV'))],
2250 [('r', 'rev', '', _('revision to rebuild to'), _('REV'))],
2251 _('[-r REV] [REV]'))
2251 _('[-r REV]'))
2252 def debugrebuildstate(ui, repo, rev="tip"):
2252 def debugrebuildstate(ui, repo, rev):
2253 """rebuild the dirstate as it would look like for the given revision"""
2253 """rebuild the dirstate as it would look like for the given revision
2254
2255 If no revision is specified the first current parent will be used.
2256
2257 The dirstate will be set to the files of the given revision.
2258 The actual working directory content or existing dirstate
2259 information such as adds or removes is not considered.
2260
2261 One use of this command is to make the next :hg:`status` invocation
2262 check the actual file content.
2263 """
2254 ctx = scmutil.revsingle(repo, rev)
2264 ctx = scmutil.revsingle(repo, rev)
2255 wlock = repo.wlock()
2265 wlock = repo.wlock()
2256 try:
2266 try:
General Comments 0
You need to be logged in to leave comments. Login now