1. TortoiseHg
  2. TortoiseHg
  3. thg

Commits

TK Soh  committed b2cdc4e

history: remove duplicated rows when viewing tagged revisions

for changesets with multiple tags

  • Participants
  • Parent commits e8d2c1d
  • Branches default

Comments (0)

Files changed (1)

File hggtk/history.py

View file
  • Ignore whitespace
             self.opts['no_merges'] = True
             self.graphview.refresh(False, [], self.opts)
         elif self._filter == "tagged":
-            tagged = [hex(r) for t, r in self.repo.tagslist()]
-            tagged.reverse()
+            tagged = []
+            for t, r in self.repo.tagslist():
+                hr = hex(r)
+                if hr not in tagged:
+                    tagged.insert(0, hr)
             self.opts['revs'] = tagged
             self.graphview.refresh(False, [], self.opts)
         elif self._filter == "parents":