Opened 19 years ago

Closed 18 years ago

#1378 closed defect (fixed)

[patch] Please add svn:ignore for Django dirs

Reported by: Christopher Lenz <cmlenz@…> 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)

svnignore.diff (4.1 KB ) - added by Christopher Lenz <cmlenz@…> 19 years ago.
Patch for magic-removal (but not sure this can actually be applied... not with patch at least :-P )

Download all attachments as: .zip

Change History (9)

by Christopher Lenz <cmlenz@…>, 19 years ago

Attachment: svnignore.diff added

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

comment:1 by django@…, 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 Christopher Lenz <cmlenz@…>, 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 Adrian Holovaty, 19 years ago

Resolution: fixed
Status: newclosed

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

comment:4 by Main, 19 years ago

Type: taskdefect

comment:5 by mhf@…, 19 years ago

Resolution: fixed
Status: closedreopened
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:6 by Malcolm Tredinnick, 19 years ago

Resolution: fixed
Status: reopenedclosed

Fixed in [3128].

comment:7 by nick AT efford.org, 18 years ago

Resolution: fixed
Status: closedreopened

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 Russell Keith-Magee, 18 years ago

Resolution: fixed
Status: reopenedclosed

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

Note: See TracTickets for help on using tickets.
Back to Top