[PATCH] repowidget: fully fixes #1673

1 view
Skip to first unread message

Johan Samyn

unread,
Mar 4, 2012, 9:54:32 AM3/4/12
to thg...@googlegroups.com
# HG changeset patch
# User Johan Samyn <johan...@gmail.com>
# Date 1330872538 -3600
# Node ID f986f78c4a3094c7323165aa14ed28b11c762e9a
# Parent 1f0427754f88c024093cb896678e0f1ea3f278ff
repowidget: fully fixes #1673

Otherwise when using Ctrl-P on Win we ended up with 2 selected rows.

diff --git a/tortoisehg/hgqt/repowidget.py b/tortoisehg/hgqt/repowidget.py
--- a/tortoisehg/hgqt/repowidget.py
+++ b/tortoisehg/hgqt/repowidget.py
@@ -824,6 +824,9 @@
self.showMessage(hglib.tounicode(str(e)))

def gotoParent(self):
+ revdot = self.repo.changectx('.').rev()
+ if self.rev != revdot:
+ self.repoview.clearSelection()
self.goto('.')

def gotoTip(self):

Johan Samyn

unread,
Mar 4, 2012, 11:26:24 AM3/4/12
to thg...@googlegroups.com

Forget this one. Yuya also posted a patch for this (in about the same
minute I or so) that is a far more general solution.
Johan

________________________________________________________________________
"Perfection seems to be achieved, not when there is nothing more to add,
but when there is nothing left to take away." - A. de Saint-Exup�ry

Reply all
Reply to author
Forward
0 new messages