comparison mercurial/context.py @ 45896:e359af6517ce

context: small update to ctx.status doc The order of the "arguments" were not too clear, so we update the documentation to clarify that.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 20 Nov 2020 07:37:09 +0100
parents 19590b126764
children 89a2afe31e82
comparison
equal deleted inserted replaced
45895:fc4fb2f17dd4 45896:e359af6517ce
396 """return status of files between two nodes or node and working 396 """return status of files between two nodes or node and working
397 directory. 397 directory.
398 398
399 If other is None, compare this node with working directory. 399 If other is None, compare this node with working directory.
400 400
401 returns (modified, added, removed, deleted, unknown, ignored, clean) 401 ctx1.status(ctx2) returns the status of change from ctx1 to ctx2
402
403 Returns a mercurial.scmutils.status object.
404
405 Data can be accessed using either tuple notation:
406
407 (modified, added, removed, deleted, unknown, ignored, clean)
408
409 or direct attribute access:
410
411 s.modified, s.added, ...
402 """ 412 """
403 413
404 ctx1 = self 414 ctx1 = self
405 ctx2 = self._repo[other] 415 ctx2 = self._repo[other]
406 416