Opened 9 years ago

Closed 8 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: UI/UX:

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@…> 9 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)

Changed 9 years ago by Christopher Lenz <cmlenz@…>

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

comment:1 Changed 9 years ago by django@…

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 Changed 9 years ago by Christopher Lenz <cmlenz@…>

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 Changed 9 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:4 Changed 9 years ago by Main

  • Type changed from task to defect

comment:5 Changed 9 years ago by mhf@…

  • Resolution fixed deleted
  • Status changed from closed to reopened
  • 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/

comment:6 Changed 9 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from reopened to closed

Fixed in [3128].

comment:7 Changed 8 years ago by nick AT efford.org

  • Resolution fixed deleted
  • Status changed from closed to 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 Changed 8 years ago by russellm

  • Resolution set to fixed
  • Status changed from reopened to closed

(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