[GRASS-SVN] r64131 - grass/trunk/general/g.rename

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jan 13 06:47:00 PST 2015


Author: hcho
Date: 2015-01-13 06:47:00 -0800 (Tue, 13 Jan 2015)
New Revision: 64131

Modified:
   grass/trunk/general/g.rename/main.c
Log:
g.rename: Allow renaming when the same name exists in other mapsets

Modified: grass/trunk/general/g.rename/main.c
===================================================================
--- grass/trunk/general/g.rename/main.c	2015-01-13 13:34:41 UTC (rev 64130)
+++ grass/trunk/general/g.rename/main.c	2015-01-13 14:47:00 UTC (rev 64131)
@@ -73,7 +73,7 @@
 		G_warning(_("%s <%s> not found"), M_get_list(n)->maindesc, old);
 		continue;
 	    }
-	    if (M_find(n, new, "") && !(module->overwrite)) {
+	    if (M_find(n, new, mapset) && !(module->overwrite)) {
 		G_warning(_("<%s> already exists in mapset <%s>"), new,
 			  M_find(n, new, ""));
 		continue;



More information about the grass-commit mailing list