Changeset 16c1b95cf604…
Parent 0a252587943b…
by
Changes to 4 files · Browse files at 16c1b95cf604 Showing diff from parent 0a252587943b Diff from another changeset...
@@ -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,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,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,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);
|
Loading...