comparison hg_delta_editor.py @ 257:ffccf0080e54

Move wrappers for hg commands to their own module.
author Augie Fackler <durin42@gmail.com>
date Fri, 10 Apr 2009 22:38:29 -0500
parents 79349fd04836
children d978192f0d63
comparison
equal deleted inserted replaced
256:7932d098cb5f 257:ffccf0080e54
708 self.add_to_revmap(rev.revnum, branch, new_hash) 708 self.add_to_revmap(rev.revnum, branch, new_hash)
709 self._save_metadata() 709 self._save_metadata()
710 self.clear_current_info() 710 self.clear_current_info()
711 711
712 def authorforsvnauthor(self, author): 712 def authorforsvnauthor(self, author):
713 if(author in self.authors): 713 if author in self.authors:
714 return self.authors[author] 714 return self.authors[author]
715 return '%s%s' %(author, self.author_host) 715 return '%s%s' % (author, self.author_host)
716 716
717 def svnauthorforauthor(self, author): 717 def svnauthorforauthor(self, author):
718 for svnauthor, hgauthor in self.authors.iteritems(): 718 for svnauthor, hgauthor in self.authors.iteritems():
719 if author == hgauthor: 719 if author == hgauthor:
720 return svnauthor 720 return svnauthor