Commit MetaInfo

Revision42edce80ad624191e56409a829d7691e3639bb61 (tree)
Time2009-11-18 22:43:47
AuthorFace
CommiterFace

Log Message

Initialized patch queue with set_home_feature patch.

Change Summary

Incremental Difference

diff -r 000000000000 -r 42edce80ad62 .hgignore
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgignore Wed Nov 18 14:43:47 2009 +0100
@@ -0,0 +1,1 @@
1+glob:status
diff -r 000000000000 -r 42edce80ad62 series
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/series Wed Nov 18 14:43:47 2009 +0100
@@ -0,0 +1,1 @@
1+set_home_feature
diff -r 000000000000 -r 42edce80ad62 set_home_feature
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/set_home_feature Wed Nov 18 14:43:47 2009 +0100
@@ -0,0 +1,33 @@
1+From: Face
2+
3+Added feature for setting home to another revision without changing working dir ("rainer").
4+
5+diff --git a/tortoisehg/hgtk/history.py b/tortoisehg/hgtk/history.py
6+--- a/tortoisehg/hgtk/history.py
7++++ b/tortoisehg/hgtk/history.py
8+@@ -711,6 +711,7 @@
9+ m.append(create_menu(_('Push to here'), self.push_to))
10+ m.append_sep()
11+ m.append(create_menu(_('_Update...'), self.checkout))
12++ m.append(create_menu(_('Set home to here'), self.sethome))
13+ cmenu_merge = create_menu(_('_Merge with...'), self.domerge)
14+ m.append(cmenu_merge)
15+ m.append_sep()
16+@@ -1667,6 +1668,17 @@
17+ self.changeview.clear()
18+ self.enable_mqpanel()
19+
20++ def sethome(self, menuitem):
21++ """QImport selected revision."""
22++ rev = str(self.currevid)
23++ if rev != None:
24++ commands.debugsetparents(self.ui, self.repo, rev)
25++ commands.debugrebuildstate(self.ui, self.repo, rev)
26++ self.repo.invalidate()
27++ self.changeview.clear_cache()
28++ self.reload_log()
29++ self.changeview.clear()
30++
31+ def rebase_selected(self, menuitem):
32+ """Rebase revision on top of selection (1st on top of 2nd)."""
33+ revs = self.revrange
Show on old repository browser