@@ -174,14 +174,14 @@ def checkout(
174
174
>>> svn = Svn(dir=tmp_path)
175
175
>>> svn_remote_repo = create_svn_remote_repo()
176
176
>>> svn.checkout(url=f'file://{svn_remote_repo}')
177
- 'Checked out revision ...'
178
- >>> svn.checkout(url=f'file://{svn_remote_repo}', revision=1 )
179
- 'svn: E160006: No such revision 1 ...'
177
+ '... Checked out revision ...'
178
+ >>> svn.checkout(url=f'file://{svn_remote_repo}', revision=10 )
179
+ 'svn: E160006: No such revision 10 ...'
180
180
"""
181
181
local_flags : list [str ] = [url , str (self .dir )]
182
182
183
183
if revision is not None :
184
- local_flags .extend (["--revision" , revision ])
184
+ local_flags .extend (["--revision" , str ( revision ) ])
185
185
if depth is not None :
186
186
local_flags .extend (["--depth" , depth ])
187
187
if force is True :
@@ -339,8 +339,9 @@ def blame(
339
339
Examples
340
340
--------
341
341
>>> svn = Svn(dir=tmp_path)
342
- >>> svn.checkout(url=f'file://{create_svn_remote_repo()}')
343
- 'Checked out revision ...'
342
+ >>> repo = create_svn_remote_repo()
343
+ >>> svn.checkout(url=f'file://{repo}')
344
+ '...Checked out revision ...'
344
345
>>> new_file = tmp_path / 'new.txt'
345
346
>>> new_file.write_text('example text', encoding="utf-8")
346
347
12
@@ -349,7 +350,7 @@ def blame(
349
350
>>> svn.commit(path=new_file, message='My new commit')
350
351
'...'
351
352
>>> svn.blame('new.txt')
352
- '1 ... example text'
353
+ '4 ... example text'
353
354
"""
354
355
local_flags : list [str ] = [str (target )]
355
356
@@ -449,7 +450,7 @@ def commit(
449
450
>>> svn.add(path=new_file)
450
451
'A new.txt'
451
452
>>> svn.commit(path=new_file, message='My new commit')
452
- 'Adding new.txt...Transmitting file data...Committed revision 1 .'
453
+ 'Adding new.txt...Transmitting file data...Committed revision 4 .'
453
454
"""
454
455
local_flags : list [str ] = []
455
456
0 commit comments