Show More
@@ -376,10 +376,6 b' class changectx(basectx):' | |||
|
376 | 376 | return |
|
377 | 377 | if isinstance(changeid, long): |
|
378 | 378 | changeid = str(changeid) |
|
379 | if changeid == '.': | |
|
380 | self._node = repo.dirstate.p1() | |
|
381 | self._rev = repo.changelog.rev(self._node) | |
|
382 | return | |
|
383 | 379 | if changeid == 'null': |
|
384 | 380 | self._node = nullid |
|
385 | 381 | self._rev = nullrev |
@@ -388,6 +384,12 b' class changectx(basectx):' | |||
|
388 | 384 | self._node = repo.changelog.tip() |
|
389 | 385 | self._rev = repo.changelog.rev(self._node) |
|
390 | 386 | return |
|
387 | if changeid == '.' or changeid == repo.dirstate.p1(): | |
|
388 | # this is a hack to delay/avoid loading obsmarkers | |
|
389 | # when we know that '.' won't be hidden | |
|
390 | self._node = repo.dirstate.p1() | |
|
391 | self._rev = repo.unfiltered().changelog.rev(self._node) | |
|
392 | return | |
|
391 | 393 | if len(changeid) == 20: |
|
392 | 394 | try: |
|
393 | 395 | self._node = changeid |
General Comments 0
You need to be logged in to leave comments.
Login now