Show More
@@ -303,8 +303,10 b' class gitdirstate(object):' | |||||
303 | def drop(self, f): |
|
303 | def drop(self, f): | |
304 | index = self.git.index |
|
304 | index = self.git.index | |
305 | index.read() |
|
305 | index.read() | |
306 |
|
|
306 | fs = pycompat.fsdecode(f) | |
307 | index.write() |
|
307 | if fs in index: | |
|
308 | index.remove(fs) | |||
|
309 | index.write() | |||
308 |
|
310 | |||
309 | def remove(self, f): |
|
311 | def remove(self, f): | |
310 | index = self.git.index |
|
312 | index = self.git.index |
@@ -270,3 +270,8 b' This covers manifest.diff()' | |||||
270 | +++ b/beta Mon Jan 01 00:00:11 2007 +0000 |
|
270 | +++ b/beta Mon Jan 01 00:00:11 2007 +0000 | |
271 | @@ -0,0 +1,1 @@ |
|
271 | @@ -0,0 +1,1 @@ | |
272 | +beta |
|
272 | +beta | |
|
273 | ||||
|
274 | ||||
|
275 | Deleting files should also work (this was issue6398) | |||
|
276 | $ hg rm beta | |||
|
277 | $ hg ci -m 'remove beta' |
General Comments 0
You need to be logged in to leave comments.
Login now