Browsing remote branches, so great it hurts!

Thursday, June 07, 2012 0 Comments

I'm going to show you a simple feature that has been there for years but I'm not sure you're all aware of it.

The scenario

I'm working on my laptop, and I have a local Plastic SCM server installed on it because I work in a distributed way. I checkin locally and push/pull changes from the company's central.

Ok, now I need to take a look at an old change that was initially modified on branch SCM9162.

The problem

I go to my branch view and try to find the branch filtering the list.

No luck, the branch is not there.

Plastic SCM replicas are not full replicas, we do support partial replication, which allows you to create light replicas, extremely convenient.

But today I'm looking for an old branch that I never replicated to my local repo...

The solution

I click on the "advanced" button on the branch view and see the following:

My current query is looking for the branches with changes in the last 10 days... in my current repo.

But I can customize the query and search for branches on another repo on a different server!

Now I get the full list of branches on the central repo on the central server and filter to find the branch I'm looking for.

The great part is that you can diff the remote branch, which is sorta normal for old centralized SCMs but out of the scope of the modern DVCS... except Plastic! So I go, right click on it, and browse the diff... without having to pull the remote branch to my very clean and small local repo! :)

0 comentarios: