Skip to content

Commit 20bfb55

Browse files
committed
fixes #57
1 parent 832fa9a commit 20bfb55

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/commands.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,16 @@ export class SvnCommands {
304304

305305
@command("svn.revert", { repository: true })
306306
async revert(repository: Repository, ...args: any[][]) {
307+
const yes = "Yes I'm sure";
308+
const answer = await window.showWarningMessage(
309+
"Are you sure? This will wipe all local changes.",
310+
yes
311+
);
312+
313+
if (answer !== yes) {
314+
return;
315+
}
316+
307317
try {
308318
const paths = args[0].map(state => {
309319
return state.resourceUri.fsPath;

0 commit comments

Comments
 (0)