Skip to content

Commit fd090c4

Browse files
committed
fixes #261
1 parent 6d58d05 commit fd090c4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/repository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ export class Repository {
596596
return;
597597
}
598598

599-
return toSvnUri(uri, SvnUriAction.SHOW);
599+
return toSvnUri(uri, SvnUriAction.SHOW, {}, true);
600600
}
601601

602602
async getBranches() {

src/uri.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function fromSvnUri(uri: Uri): SvnUriParams {
2222
return JSON.parse(uri.query);
2323
}
2424

25-
export function toSvnUri(uri: Uri, action: SvnUriAction, extra: SvnUriExtraParams = {}): Uri {
25+
export function toSvnUri(uri: Uri, action: SvnUriAction, extra: SvnUriExtraParams = {}, replaceFileExtension = false): Uri {
2626
const params: SvnUriParams = {
2727
action: action,
2828
fsPath: uri.fsPath,
@@ -31,7 +31,7 @@ export function toSvnUri(uri: Uri, action: SvnUriAction, extra: SvnUriExtraParam
3131

3232
return uri.with({
3333
scheme: "svn",
34-
path: uri.path,
34+
path: replaceFileExtension ? uri.path + '.svn' : uri.path,
3535
query: JSON.stringify(params)
3636
});
3737
}

0 commit comments

Comments
 (0)