Revision: 412 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=412&view=rev Author: kugel- Date: 2009-01-31 19:26:19 +0000 (Sat, 31 Jan 2009)
Log Message: ----------- Add stubs for revert dir and basedir for other VCs
Modified Paths: -------------- branches/GeanyVC_menu_redesign/vc_bzr.c branches/GeanyVC_menu_redesign/vc_cvs.c branches/GeanyVC_menu_redesign/vc_git.c branches/GeanyVC_menu_redesign/vc_hg.c branches/GeanyVC_menu_redesign/vc_svk.c
Modified: branches/GeanyVC_menu_redesign/vc_bzr.c =================================================================== --- branches/GeanyVC_menu_redesign/vc_bzr.c 2009-01-30 16:51:27 UTC (rev 411) +++ branches/GeanyVC_menu_redesign/vc_bzr.c 2009-01-31 19:26:19 UTC (rev 412) @@ -37,6 +37,7 @@ static const gchar *BZR_CMD_DIFF_FILE[] = { "bzr", "diff", BASENAME, NULL }; static const gchar *BZR_CMD_DIFF_DIR[] = { "bzr", "diff", ABS_DIRNAME, NULL }; static const gchar *BZR_CMD_REVERT_FILE[] = { "bzr", "revert", BASENAME, NULL }; +static const gchar *BZR_CMD_REVERT_DIR[] = { "bzr", NULL }; static const gchar *BZR_CMD_STATUS[] = { "bzr", "status", NULL }; static const gchar *BZR_CMD_ADD[] = { "bzr", "add", BASENAME, NULL }; static const gchar *BZR_CMD_REMOVE[] = { "bzr", "remove", BASENAME, NULL }; @@ -65,6 +66,11 @@ .function = NULL}, { .startdir = VC_COMMAND_STARTDIR_FILE, + .command = BZR_CMD_REVERT_DIR, + .env = NULL, + .function = NULL}, + { + .startdir = VC_COMMAND_STARTDIR_FILE, .command = BZR_CMD_STATUS, .env = NULL, .function = NULL},
Modified: branches/GeanyVC_menu_redesign/vc_cvs.c =================================================================== --- branches/GeanyVC_menu_redesign/vc_cvs.c 2009-01-30 16:51:27 UTC (rev 411) +++ branches/GeanyVC_menu_redesign/vc_cvs.c 2009-01-31 19:26:19 UTC (rev 412) @@ -34,6 +34,7 @@ static const gchar *CVS_CMD_DIFF_FILE[] = { "cvs", "diff", "-u", BASE_FILENAME, NULL }; static const gchar *CVS_CMD_DIFF_DIR[] = { "cvs", "diff", "-u", NULL }; static const gchar *CVS_CMD_REVERT_FILE[] = { "cvs", "update", "-C", BASE_FILENAME, NULL }; +static const gchar *CVS_CMD_REVERT_DIR[] = { "cvs", NULL }; static const gchar *CVS_CMD_STATUS[] = { "cvs", "status", NULL }; static const gchar *CVS_CMD_ADD[] = { "cvs", "add", BASE_FILENAME, NULL }; static const gchar *CVS_CMD_REMOVE[] = { "cvs", "remove", BASE_FILENAME, NULL }; @@ -62,6 +63,11 @@ .function = NULL}, { .startdir = VC_COMMAND_STARTDIR_FILE, + .command = CVS_CMD_REVERT_DIR, + .env = NULL, + .function = NULL}, + { + .startdir = VC_COMMAND_STARTDIR_FILE, .command = CVS_CMD_STATUS, .env = NULL, .function = NULL},
Modified: branches/GeanyVC_menu_redesign/vc_git.c =================================================================== --- branches/GeanyVC_menu_redesign/vc_git.c 2009-01-30 16:51:27 UTC (rev 411) +++ branches/GeanyVC_menu_redesign/vc_git.c 2009-01-31 19:26:19 UTC (rev 412) @@ -89,6 +89,7 @@ static const gchar *GIT_CMD_DIFF_FILE[] = { "git", "diff", "HEAD", "--", BASENAME, NULL }; static const gchar *GIT_CMD_DIFF_DIR[] = { "git", "diff", "HEAD", NULL }; static const gchar *GIT_CMD_REVERT_FILE[] = { "git", "checkout", "--", BASENAME, NULL }; +static const gchar *GIT_CMD_REVERT_DIR[] = { "git", NULL }; static const gchar *GIT_CMD_STATUS[] = { "git", "status", NULL }; static const gchar *GIT_CMD_ADD[] = { "git", "add", "--", BASENAME, NULL }; static const gchar *GIT_CMD_REMOVE[] = @@ -103,6 +104,7 @@ static const gchar *GIT_ENV_DIFF_FILE[] = { "PAGER=cat", NULL }; static const gchar *GIT_ENV_DIFF_DIR[] = { "PAGER=cat", NULL }; static const gchar *GIT_ENV_REVERT_FILE[] = { "PAGER=cat", NULL }; +static const gchar *GIT_ENV_REVERT_DIR[] = { "PAGER=cat", NULL }; static const gchar *GIT_ENV_STATUS[] = { "PAGER=cat", NULL }; static const gchar *GIT_ENV_ADD[] = { "PAGER=cat", NULL }; static const gchar *GIT_ENV_REMOVE[] = { "PAGER=cat", NULL }; @@ -111,7 +113,7 @@ static const gchar *GIT_ENV_BLAME[] = { "PAGER=cat", NULL }; static const gchar *GIT_ENV_UPDATE[] = { "PAGER=cat", NULL };
-static const VC_COMMAND commands[] = { +static const VC_COMMAND commands[VC_COMMAND_COUNT] = { { .startdir = VC_COMMAND_STARTDIR_FILE, .command = GIT_CMD_DIFF_FILE, @@ -129,6 +131,11 @@ .function = NULL}, { .startdir = VC_COMMAND_STARTDIR_FILE, + .command = GIT_CMD_REVERT_DIR, + .env = GIT_ENV_REVERT_DIR, + .function = NULL}, + { + .startdir = VC_COMMAND_STARTDIR_FILE, .command = GIT_CMD_STATUS, .env = GIT_ENV_STATUS, .function = NULL},
Modified: branches/GeanyVC_menu_redesign/vc_hg.c =================================================================== --- branches/GeanyVC_menu_redesign/vc_hg.c 2009-01-30 16:51:27 UTC (rev 411) +++ branches/GeanyVC_menu_redesign/vc_hg.c 2009-01-31 19:26:19 UTC (rev 412) @@ -37,6 +37,7 @@ static const gchar *HG_CMD_DIFF_FILE[] = { "hg", "diff", ABS_FILENAME, NULL }; static const gchar *HG_CMD_DIFF_DIR[] = { "hg", "diff", ABS_DIRNAME, NULL }; static const gchar *HG_CMD_REVERT_FILE[] = { "hg", "revert", BASENAME, NULL }; +static const gchar *HG_CMD_REVERT_DIR[] = { "hg", NULL }; static const gchar *HG_CMD_STATUS[] = { "hg", "status", NULL }; static const gchar *HG_CMD_ADD[] = { "hg", "add", BASENAME, NULL }; static const gchar *HG_CMD_REMOVE[] = { "hg", "remove", BASENAME, NULL }; @@ -65,6 +66,11 @@ .function = NULL}, { .startdir = VC_COMMAND_STARTDIR_FILE, + .command = HG_CMD_REVERT_DIR, + .env = NULL, + .function = NULL}, + { + .startdir = VC_COMMAND_STARTDIR_FILE, .command = HG_CMD_STATUS, .env = NULL, .function = NULL},
Modified: branches/GeanyVC_menu_redesign/vc_svk.c =================================================================== --- branches/GeanyVC_menu_redesign/vc_svk.c 2009-01-30 16:51:27 UTC (rev 411) +++ branches/GeanyVC_menu_redesign/vc_svk.c 2009-01-31 19:26:19 UTC (rev 412) @@ -37,6 +37,7 @@ static const gchar *SVK_CMD_DIFF_FILE[] = { "svk", "diff", ABS_FILENAME, NULL }; static const gchar *SVK_CMD_DIFF_DIR[] = { "svk", "diff", ABS_DIRNAME, NULL }; static const gchar *SVK_CMD_REVERT_FILE[] = { "svk", "revert", BASENAME, NULL }; +static const gchar *SVK_CMD_REVERT_FILE[] = { "svk", NULL }; static const gchar *SVK_CMD_STATUS[] = { "svk", "status", NULL }; static const gchar *SVK_CMD_ADD[] = { "svk", "add", BASENAME, NULL }; static const gchar *SVK_CMD_REMOVE[] = { "svk", "remove", BASENAME, NULL }; @@ -65,6 +66,11 @@ .function = NULL}, { .startdir = VC_COMMAND_STARTDIR_FILE, + .command = SVK_CMD_REVERT_DIR, + .env = NULL, + .function = NULL}, + { + .startdir = VC_COMMAND_STARTDIR_FILE, .command = SVK_CMD_STATUS, .env = NULL, .function = NULL},
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.