diff -u scripts/trac-admin scripts2/trac-admin
--- scripts/trac-admin	2004-08-11 13:38:13.000000000 -0700
+++ scripts2/trac-admin	2004-08-11 13:39:55.937500000 -0700
@@ -443,7 +443,18 @@
                     raise KeyboardInterrupt
                 except Exception, e:
                     print repository_dir, 'Repository access error: %s' % e
-
+            print
+            print ' Please specify the relative subpath in the Subversion repository.'
+            print ' Use this to show only a part of the repository in trac '
+            print
+            while 1:
+                try:
+                    drp = '/'
+                    prompt = 'Repository Subpath [%s]> ' % drp
+                    repository_path = raw_input(prompt) or drp                   
+                    break
+                except KeyboardInterrupt:
+                    raise KeyboardInterrupt
             print
             print ' Please enter location of Trac page templates.'
             print ' Default is the location of the site-wide templates' \
@@ -472,6 +483,8 @@
             print ' Configuring Project'
             print '  trac.repository_dir'
             self.__env.set_config('trac', 'repository_dir', repository_dir)
+            print '  trac.repository_path'
+            self.__env.set_config('trac', 'repository_path', repository_path)
             print '  trac.templates_dir'
             self.__env.set_config('trac', 'templates_dir', templates_dir)
             print '  project.name'
@@ -484,7 +497,7 @@
 
             from trac import sync
             print ' Indexing repository'
-            sync.sync(cnx, rep, fs_ptr, pool)
+            sync.sync(cnx, rep, repository_path, fs_ptr, pool)
             print 'Done.'
         except Exception, e:
             print 'Failed to initialize database.', e

