Mercurial > hg > mercurial-crew-with-dirclash
comparison hgext/convert/hg.py @ 4758:b6a1f2c46c6c
convert extension: Add SVN converter
author | Daniel Holth <dholth@fastmail.fm> |
---|---|
date | Sun, 01 Jul 2007 23:56:11 +0200 |
parents | 8e9d3faec270 |
children | 28b23b9073a8 |
comparison
equal
deleted
inserted
replaced
4757:6a16ef0d1c7c | 4758:b6a1f2c46c6c |
---|---|
26 | 26 |
27 def putfile(self, f, e, data): | 27 def putfile(self, f, e, data): |
28 self.repo.wwrite(f, data, e) | 28 self.repo.wwrite(f, data, e) |
29 if self.repo.dirstate.state(f) == '?': | 29 if self.repo.dirstate.state(f) == '?': |
30 self.repo.dirstate.update([f], "a") | 30 self.repo.dirstate.update([f], "a") |
31 | |
32 def copyfile(self, source, dest): | |
33 self.repo.copy(source, dest) | |
31 | 34 |
32 def delfile(self, f): | 35 def delfile(self, f): |
33 try: | 36 try: |
34 os.unlink(self.repo.wjoin(f)) | 37 os.unlink(self.repo.wjoin(f)) |
35 #self.repo.remove([f]) | 38 #self.repo.remove([f]) |