Page MenuHomePhabricator

arc patch support for -p from unix patch
Open, NormalPublic

Description

It would be extremely useful if arc patch would support the -p command from unix patch.

The use case is for SVN repositories where they maintain multiple branches. When we commit a diff to one branch I would like to be able to apply the same diff to another branch by using arc patch (preserving the commit messages etc), but this fails because of conflicts on the prefixes in the paths of the changed files.

Manually using patch -p3 is a workaround (there are others as well) but it's a tedious process. Is it possible to add this type of behaviour directly to arc patch?

Event Timeline

rt added a subscriber: rt.

This would be nice, but is a bit complicated because we need to apply it to all the operations (moves, deletes, etc). It probably only makes sense for SVN.

epriestley triaged this task as Normal priority.Nov 28 2012, 2:47 PM
chad changed the visibility from "All Users" to "Public (No Login Required)".Jul 3 2015, 4:06 AM