Page MenuHomePhabricator

Add support for creating revision from existing git commit
Needs RevisionPublic

Authored by djc on Jul 7 2014, 2:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 1, 11:18 PM
Unknown Object (File)
Mon, Sep 30, 1:04 PM
Unknown Object (File)
Sat, Sep 21, 1:54 PM
Unknown Object (File)
Thu, Sep 12, 3:30 PM
Unknown Object (File)
Thu, Sep 12, 3:30 PM
Unknown Object (File)
Aug 27 2024, 5:02 AM
Unknown Object (File)
Aug 25 2024, 5:47 AM
Unknown Object (File)
Aug 6 2024, 2:29 PM

Details

Reviewers
None
Group Reviewers
Blessed Reviewers
Test Plan

basic testing with a sample repository/changeset

Diff Detail

Repository
rARC Arcanist
Branch
master
Lint
Lint Passed
Unit
Test Failures
Build Status
Buildable 1565
Build 1566: [Placeholder Plan] Wait for 30 Seconds

Unit TestsFailed

TimeTest
0 mstestSvnStateParsing
0 mstestGitStateParsing
0 mstestSVNFileEscapes
0 mstestHgStateParsing

Event Timeline

djc retitled this revision from to Add support for creating revision from existing git commit.
djc updated this object.
djc edited the test plan for this revision. (Show Details)

You can already do this with:

$ git show X | arc diff --raw
$ arc diff X^ --head X

If you do this frequently, maybe you could make an alias? I think something like this would work:

$ arc alias diffone -- '!arc diff $0^ --head $0'

...then:

$ arc diffone X

Basically, I'm not sure this is useful enough on its own to justify implementing fully.

Well, I'm not the only one who has been asking for this. And I think you mentioned something about --raw giving the revision not as much context? Or do you just mean Arcanist/Phabricator features that depend on having a working copy, which are impossible to get working anyway in this model?

joshuaspence added a reviewer: joshuaspence.
joshuaspence added a subscriber: joshuaspence.

As mentioned by @epriestley, this is already possible with arc diff --raw

This revision now requires changes to proceed.Feb 28 2015, 9:18 AM