Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6088807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:01:42+00:00 2026-05-23T12:01:42+00:00

I have an active project with some sensitive files and directories. I want to

  • 0

I have an active project with some sensitive files and directories. I want to hire an external contractor to do some simple UI work. However, I don’t want the contractor to have access to some directories and files. My project is in mercurial on Bitbucket.

What is the best way to clean up the project and give him access to commit his changes? I thought about forking into a new repository, but I am worried about removing directories I don’t want him to have access to.

How to I remove them so they don’t appear the original changesets? How to I merge his repo back without it removing those directories in my main repository? Is a fork the way to go?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T12:01:43+00:00Added an answer on May 23, 2026 at 12:01 pm

    Naturally a repository needs access to its whole history in order to self-check its integrity. I don’t know of a way to selectively hide parts of the repository (there’s the ACL extension, but it is for write access only).

    In your case, I would

    1. create a new repository where all sensitive information has been stripped off (use the convert extension for that task).
    2. Then I would let the external guy work with that repository.
    3. Once his work is finsihed, pull his repository into a clone of the original one (using -f to force pulling of an unrelated repository), and
    4. rebase his first changeset and all its children onto a head of your original repository.
    5. Finally, push the rebased head to the original repository.

    For steps 3 to 5 you don’t necessarily have to wait until the external developer is done. Rebasing intermediate states of his repository is also possible.

    Yet, it’s an theoretical idea .. one has to see how it performs in practice.

    Alternative: In case you frequently have external contractors who shouldn’t see some parts of your code, I would second @Anton’s comment to setup permission related multiple repositories.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a project that I am working on for some simple CSS buttons,
i have a project in my SVN :), thats been active for some time.
I have a small Visual studio add-in that walks down active project and insert
Attempting/struggling to get registration and sign-up working within an active admin project. I have
I have an other active question HERE regarding some hopeless memory issues that possibly
I have installation solution that have installer project (not web installer but simple installer)
There is probably a really simple answer for this ... I have a project
I have a series of divs: <div class=some_class active>Some Content</div> <div class=some_class>Different Content</div> <div
I have a simple rails app with models project and phase. A project has
I have an eclipse plugin project which uses some swt objects, eg - import

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.