Homec4science

When doing partial subdirectory parses in Subversion, stub out foreign commit…

Authored by epriestley <git@epriestley.com> on Sep 4 2011, 19:34.

Description

When doing partial subdirectory parses in Subversion, stub out foreign commit references

Summary:
See T325. We tentatively support doing partial subdirectory parses in
Phabricator for Subversion, so you can elect to import only "trunk/local/" or
similar. We do this by importing only some of the commits (those commits which
affected that directory).

In Subversion, you can also "svn cp
svn+ssh://example.com/svnroot/trunk/foreign/example.c@13 local.c". This means
that commits which reference "trunk/local/" may themselves reference foreign
commits.

Currently, we break in this case and can't find the commit reference. Instead,
generate a foreign commit stub so we can at least point at some reasonable
object.

Test Plan: Successfully imported trunk/a/ of the test repo in T325 without
errors. Verified commit 3 in that repo is imported as a foreign stub.

Reviewers: jungejason, nh, tuomaspelkonen, aran

Reviewed By: jungejason

CC: aran, jungejason, epriestley

Differential Revision: 892

Details

Committed
epriestley <git@epriestley.com>Sep 4 2011, 23:10
Pushed
aubortJan 31 2017, 17:16
Parents
rPHed508247ba1a: Fix a bug in the SVN parser which causes it to find commit refs in other SVN…
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHae045a9cf266: When doing partial subdirectory parses in Subversion, stub out foreign commit… (authored by epriestley <git@epriestley.com>).Sep 4 2011, 23:10