couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject svn commit: r788258 - in /couchdb/trunk: src/couchdb/ test/etap/
Date Thu, 25 Jun 2009 04:57:42 GMT
Author: davisp
Date: Thu Jun 25 04:57:42 2009
New Revision: 788258

URL: http://svn.apache.org/viewvc?rev=788258&view=rev
Log:
Cleaning out tabs from source code. Purely whitespace diff.


Modified:
    couchdb/trunk/src/couchdb/couch_config.erl
    couchdb/trunk/src/couchdb/couch_task_status.erl
    couchdb/trunk/test/etap/070-couch-db.t
    couchdb/trunk/test/etap/080-config-get-set.t
    couchdb/trunk/test/etap/081-config-override.t
    couchdb/trunk/test/etap/082-config-register.t
    couchdb/trunk/test/etap/083-config-no-files.t
    couchdb/trunk/test/etap/090-task-status.t

Modified: couchdb/trunk/src/couchdb/couch_config.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_config.erl?rev=788258&r1=788257&r2=788258&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_config.erl (original)
+++ couchdb/trunk/src/couchdb/couch_config.erl Thu Jun 25 04:57:42 2009
@@ -194,9 +194,9 @@
                 {ok, [ValueName|LineValues]} -> % yeehaw, got a line!
                     RemainingLine = couch_util:implode(LineValues, "="),
                     {ok, [LineValue | _Rest]} = 
-			    regexp:split(RemainingLine, " ;|\t;"), % removes comments
+                regexp:split(RemainingLine, " ;|\t;"), % removes comments
                     {AccSectionName, 
-		     [{{AccSectionName, ValueName}, LineValue} | AccValues]}
+             [{{AccSectionName, ValueName}, LineValue} | AccValues]}
                 end
             end
         end, {"", []}, Lines),

Modified: couchdb/trunk/src/couchdb/couch_task_status.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_task_status.erl?rev=788258&r1=788257&r2=788258&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_task_status.erl (original)
+++ couchdb/trunk/src/couchdb/couch_task_status.erl Thu Jun 25 04:57:42 2009
@@ -95,12 +95,12 @@
     All = [
         [
             {type, Type},
-	        {task, Task},
-	        {status, Status},
-	        {pid, ?l2b(pid_to_list(Pid))}
+            {task, Task},
+            {status, Status},
+            {pid, ?l2b(pid_to_list(Pid))}
         ]
         ||
-	    {Pid, {Type, Task, Status}} <- ets:tab2list(?MODULE)
+        {Pid, {Type, Task, Status}} <- ets:tab2list(?MODULE)
     ],
     {reply, All, Server}.
 

Modified: couchdb/trunk/test/etap/070-couch-db.t
URL: http://svn.apache.org/viewvc/couchdb/trunk/test/etap/070-couch-db.t?rev=788258&r1=788257&r2=788258&view=diff
==============================================================================
--- couchdb/trunk/test/etap/070-couch-db.t (original)
+++ couchdb/trunk/test/etap/070-couch-db.t Thu Jun 25 04:57:42 2009
@@ -38,8 +38,8 @@
             true -> couch_server:delete(MkDbName(Int), []);
             _ -> ok
         end,
-		{ok, Db} = couch_db:create(MkDbName(Int), []),
-		ok = couch_db:close(Db)
+        {ok, Db} = couch_db:create(MkDbName(Int), []),
+        ok = couch_db:close(Db)
     end, lists:seq(1, 200)),
 
     {ok, AllDbs3} = couch_server:all_databases(),

Modified: couchdb/trunk/test/etap/080-config-get-set.t
URL: http://svn.apache.org/viewvc/couchdb/trunk/test/etap/080-config-get-set.t?rev=788258&r1=788257&r2=788258&view=diff
==============================================================================
--- couchdb/trunk/test/etap/080-config-get-set.t (original)
+++ couchdb/trunk/test/etap/080-config-get-set.t Thu Jun 25 04:57:42 2009
@@ -27,38 +27,38 @@
     etap:fun_is(
         fun(List) -> length(List) > 0 end,
         couch_config:all(),
-		"Data was loaded from the INI file."
-	),
+        "Data was loaded from the INI file."
+    ),
     
     etap:fun_is(
         fun(List) -> length(List) > 0 end,
         couch_config:get("daemons"),
-		"There are settings in the [daemons] section of the INI file."
-	),
-	
+        "There are settings in the [daemons] section of the INI file."
+    ),
+    
     etap:is(
         couch_config:get("httpd_design_handlers", "_view"),
-	    "{couch_httpd_view, handle_view_req}",
-	    "The {httpd_design_handlers, view} is the expected default."
-	),
+        "{couch_httpd_view, handle_view_req}",
+        "The {httpd_design_handlers, view} is the expected default."
+    ),
 
     etap:is(
         couch_config:get("httpd", "foo", "bar"),
         "bar",
-	    "Returns the default when key doesn't exist in config."
-	),
-	
-	etap:is(
-	    couch_config:get("httpd", "foo"),
-	    undefined,
-	    "The default default is the atom 'undefined'."
-	),
+        "Returns the default when key doesn't exist in config."
+    ),
+    
+    etap:is(
+        couch_config:get("httpd", "foo"),
+        undefined,
+        "The default default is the atom 'undefined'."
+    ),
     
     etap:is(
         couch_config:get("httpd", "port", "bar"),
         "5984",
-	    "Only returns the default when the config setting does not exist."
-	),
+        "Only returns the default when the config setting does not exist."
+    ),
 
 
     % Check that setting values works.
@@ -69,8 +69,8 @@
     etap:is(
         couch_config:get("log", "level"),
         "severe",
-	    "Non persisted changes take effect."
-	),
+        "Non persisted changes take effect."
+    ),
     
     etap:is(
         couch_config:get("new_section", "bizzle"),

Modified: couchdb/trunk/test/etap/081-config-override.t
URL: http://svn.apache.org/viewvc/couchdb/trunk/test/etap/081-config-override.t?rev=788258&r1=788257&r2=788258&view=diff
==============================================================================
--- couchdb/trunk/test/etap/081-config-override.t (original)
+++ couchdb/trunk/test/etap/081-config-override.t Thu Jun 25 04:57:42 2009
@@ -48,9 +48,9 @@
         etap:is(
             couch_config:get("couchdb", "max_dbs_open"),
             "100",
-    	    "{couchdb, max_dbs_open} is 100 by defualt."
-    	),
-	
+            "{couchdb, max_dbs_open} is 100 by defualt."
+        ),
+    
         etap:is(
             couch_config:get("httpd","port"),
             "5984",

Modified: couchdb/trunk/test/etap/082-config-register.t
URL: http://svn.apache.org/viewvc/couchdb/trunk/test/etap/082-config-register.t?rev=788258&r1=788257&r2=788258&view=diff
==============================================================================
--- couchdb/trunk/test/etap/082-config-register.t (original)
+++ couchdb/trunk/test/etap/082-config-register.t Thu Jun 25 04:57:42 2009
@@ -72,4 +72,4 @@
         "Implicitly test that the function got de-registered"
     ),
    
-    ok.
\ No newline at end of file
+    ok.

Modified: couchdb/trunk/test/etap/083-config-no-files.t
URL: http://svn.apache.org/viewvc/couchdb/trunk/test/etap/083-config-no-files.t?rev=788258&r1=788257&r2=788258&view=diff
==============================================================================
--- couchdb/trunk/test/etap/083-config-no-files.t (original)
+++ couchdb/trunk/test/etap/083-config-no-files.t Thu Jun 25 04:57:42 2009
@@ -40,4 +40,4 @@
         "Asking for a persistent key/value pair doesn't choke."
     ),
 
-    ok.
\ No newline at end of file
+    ok.

Modified: couchdb/trunk/test/etap/090-task-status.t
URL: http://svn.apache.org/viewvc/couchdb/trunk/test/etap/090-task-status.t?rev=788258&r1=788257&r2=788258&view=diff
==============================================================================
--- couchdb/trunk/test/etap/090-task-status.t (original)
+++ couchdb/trunk/test/etap/090-task-status.t Thu Jun 25 04:57:42 2009
@@ -17,33 +17,33 @@
     From = list_to_binary(pid_to_list(Pid)),
     Element = lists:foldl(
         fun(PropList,Acc) ->
-	        case proplists:get_value(pid,PropList) of
-			    From ->
+            case proplists:get_value(pid,PropList) of
+                From ->
                     [PropList | Acc];
-				_ ->
+                _ ->
                     []
-			end
-		end,
+            end
+        end,
         [], ListPropLists
     ),
     proplists:get_value(status,hd(Element)).
 
 loop() ->
     receive
-	{add, From} ->
-	    Resp = couch_task_status:add_task("type", "task", "init"),
-	    From ! {ok, self(), Resp},
-	    loop();
-	{update, Status, From} ->
-	    Resp = couch_task_status:update(Status),
-	    From ! {ok, self(), Resp},
-	    loop();
-	{update_frequency, Msecs, From} ->
-	    Resp = couch_task_status:set_update_frequency(Msecs),
-	    From ! {ok, self(), Resp},
-	    loop();
-	{done, From} ->
-	    From ! {ok, self(), ok}
+    {add, From} ->
+        Resp = couch_task_status:add_task("type", "task", "init"),
+        From ! {ok, self(), Resp},
+        loop();
+    {update, Status, From} ->
+        Resp = couch_task_status:update(Status),
+        From ! {ok, self(), Resp},
+        loop();
+    {update_frequency, Msecs, From} ->
+        Resp = couch_task_status:set_update_frequency(Msecs),
+        From ! {ok, self(), Resp},
+        loop();
+    {done, From} ->
+        From ! {ok, self(), ok}
     end.
 
 call(Pid, Command) ->
@@ -86,15 +86,15 @@
     etap:is(
         check_status(Pid1, couch_task_status:all()),
         <<"init">>,
-		"Task status was set to 'init'."
+        "Task status was set to 'init'."
     ),
 
     call(Pid1,update,"running"),
     etap:is(
         check_status(Pid1,couch_task_status:all()),
         <<"running">>,
-		"Status updated to 'running'."
-	),
+        "Status updated to 'running'."
+    ),
 
 
     call(Pid2,add),
@@ -107,15 +107,15 @@
     etap:is(
         check_status(Pid2, couch_task_status:all()),
         <<"init">>,
-		"Second tasks's status was set to 'init'."
-	),
-	
+        "Second tasks's status was set to 'init'."
+    ),
+    
     call(Pid2, update, "running"),
     etap:is(
         check_status(Pid2, couch_task_status:all()),
         <<"running">>,
-		"Second task's status updated to 'running'."
-	),
+        "Second task's status updated to 'running'."
+    ),
 
 
     call(Pid3, add),
@@ -128,15 +128,15 @@
     etap:is(
         check_status(Pid3, couch_task_status:all()),
         <<"init">>,
-		"Third tasks's status was set to 'init'."
-	),
-	
+        "Third tasks's status was set to 'init'."
+    ),
+    
     call(Pid3, update, "running"),
     etap:is(
         check_status(Pid3, couch_task_status:all()),
         <<"running">>,
-		"Third task's status updated to 'running'."
-	),
+        "Third task's status updated to 'running'."
+    ),
 
 
     call(Pid3, update_frequency, 500),
@@ -144,23 +144,23 @@
     etap:is(
         check_status(Pid3, couch_task_status:all()),
         <<"still running">>,
-		"Third task's status updated to 'still running'."
-	),
+        "Third task's status updated to 'still running'."
+    ),
 
     call(Pid3, update, "skip this update"),
     etap:is(
         check_status(Pid3, couch_task_status:all()),
         <<"still running">>,
-		"Status update dropped because of frequency limit."
-	),
+        "Status update dropped because of frequency limit."
+    ),
 
     call(Pid3, update_frequency, 0),
     call(Pid3, update, "don't skip"),
     etap:is(
         check_status(Pid3, couch_task_status:all()),
         <<"don't skip">>,
-		"Status updated after reseting frequency limit."
-	),
+        "Status updated after reseting frequency limit."
+    ),
 
 
     call(Pid1, done),



Mime
View raw message