hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tomwh...@apache.org
Subject svn commit: r890551 - in /hadoop/common/trunk: CHANGES.txt src/java/org/apache/hadoop/fs/FsShell.java
Date Mon, 14 Dec 2009 23:28:41 GMT
Author: tomwhite
Date: Mon Dec 14 23:28:40 2009
New Revision: 890551

URL: http://svn.apache.org/viewvc?rev=890551&view=rev
Log:
HADOOP-6414. Add command line help for -expunge command. Contributed by Ravi Phulari.

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=890551&r1=890550&r2=890551&view=diff
==============================================================================
--- hadoop/common/trunk/CHANGES.txt (original)
+++ hadoop/common/trunk/CHANGES.txt Mon Dec 14 23:28:40 2009
@@ -83,6 +83,9 @@
 
     HADOOP-6428. HttpServer sleeps with negative values. (cos)
 
+    HADOOP-6414. Add command line help for -expunge command.
+    (Ravi Phulari via tomwhite)
+
 Release 0.21.0 - Unreleased
 
   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=890551&r1=890550&r2=890551&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 Mon Dec 14 23:28:40 2009
@@ -1505,6 +1505,8 @@
     
     String chgrp = FsShellPermissions.CHGRP_USAGE + "\n" +
       "\t\tThis is equivalent to -chown ... :GROUP ...\n";
+
+    String expunge = "-expunge: Empty the Trash.\n";
     
     String help = "-help [cmd]: \tDisplays help for given command or all commands if none\n"
+
       "\t\tis specified.\n";
@@ -1527,6 +1529,8 @@
       System.out.println(dus);
     } else if ("rm".equals(cmd)) {
       System.out.println(rm);
+    } else if ("expunge".equals(cmd)) {
+      System.out.println(expunge);
     } else if ("rmr".equals(cmd)) {
       System.out.println(rmr);
     } else if ("mkdir".equals(cmd)) {



Mime
View raw message