Django

Code

Ticket #1378 (closed: fixed)

Opened 3 years ago

Last modified 2 years ago

[patch] Please add svn:ignore for Django dirs

Reported by: Christopher Lenz <cmlenz@gmx.de> Assigned to: jacob
Milestone: Component: Django Web site
Version: Keywords: svn ignore
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

I currently use

$ python setup.py develop

to make the latest version of the magic-removal branch available to the Python runtime directly from a checkout. A side-effect of this is that the Python files are compiled to *.pyc files inside the source directories (but I suppose this also happens when e.g. running the unit tests). When I then run svn st to find out about any patches I made to the working copy, I get a ton of output because Subversion sees all those *.pyc files and doesn't know what to do with them.

It'd be cool if you could add the *.pyc pattern to the svn:ignore property of every directory in the repository that contains Python files.

In addition, the top-level directory should be set to ignore:

build
dist
*.egg-info

so that the results of running `setup.py are ignored, too.

Attachments

svnignore.diff (4.1 kB) - added by Christopher Lenz <cmlenz@gmx.de> on 02/20/06 03:48:15.
Patch for magic-removal (but not sure this can actually be applied... not with patch at least :-P )

Change History

02/20/06 03:48:15 changed by Christopher Lenz <cmlenz@gmx.de>

  • attachment svnignore.diff added.

Patch for magic-removal (but not sure this can actually be applied... not with patch at least :-P )

02/20/06 04:03:32 changed by django@kieranholland.com

FYI you can add global ignores in the [miscellany] section of your subversion config in ~/.subversion/config

e.g.

[miscellany]
### Set global-ignores to a set of whitespace-delimited globs
### which Subversion will ignore in its 'status' output.
global-ignores = *.pyc *.o *.lo *.la *~.htm #*# .*.rej *.rej .*~ *~ .#* .DS_Store

02/20/06 07:01:56 changed by Christopher Lenz <cmlenz@gmx.de>

Thanks for the tip, I must admit I didn't think of that. Would still be nice if Django came with the right ignore settings though.

05/04/06 23:41:35 changed by adrian

  • status changed from new to closed.
  • resolution set to fixed.

(In [2847]) Fixed #1378 -- Added svn:ignore for pyc files for all Django packages

06/12/06 06:09:21 changed by Main

  • type changed from task to defect.

06/14/06 07:17:09 changed by mhf@hex.no

  • status changed from closed to reopened.
  • resolution deleted.
  • summary changed from Please add svn:ignore for Django dirs to [patch] Please add svn:ignore for Django dirs.

There is still one directory without svn:ignore set. Someone with svn-write-access should do:

svn propset svn:ignore "*.pyc" django/conf/urls/

06/14/06 07:26:12 changed by mtredinnick

  • status changed from reopened to closed.
  • resolution set to fixed.

Fixed in [3128].

10/04/06 13:06:26 changed by nick AT efford.org

  • status changed from closed to reopened.
  • resolution deleted.

Some more directories needing svn:ignore set to "*.pyc" (rev 3896):

django/conf/app_template/
django/conf/project_template/
django/contrib/csrf/
django/contrib/humanize/
django/contrib/humanize/templatetags/
django/contrib/sitemaps/
django/utils/translation/

11/02/06 08:42:13 changed by russellm

  • status changed from reopened to closed.
  • resolution set to fixed.

(In [3962]) Fixes #1378 -- Added svn:ignore "*.pyc" to some directories that were missing the property. Thanks, nick@efford.org.


Add/Change #1378 ([patch] Please add svn:ignore for Django dirs)




Change Properties
Action