mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
mergestate.add: store absentfilectxes as nullhex
This is the most natural way to represent these files. We also need to make sure we don't try to store these files in the merge store.
This commit is contained in:
parent
328287680c
commit
5d6cb7e78f
@ -366,8 +366,11 @@ class mergestate(object):
|
||||
|
||||
note: also write the local version to the `.hg/merge` directory.
|
||||
"""
|
||||
hash = util.sha1(fcl.path()).hexdigest()
|
||||
self._repo.vfs.write('merge/' + hash, fcl.data())
|
||||
if fcl.isabsent():
|
||||
hash = nullhex
|
||||
else:
|
||||
hash = util.sha1(fcl.path()).hexdigest()
|
||||
self._repo.vfs.write('merge/' + hash, fcl.data())
|
||||
self._state[fd] = ['u', hash, fcl.path(),
|
||||
fca.path(), hex(fca.filenode()),
|
||||
fco.path(), hex(fco.filenode()),
|
||||
|
Loading…
Reference in New Issue
Block a user