Changeset 936 in tailor


Ignore:
Timestamp:
10/23/05 02:17:31 (8 years ago)
Author:
lele@…
Hash name:
20051023001731-97f81-14954dcffce9268ae57b0c917c4254b8e94dc783
Message:

Option to not use --limit with subversion < 1.2
This should fix #12.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • vcpx/svn.py

    r934 r936  
    318318            initial = True 
    319319            cmd = self.repository.command("log", "--verbose", "--xml", 
    320                                           "--limit", "1", "--stop-on-copy", 
     320                                          "--stop-on-copy", 
    321321                                          "--revision", "1:HEAD") 
     322            if self.repository.use_limit: 
     323                cmd.extend(["--limit", "1"]) 
    322324            svnlog = ExternalCommand(command=cmd) 
    323325            out, err = svnlog.execute("%s%s" % (self.repository.repository, 
  • README

    r919 r936  
    659659  *False* by default. 
    660660 
     661use-limit : bool 
     662  By default *True*, should be set to *False* when using old 
     663  Subversion clients, since ``log --limit`` was introduced with 
     664  version 1.2. By using this option tailor can fetch just the 
     665  revision it needs, instead of transfering whole history log. 
     666 
    661667svndump 
    662668%%%%%%% 
  • vcpx/repository.py

    r897 r936  
    306306        self.use_propset = config.get(self.name, 'use-propset', False) 
    307307        self.filter_badchars = config.get(self.name, 'filter-badchars', False) 
     308        self.use_limit = config.get(self.name, 'use-limit', True) 
    308309 
    309310    def _validateConfiguration(self): 
Note: See TracChangeset for help on using the changeset viewer.