Changeset 89

Show
Ignore:
Timestamp:
2009年05月13日 22时39分44秒 (3 years ago)
Author:
jiangx
Message:

merge with trunk r84:88. see #13.

Location:
branches/0.2-pylons_0.9.6.2
Files:
6 modified
3 copied

Legend:

Unmodified
Added
Removed
  • branches/0.2-pylons_0.9.6.2

    • Property svn:mergeinfo changed from /trunk:53-81 to /trunk:53-81,​84-88
  • branches/0.2-pylons_0.9.6.2/pySvnManager.egg-info

    • Property svn:mergeinfo set to /trunk/pySvnManager.egg-info:84-88
  • branches/0.2-pylons_0.9.6.2/pySvnManager.egg-info/SOURCES.txt

    r83 r89  
    99config/README 
    1010contrib/mantis/021_checkin_user_as_bug_submit_user.patch 
     11contrib/subversion/30060_fnmatch_section_name.patch 
    1112contrib/trac/10110_trac_svn_hooks_chgset_date.patch 
    1213contrib/trac/10115_trac_svn_hooks_ticket_range.patch 
     
    130131pysvnmanager/model/configobj.py 
    131132pysvnmanager/model/hooks.py 
     133pysvnmanager/model/my_fnmatch.py 
    132134pysvnmanager/model/rcsbackup.py 
    133135pysvnmanager/model/repos.py 
  • branches/0.2-pylons_0.9.6.2/pysvnmanager

    • Property svn:mergeinfo set to /trunk/pysvnmanager:84-88
  • branches/0.2-pylons_0.9.6.2/pysvnmanager/model/rcsbackup.py

    r83 r89  
    6969                {'cmd':CMD_CI, "file":wcfile, "msg":comment, "user":user}) 
    7070        # -U : set locking to no-strict. 
    71         cmd.append('%(cmd)s -U -q "%(file)s"' % {'cmd':CMD_RCS, "file":wcfile}) 
     71        cmd.append('%(cmd)s -U -u -M -q "%(file)s"' % {'cmd':CMD_RCS, "file":wcfile}) 
    7272    else: 
    7373        # Warning: w/o -l or -u option, wcfile will be removed after checkin. 
    7474        # -l makes wcfile writable; 
    7575        # -u : wcfile is not writable unless rcsfile is set to no-strict locking. 
    76         cmd.append('%(cmd)s -q -l -m"%(msg)s" -w"%(user)s" "%(file)s" 2>&1' % \ 
     76        cmd.append('%(cmd)s -q -u -m"%(msg)s" -w"%(user)s" "%(file)s" 2>&1' % \ 
    7777                {'cmd':CMD_CI, "file":wcfile, "msg":comment, "user":user}) 
    7878 
     
    8585        else: 
    8686            if buff: 
     87                os.system('%(cmd)s -U -u -M -q "%(file)s"' % {'cmd':CMD_RCS, "file":wcfile}) 
    8788                raise Exception, "Error Message: %s\n" % buff 
    8889 
  • branches/0.2-pylons_0.9.6.2/pysvnmanager/model/svnauthz.py

    r54 r89  
    2828import sys 
    2929import os 
     30import my_fnmatch 
    3031import StringIO 
    3132import logging 
     
    10081009 
    10091010        for i in self.module_list: 
    1010             if i.path == path: 
     1011            if i.path.lower() == path.lower(): 
    10111012                return i 
    10121013        i = Module(repos=self.name , path=path) 
     
    10311032 
    10321033        for i in self.module_list: 
    1033             if i.path == path: 
     1034            if i.path.lower() == path.lower(): 
    10341035                return i 
     1036        # OSSXP hacked subversion supports wildcard characters as module path. 
     1037        for i in self.module_list: 
     1038            if '*' in i.path or '?' in i.path: 
     1039                if my_fnmatch.fnmatch(path, i.path): 
     1040                    return i 
    10351041        return None 
    10361042 
     
    10751081 
    10761082        for repos in self.repos_list: 
    1077             if repos.name == name: 
     1083            if repos.name.lower() == name.lower(): 
    10781084                return repos 
    10791085 
     
    11021108 
    11031109        repos = self.repos_list[idx] 
    1104         assert(repos.name == name) 
     1110        assert(repos.name.lower() == name.lower()) 
    11051111 
    11061112        if recursive: