You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by sz...@apache.org on 2011/03/23 22:53:58 UTC

svn commit: r1084769 - in /hadoop/common/trunk: CHANGES.txt src/java/org/apache/hadoop/fs/FsShell.java

Author: szetszwo
Date: Wed Mar 23 21:53:58 2011
New Revision: 1084769

URL: http://svn.apache.org/viewvc?rev=1084769&view=rev
Log:
HADOOP-7193. Correct the "fs -touchz" command help message.  Contributed by Uma Maheswara Rao G

Modified:
    hadoop/common/trunk/CHANGES.txt
    hadoop/common/trunk/src/java/org/apache/hadoop/fs/FsShell.java

Modified: hadoop/common/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/CHANGES.txt?rev=1084769&r1=1084768&r2=1084769&view=diff
==============================================================================
--- hadoop/common/trunk/CHANGES.txt (original)
+++ hadoop/common/trunk/CHANGES.txt Wed Mar 23 21:53:58 2011
@@ -598,6 +598,9 @@ Release 0.21.1 - Unreleased
     fs.checkpoint.* with dfs.namenode.checkpoint.* in documentations.
     (Harsh J Chouraria via szetszwo)
 
+    HADOOP-7193. Correct the "fs -touchz" command help message.
+    (Uma Maheswara Rao G via szetszwo)
+
 Release 0.21.0 - 2010-08-13
 
   INCOMPATIBLE CHANGES

Modified: hadoop/common/trunk/src/java/org/apache/hadoop/fs/FsShell.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/src/java/org/apache/hadoop/fs/FsShell.java?rev=1084769&r1=1084768&r2=1084769&view=diff
==============================================================================
--- hadoop/common/trunk/src/java/org/apache/hadoop/fs/FsShell.java (original)
+++ hadoop/common/trunk/src/java/org/apache/hadoop/fs/FsShell.java Wed Mar 23 21:53:58 2011
@@ -1499,8 +1499,9 @@ public class FsShell extends Configured 
       + "\t\tThe -R flag requests a recursive change of replication level \n"
       + "\t\tfor an entire tree.\n";
 
-    String touchz = "-touchz <path>: Write a timestamp in yyyy-MM-dd HH:mm:ss format\n" +
-      "\t\tin a file at <path>. An error is returned if the file exists with non-zero length\n";
+    String touchz = "-touchz <path>: Creates a file of zero length\n"
+	+ "\t\t at <path> with current time as the timestamp of that <path>.\n"
+	+ "\t\t An error is returned if the file exists with non-zero length\n";
 
     String test = "-test -[ezd] <path>: If file { exists, has zero length, is a directory\n" +
       "\t\tthen return 0, else return 1.\n";