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