[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: rev 4040 - trunk/subversion/tests/clients/cmdline

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2002-12-09 15:47:19 CET

kraai@tigris.org writes:
> * subversion/tests/clients/cmdline/stat_tests.py
> (status_blank_for_ignored_file): New.

Maybe "unignored_file", since it passes the `--no-ignore' flag? I
know that seems picky, but the current test name could be confusing to
someone who looks closely at the code.

(Sorry if I missed this in the first review.)

-K

> Modified: trunk/subversion/tests/clients/cmdline/stat_tests.py
> ==============================================================================
> --- trunk/subversion/tests/clients/cmdline/stat_tests.py (original)
> +++ trunk/subversion/tests/clients/cmdline/stat_tests.py Fri Dec 6 17:33:46 2002
> @@ -243,6 +243,33 @@
> return 0
>
>
> +def status_blank_for_ignored_file(sbox):
> + "status blank for ignored file"
> +
> + if sbox.build():
> + return 1
> +
> + wc_dir = sbox.wc_dir
> + was_cwd = os.getcwd()
> +
> + os.chdir(wc_dir)
> +
> + svntest.main.file_append('newfile', 'this is a new file')
> + svntest.main.run_svn(None, 'propset', 'svn:ignore', 'newfile', '.')
> + stat_output, err_output = svntest.main.run_svn(None, 'status', '--no-ignore',
> + '.')
> + if err_output:
> + return 1
> + status = 1
> + for line in stat_output:
> + if re.match(" +newfile", line):
> + status = 0
> +
> + os.chdir(was_cwd)
> +
> + return status
> +
> +
> ########################################################################
> # Run the tests
>
> @@ -255,6 +282,7 @@
> status_missing_file,
> status_type_change,
> status_with_new_files_pending,
> + status_blank_for_ignored_file,
> ]
>
> if __name__ == '__main__':
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: svn-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: svn-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Dec 9 16:26:19 2002

This is an archived mail posted to the Subversion Dev mailing list.