dc  committed 670c0cc

Fixed get_parent_revs _read_tags_for_rev when user has custom templates or styles for hg log history

  • Participants
  • Parent commits 63cb1f3

Comments (0)

Files changed (1)

File hgtools/managers/

 		return loc_rel_paths
 	def get_parent_revs(self, rev=None):
-		cmd = [self.exe, 'parents']
+		cmd = [self.exe, 'parents', '--style', 'default', '--config', 'defaults.parents=' ]
 		if rev:
 			cmd.extend(['--rev', str(rev)])
 		out = self._run_cmd(cmd)
 		Return the tags for revision sorted by when the tags were
 		created (latest first)
-		cmd = [self.exe, 'log', '-r', rev_num]
+		cmd = [self.exe, 'log', '--style', 'default',  '--config', 'defaults.log=', '-r', rev_num]
 		res = self._run_cmd(cmd)
 		tag_lines = [
 			line for line in res.splitlines()