[Python-Dev] whitespace normalization pre-commit hook is giving me grief (original) (raw)
Neal Norwitz nnorwitz at gmail.com
Sat May 26 21:41:11 CEST 2007
- Previous message: [Python-Dev] whitespace normalization pre-commit hook is giving me grief
- Next message: [Python-Dev] whitespace normalization pre-commit hook is giving me grief
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 5/26/07, Brett Cannon <brett at python.org> wrote:
On 5/25/07, Georg Brandl <g.brandl at gmx.net> wrote: > Neal Norwitz schrieb: > > On 5/25/07, Brett Cannon <brett at python.org> wrote: > >> In my bcannon-objcap branch I am trying to check in a change that involves a > >> soft symlink from Lib/controlledimportlib.py to > >> ../importlib/controlledimportlib.py through ``ln -s > >> ../controlledimportlib.py controlledimportlib.py`` while in the Lib > >> directory. I have done this before in this branch so as to allow for easy > >> importing of code from the svn import of importlib that the branch contains. > > > > I don't know that we've ever tested the commit hook with a link. > > Maybe there is some other problem. > > The cause: For symlinks, SVN saves a file containing "link /target" and sets > the "svn:special" property. Since the special file doesn't end with a newline, > reindent adds that, and boom. > > The solution: add > if fs.nodeprop(txnroot, path, 'svn:special') == '*': continue > > in the commit hook's for loop. Great! So can someone do this? I don't know where the svn hook code is stored, let alone whether I have access to commit a change.
I made the change Georg suggested, give it a try.
n
- Previous message: [Python-Dev] whitespace normalization pre-commit hook is giving me grief
- Next message: [Python-Dev] whitespace normalization pre-commit hook is giving me grief
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]