Fossil SCM

make it possible to specify branch with "open" command

Closed

6c897c0fd01385b… · opened 16 years, 5 months ago

Type
Feature_Request
Priority
Severity
Important
Resolution
Overcome_By_Events
Subsystem
Created
Nov. 6, 2009 7:51 a.m.

I would like to see a flag added to the "open" command that makes it possible to specify which branch or version is to be written out on the initial checkout.

When an initial checkout is done using the "open" command, the command's behavior in terms of which branch is checked out is undocumented. Observation suggests that the checked-out branch is the last one to have something checked in to it. If that's not the desired branch then an extra action is required, like using the "checkout" command.

I would like to a) save a step and b) be very conservative about what code appears on my drive. If I'm deploying to a production server, I don't want non-vetted code to be written out, even transiently. A failure anywhere along the deploy process might leave exploitable code or sensitive information lying about. Thus I would like to be able to specify the branch/version used by the open command so as to have complete control at all times over what code exists in my checkout directory.


drh added on 2009-11-06 14:06:02:
This already works. Just type:

fossil open REPOSITORYNAME BRANCHNAME

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button