]> khamidou — GitHub mirrors - arcanist.git/commit
Fix an escaping issue with "svn commit"
authorepriestley <git@epriestley.com>
Mon, 28 Jan 2013 22:11:31 +0000 (14:11 -0800)
committerepriestley <git@epriestley.com>
Mon, 28 Jan 2013 22:11:31 +0000 (14:11 -0800)
commit53691cdcf98a4d257040bade401815542bd39b05
treea82f9095a299703bc971197cc73eb5aa3390f383
parentce0a491bcd168148107d0fa22b760dc6973ec29a
Fix an escaping issue with "svn commit"

Summary: Fixes T2438. We currently escape everything with '@', but SVN rejects that for '.'

Test Plan:
Unit tests. Performed this commit:

  $ svn st
   M      .
  A       x@123
  $ arc commit --conduit-uri=http://local.aphront.com:8080/ --revision 53

      Revision 'D53: asdf' has not been accepted. Commit this revision anyway?
      [y/N] y

  Committing 'D53: asdf'...
  Sending        .
  Adding         x@123
  Transmitting file data .
  Committed revision 37.
  Done.

I grepped for more '@' adding but couldn't find any. It's a bit tricky to grep for though, so it's possible I missed some.

Reviewers: btrahan, vrana

Reviewed By: btrahan

CC: aran, mbishopim3
Maniphest Tasks: T2438

Differential Revision: https://secure.phabricator.com/D4703
src/__phutil_library_map__.php
src/repository/api/ArcanistSubversionAPI.php
src/repository/api/__tests__/ArcanistRepositoryAPIMiscTestCase.php [new file with mode: 0644]
src/workflow/ArcanistCommitWorkflow.php