Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(99)

Issue 5369087: Strip a/ b/ when converting Mercurial patch to Subversion

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 11 months ago by techtonik
Modified:
13 years, 11 months ago
Reviewers:
Andi Albrecht, M-A
CC:
codereview-discuss_googlegroups.com
Visibility:
Public.

Description

Currently, if you upload patch from Mercurial, diff is translated to SVN format, but filenames are still prepended with a/ and b/ prefixes. See http://codereview.appspot.com/download/issue5338049_1.diff Here is a fix for that.

Patch Set 1 #

Patch Set 2 : Do not skip non-matched lines after header #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -1 line) Patch
M upload.py View 1 2 chunks +9 lines, -1 line 0 comments Download

Messages

Total messages: 11
techtonik
13 years, 11 months ago (2011-11-11 20:13:27 UTC) #1
techtonik
13 years, 11 months ago (2011-11-11 20:21:25 UTC) #2
M-A
As a general note, I'd prefer this not to be done with git, since I ...
13 years, 11 months ago (2011-11-11 20:26:37 UTC) #3
techtonik
On 2011/11/11 20:26:37, M-A wrote: > As a general note, I'd prefer this not to ...
13 years, 11 months ago (2011-11-11 20:49:41 UTC) #4
M-A
Le 11 novembre 2011 15:49, <techtonik@gmail.com> a écrit : > On 2011/11/11 20:26:37, M-A wrote: ...
13 years, 11 months ago (2011-11-11 21:01:24 UTC) #5
techtonik
On 2011/11/11 21:01:24, M-A wrote: > Le 11 novembre 2011 15:49, <mailto:techtonik@gmail.com> a écrit : ...
13 years, 11 months ago (2011-11-11 22:17:16 UTC) #6
M-A
On 2011/11/11 22:17:16, techtonik wrote: > > Well, if a patch was generated from mercurial, ...
13 years, 11 months ago (2011-11-11 22:23:40 UTC) #7
techtonik
On 2011/11/11 22:23:40, M-A wrote: > On 2011/11/11 22:17:16, techtonik wrote: > > > Well, ...
13 years, 11 months ago (2011-11-11 22:26:30 UTC) #8
Andi Albrecht
On Fri, Nov 11, 2011 at 11:17 PM, <techtonik@gmail.com> wrote: > On 2011/11/11 21:01:24, M-A ...
13 years, 11 months ago (2011-11-12 06:48:00 UTC) #9
techtonik
On 2011/11/12 06:48:00, Andi Albrecht wrote: > > > > When it is generated by ...
13 years, 11 months ago (2011-11-12 07:06:47 UTC) #10
techtonik
13 years, 11 months ago (2011-11-12 07:23:03 UTC) #11
To summarize. I don't like that Rietveld generates invalid patches in SVN format. SVN patches shouldn't require any strip command to be applied - only correct directory. Another reason is that my python-patch library doesn't support strips, so before writing a wrapper implementing workaround for invalid paths, I decided to fix it in Rietveld first. So far I see only one objection against this change - it is because this bug is used to detect how patches were generated. Because there is no other way to detect VCS otherwise. So, instead of relying on this implicit behavior, I propose to implement the feature of detecting VCS properly, and use Repository ID in the meanwhile.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b