Show More
@@ -1533,14 +1533,16 b' class localrepository(object):' | |||||
1533 | # dealing with some special values |
|
1533 | # dealing with some special values | |
1534 | if changeid == b'null': |
|
1534 | if changeid == b'null': | |
1535 | return context.changectx(self, nullrev, nullid) |
|
1535 | return context.changectx(self, nullrev, nullid) | |
|
1536 | if changeid == b'tip': | |||
|
1537 | node = self.changelog.tip() | |||
|
1538 | rev = self.changelog.rev(node) | |||
|
1539 | return context.changectx(self, rev, node) | |||
|
1540 | ||||
1536 | # dealing with arbitrary values |
|
1541 | # dealing with arbitrary values | |
1537 | try: |
|
1542 | try: | |
1538 | if isinstance(changeid, int): |
|
1543 | if isinstance(changeid, int): | |
1539 | node = self.changelog.node(changeid) |
|
1544 | node = self.changelog.node(changeid) | |
1540 | rev = changeid |
|
1545 | rev = changeid | |
1541 | elif changeid == b'tip': |
|
|||
1542 | node = self.changelog.tip() |
|
|||
1543 | rev = self.changelog.rev(node) |
|
|||
1544 | elif changeid == b'.': |
|
1546 | elif changeid == b'.': | |
1545 | # this is a hack to delay/avoid loading obsmarkers |
|
1547 | # this is a hack to delay/avoid loading obsmarkers | |
1546 | # when we know that '.' won't be hidden |
|
1548 | # when we know that '.' won't be hidden |
General Comments 0
You need to be logged in to leave comments.
Login now