Author: szetszwo
Date: Wed Mar 23 21:54:16 2011
New Revision: 1084770

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

Modified:
    hadoop/common/branches/branch-0.22/CHANGES.txt
    
hadoop/common/branches/branch-0.22/src/java/org/apache/hadoop/fs/FsShell.java

Modified: hadoop/common/branches/branch-0.22/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.22/CHANGES.txt?rev=1084770&r1=1084769&r2=1084770&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.22/CHANGES.txt (original)
+++ hadoop/common/branches/branch-0.22/CHANGES.txt Wed Mar 23 21:54:16 2011
@@ -474,6 +474,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/branches/branch-0.22/src/java/org/apache/hadoop/fs/FsShell.java
URL: 
http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.22/src/java/org/apache/hadoop/fs/FsShell.java?rev=1084770&r1=1084769&r2=1084770&view=diff
==============================================================================
--- 
hadoop/common/branches/branch-0.22/src/java/org/apache/hadoop/fs/FsShell.java 
(original)
+++ 
hadoop/common/branches/branch-0.22/src/java/org/apache/hadoop/fs/FsShell.java 
Wed Mar 23 21:54:16 2011
@@ -1487,8 +1487,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";


Reply via email to