44
55from subvertpy .ra import RemoteAccess , Auth , get_username_provider
66
7- conn = RemoteAccess ("svn://svn.gnome.org/svn/gnome-specimen/trunk" ,
8- auth = Auth ([get_username_provider ()]))
7+ conn = RemoteAccess (
8+ "svn://svn.gnome.org/svn/gnome-specimen/trunk" , auth = Auth ([get_username_provider ()])
9+ )
910
1011
1112class MyFileEditor :
12-
1313 def change_prop (self , key , value ):
1414 print ("Change prop: %s -> %r" % (key , value ))
1515
1616 def apply_textdelta (self , base_checksum ):
1717 # This should return a function that can receive delta windows
1818 def apply_window (x ):
1919 pass
20+
2021 return apply_window
2122
2223 def close (self ):
2324 pass
2425
2526
2627class MyDirEditor :
27-
2828 def open_directory (self , * args ):
2929 print ("Open dir: %s (base revnum: %r)" % args )
3030 return MyDirEditor ()
@@ -38,8 +38,7 @@ def open_file(self, *args):
3838 return MyFileEditor ()
3939
4040 def add_file (self , path , copyfrom_path = None , copyfrom_rev = - 1 ):
41- print ("Add file: %s (from %r:%r)" %
42- (path , copyfrom_path , copyfrom_rev ))
41+ print ("Add file: %s (from %r:%r)" % (path , copyfrom_path , copyfrom_rev ))
4342 return MyFileEditor ()
4443
4544 def change_prop (self , key , value ):
@@ -53,7 +52,6 @@ def close(self):
5352
5453
5554class MyEditor :
56-
5755 def set_target_revision (self , revnum ):
5856 print ("Target revision: %d" % revnum )
5957
0 commit comments