Show More
@@ -7,7 +7,7 b'' | |||
|
7 | 7 | |
|
8 | 8 | from node import nullid, nullrev, hex |
|
9 | 9 | from i18n import _ |
|
10 |
import errno, util, os, filemerge, copies, |
|
|
10 | import errno, util, os, filemerge, copies, shutil | |
|
11 | 11 | |
|
12 | 12 | class mergestate(object): |
|
13 | 13 | '''track 3-way merge state of individual files''' |
@@ -19,7 +19,7 b' class mergestate(object):' | |||
|
19 | 19 | self._local = node |
|
20 | 20 | shutil.rmtree(self._repo.join("merge"), True) |
|
21 | 21 | def add(self, fcl, fco, fca, fd, flags): |
|
22 |
hash = |
|
|
22 | hash = util.sha1(fcl.path()).hexdigest() | |
|
23 | 23 | self._repo.opener("merge/" + hash, "w").write(fcl.data()) |
|
24 | 24 | self._state[fd] = 'u' |
|
25 | 25 | self._data[fd] = (hash, fcl.path(), fca.path(), hex(fca.filenode()), |
General Comments 0
You need to be logged in to leave comments.
Login now