Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

New "Update Icons" context menu entry

Changeset 16c1b95cf604

Parent 0a252587943b

by Adrian Buehlmann

Changes to 4 files · Browse files at 16c1b95cf604 Showing diff from parent 0a252587943b Diff from another changeset...

Change 1 of 2 Show Entire File hggtk/​hgtk.py Stacked
 
219
220
221
 
 
 
 
 
222
223
224
 
595
596
597
 
598
599
600
 
219
220
221
222
223
224
225
226
227
228
229
 
600
601
602
603
604
605
606
@@ -219,6 +219,11 @@
  from mercurial import dispatch   dispatch.dispatch(['add'] + list(pats))   +def thgstatus(ui, *pats, **opts): + """hg thgstatus""" + from mercurial import dispatch + dispatch.dispatch(['thgstatus']) +  def clone(ui, *pats, **opts):   """clone tool"""   from hggtk.clone import run @@ -595,6 +600,7 @@
  (serve,   [('', 'webdir-conf', '', _('name of the webdir config file'))],   _('hgtk serve [OPTION]...')), + "thgstatus": (thgstatus, [], _('hgtk thgstatus')),   "^update|checkout|co": (update,   [('r', 'rev', '', _('revision to update'))],   ('hgtk update')),
 
36
37
38
 
 
39
40
41
 
209
210
211
 
212
213
214
 
36
37
38
39
40
41
42
43
 
211
212
213
214
215
216
217
@@ -36,6 +36,8 @@
  "menucheckout.ico", &CShellExt::CM_Update, 0, 0},   {"recover", "Recovery...", "General repair and recovery of repositor",   "general.ico", &CShellExt::CM_Recover, 0, 0}, + {"thgstatus", "Update Icons", "Update icons for this repository", + "", &CShellExt::CM_thgstatus, 0, 0},   {"userconf", "Global Settings", "Configure user wide settings",   "settings_user.ico", &CShellExt::CM_Userconf, 0, 0},   {"repoconf", "Repository Settings", "Configure settings local to this repository", @@ -209,6 +211,7 @@
  InsertMenuItemByName(hSubMenu, "synch", indexSubMenu++, idCmd++, idCmdFirst);   InsertMenuItemByName(hSubMenu, "recover", indexSubMenu++, idCmd++, idCmdFirst);   InsertMenuItemByName(hSubMenu, "serve", indexSubMenu++, idCmd++, idCmdFirst); + InsertMenuItemByName(hSubMenu, "thgstatus", indexSubMenu++, idCmd++, idCmdFirst);     InsertMenu(hSubMenu, indexSubMenu++, MF_SEPARATOR | MF_BYPOSITION,   0, NULL);
 
126
127
128
 
 
 
 
 
 
 
 
 
126
127
128
129
130
131
132
133
134
135
136
@@ -126,3 +126,11 @@
  DoHgProc("repoconfig");   return NOERROR;  } + +STDMETHODIMP +CShellExt::CM_thgstatus(HWND hParent, LPCSTR pszWorkingDir, LPCSTR pszCmd, + LPCSTR pszParam, int iShowCmd) +{ + DoHgProc("thgstatus"); + return NOERROR; +}
 
81
82
83
 
84
85
86
 
81
82
83
84
85
86
87
@@ -81,6 +81,7 @@
  STDMETHODIMP CM_Recover(HWND hParent, LPCSTR pszWorkingDir, LPCSTR pszCmd, LPCSTR pszParam, int iShowCmd);   STDMETHODIMP CM_Userconf(HWND hParent, LPCSTR pszWorkingDir, LPCSTR pszCmd, LPCSTR pszParam, int iShowCmd);   STDMETHODIMP CM_Repoconf(HWND hParent, LPCSTR pszWorkingDir, LPCSTR pszCmd, LPCSTR pszParam, int iShowCmd); + STDMETHODIMP CM_thgstatus(HWND hParent, LPCSTR pszWorkingDir, LPCSTR pszCmd, LPCSTR pszParam, int iShowCmd);     public:   CShellExt(TortoiseOLEClass);