Skip to content

Commit

Permalink
Merge pull request #225 from edgardmessias/filename_with_peg_revision
Browse files Browse the repository at this point in the history
Fixed file name with "@" (Close #223)
  • Loading branch information
JohnstonCode committed Mar 20, 2018
2 parents 2667cb8 + c9998b1 commit ebd7714
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/svnRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,14 @@ export class Repository {
removeAbsolutePath(file: string) {
file = fixPathSeparator(file);

return path.relative(this.workspaceRoot, file);
file = path.relative(this.workspaceRoot, file);

// Fix Peg Revision Algorithm (http://svnbook.red-bean.com/en/1.8/svn.advanced.pegrevs.html)
if (/@/.test(file)) {
file += "@";
}

return file;
}

async getStatus(
Expand Down

0 comments on commit ebd7714

Please sign in to comment.