hgext/convert/hg.py
changeset 4904 6fd953d5faea
parent 4873 28b23b9073a8
child 4906 30847b8af7ca
equal deleted inserted replaced
4903:81078e177266 4904:6fd953d5faea
    25         return [ hg.hex(x) for x in h ]
    25         return [ hg.hex(x) for x in h ]
    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.add(f)
    31 
    31 
    32     def copyfile(self, source, dest):
    32     def copyfile(self, source, dest):
    33         self.repo.copy(source, dest)
    33         self.repo.copy(source, dest)
    34 
    34 
    35     def delfile(self, f):
    35     def delfile(self, f):