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 6889155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:07:12+00:00 2026-05-27T06:07:12+00:00

Using https://github.com/AndreyNikiforov/vault2git I was able to convert a Vault repo to Git and then

  • 0

Using https://github.com/AndreyNikiforov/vault2git I was able to convert a Vault repo to Git and then used Mercurial’s hg convert to get a hg repo. The only issues is that after running hg convert the dates on the change set commit dates are incorrect.

The dates show the time the change set was converted from got to mercurial instead of the commit date.

Is there something else I need to do to preserve the dates?

  • 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-27T06:07:13+00:00Added an answer on May 27, 2026 at 6:07 am

    I got this working by removing the code that checks the committer information in the hg convert git extension in the file https://www.mercurial-scm.org/repo/hg-stable/file/09b200396384/hgext/convert/git.py lines 125 to 130:

            if n == "committer":
                p = v.split()
                tm, tz = p[-2:]
                committer = " ".join(p[:-2])
                if committer[0] == "<": committer = committer[1:-1]
                committer = self.recode(committer)
    

    Once you remove this, hg convert will use the author information for the date. You’ll need to copy over the convert extension from the repo link, modify it and then add it to TortoiseHg.

    Why this needs to be done:

    When committing with git, there are two records in the changeset metadata: committer and author.

    • Author is the person responsible for the code.

    • Committer is the person who actually committed the changes to the repository.

    This distinction is important in an open-source project where the person who authored the code isn’t necessarily the person that commits it to the repository: usually there are maintainers (committers) of the project that accept pull requests from a contributor (author) and commit it to the repository.

    Vault2Git uses the Vault checkin info (committer and date of commit) as the git changeset author info. The git committer info uses the git user’s info and the actual date of commit (your default user for the repository). You can see this difference by doing git cat-file <rev hash> on a changeset that Vault2Git does.

    This works fine for git, but when you run hg convert, Mercurial uses the author name and the committer date to create the Mercruial changeset metadata.

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

Sidebar

Related Questions

I am using https://github.com/feelinglucky/php-readability and I am able to get the author's example to
I want to use the zsh-git-prompt, from this repo https://github.com/olivierverdier/zsh-git-prompt , I've been using
I'm using https://github.com/blueimp/jQuery-File-Upload and I was able to upload and save the file to
I'm using clearance ( https://github.com/thoughtbot/clearance/wiki ) for authentication in my rails app. But I'm
I followed this tutorial: https://github.com/EllisLab/CodeIgniter/wiki/PDF-generation-using-dompdf However, I can't seem to set the path right.
Using MongoDB C# driver ( http://github.com/samus/mongodb-csharp ), seems that I'm unable to get the
I am using this plugin: https://github.com/augustl/live-validations/wiki to check if the form field entered is
I have been using https://github.com/Redth/APNS-Sharp to send push notification message to all devices where
I was using https://github.com/RestKit/RestKit/wiki/Using-Multiple-Base-URLs-%28and-Multiple-Object-Managers%29 as a guide. I know it's possible to create multiple
I'm using Cufon ( https://github.com/sorccu/cufon/wiki/about ) to use special fonts in my website. But

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.