You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by hw...@apache.org on 2011/01/04 18:22:35 UTC

svn commit: r1055110 - /subversion/branches/ignore-mergeinfo-log/subversion/tests/cmdline/log_tests.py

Author: hwright
Date: Tue Jan  4 17:22:35 2011
New Revision: 1055110

URL: http://svn.apache.org/viewvc?rev=1055110&view=rev
Log:
On the ignore-mergeinfo-log branch:
Add a couple more test scenarios for 'svn log --ignore-mergeinfo'.

* subversion/tests/cmdline/log_tests.py
  (ignore_mergeinfo_log): Add tests for no args, and for the limit flag.

Modified:
    subversion/branches/ignore-mergeinfo-log/subversion/tests/cmdline/log_tests.py

Modified: subversion/branches/ignore-mergeinfo-log/subversion/tests/cmdline/log_tests.py
URL: http://svn.apache.org/viewvc/subversion/branches/ignore-mergeinfo-log/subversion/tests/cmdline/log_tests.py?rev=1055110&r1=1055109&r2=1055110&view=diff
==============================================================================
--- subversion/branches/ignore-mergeinfo-log/subversion/tests/cmdline/log_tests.py (original)
+++ subversion/branches/ignore-mergeinfo-log/subversion/tests/cmdline/log_tests.py Tue Jan  4 17:22:35 2011
@@ -1777,13 +1777,23 @@ def ignore_mergeinfo_log(sbox):
   svntest.main.file_append(iota_path, 'hey, teacher, leave those kids alone!')
   svntest.main.run_svn(None, 'ci', '-m', 'Log message for revision 5', wc_dir)
 
+  # Vanilla log
+  exit_code, output, err = svntest.actions.run_and_verify_svn(None, None, [],
+                                                  'log', iota_path)
+  check_log_chain(parse_log_output(output), [5, 4, 3, 2, 1])
+
   # Now run log to see if we can omit the svn:mergeinfo revisions
   exit_code, output, err = svntest.actions.run_and_verify_svn(None, None, [],
                                                   'log', '--ignore-mergeinfo',
                                                   iota_path)
+  check_log_chain(parse_log_output(output), [5, 3, 1])
 
-  log_chain = parse_log_output(output)
-  check_log_chain(log_chain, [5, 3, 1])
+  # And with a limit flag
+  exit_code, output, err = svntest.actions.run_and_verify_svn(None, None, [],
+                                                  'log', '--ignore-mergeinfo',
+                                                  '--limit', '2',
+                                                  iota_path)
+  check_log_chain(parse_log_output(output), [5, 3])
 
 
 ########################################################################