Opened 19 years ago
Closed 18 years ago
#1378 closed defect (fixed)
[patch] Please add svn:ignore for Django dirs
Reported by: | Owned by: | Jacob | |
---|---|---|---|
Component: | *.djangoproject.com | Version: | |
Severity: | minor | Keywords: | svn ignore |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
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 (1)
Change History (9)
by , 19 years ago
Attachment: | svnignore.diff added |
---|
comment:1 by , 19 years ago
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
comment:2 by , 19 years ago
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.
comment:3 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 by , 18 years ago
Type: | task → defect |
---|
comment:5 by , 18 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Summary: | Please add svn:ignore for Django dirs → [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/
comment:7 by , 18 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
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/
comment:8 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Patch for magic-removal (but not sure this can actually be applied... not with
patch
at least :-P )