mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
subrepo: use a safer revision check for hg repos
This avoids a traceback if the expected revision has been stripped.
This commit is contained in:
parent
25e3fc2c76
commit
8acd26be3c
@ -408,7 +408,7 @@ class hgsubrepo(abstractsubrepo):
|
||||
if r == '' and not ignoreupdate: # no state recorded
|
||||
return True
|
||||
w = self._repo[None]
|
||||
if w.p1() != self._repo[r] and not ignoreupdate:
|
||||
if r != w.p1().node() and not ignoreupdate:
|
||||
# different version checked out
|
||||
return True
|
||||
return w.dirty() # working directory changed
|
||||
|
Loading…
Reference in New Issue
Block a user