Jump to content

Deleting and Creating Xlinks


rclark

Recommended Posts

I have issues with xlinks where referenced changesets were deleted, causing xlinks to be 'corrupted' and point to Guids instead of changeset numbers.  Likewise, the wxlink'd repository gives a Guid prefix to the repository name.  Example being:

Quote

wxlink:d465596c-1648-45cc-a5d0-ae8683af6665:Utilities:/@3190494a-3ff5-4d44-963b-d0115cbe178e@CommonUtilities@relserver

We have nested xlinks, which have resulted in only one of the nestings having corrupted xlinks.  For example, our common xlink structure between repos is: RepoA & Repo B rely on Repo3, Repo3 relies on Repo2, Repo2 relies on Repo1.  RepoA will show a corrupted xlink for Repo1, but Repo2 won't.  Normally we would only resolve the top level xlink (RepoA would update the xlink for Repo3), but due to the corruption we have to resolve it out of order.  This has caused a slew of issues: loss of branch expansion default rules, automatic xlink commits which cause circular dependencies, etc.

What I believe to be the main issue is when commits delete the default branch expansion rule.  For instance, what should be this:

Quote

br:/main/dev@Networking@plastic-1:8087 -> br:/main/dev@Database@plastic-1:8087

...will receive a commit during automatic xlink commits which change the rule to this instead:

Quote

br:/main/dev/TASK-1100/TASK-1100@Networking@plastic-1:8087 -> br:/main/dev/TASK-1100/TASK-1100/TASK-1100/TASK-1100@Database@plastic-1:8087

When losing the default branch rule, our external builder (TeamCity) fails to resolve branch xlinks, causing all builds to fail.

With all of this said, I'm looking to delete our xlinks and recreate them—but I have no way to delete an existing xlink using the Plastic GUI (v9.0.16.4608).  When attempting to create an xlink over the pre-existing one, it tries to reference the repo itself as source and destination, instead of the provided source repo—which gives the error "A repository cannot be loaded inside itself."

How can I delete these 'corrupted' xlinks and create new ones?

----

Our Senior System Admin, @rodgeralley, can add more info on the Plastic setup.

Link to comment
Share on other sites

Hi,

- The Xlinks are always pointing to changeset guids (the universal identified for a changeset). I'm afraid I don't fully understand your workflow. If you can reach us via support ticket, we can arrange a meeting a debug your setup. If the XLink target changeset is deleted, you should be able to edit the Xlink target to a different changeset.

Quote

 

With all of this said, I'm looking to delete our xlinks and recreate them—but I have no way to delete an existing xlink using the Plastic GUI (v9.0.16.4608).  When attempting to create an xlink over the pre-existing one, it tries to reference the repo itself as source and destination, instead of the provided source repo—which gives the error "A repository cannot be loaded inside itself."

How can I delete these 'corrupted' xlinks and create new ones?

 

You need to delete and recreate the Xlinks from the parent repo (not from the XLinked repo):

image.png

 

"A repository cannot be loaded inside itself." -->  If you are getting this error message, I'm guessing if you are trying to create the the Xlink inside the Xlinked repo when it needs to be created from the parent repo.

Regards,

Carlos.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...