Do we need to run hg update before converting hg changesets to git?

8 views
Skip to first unread message

Ehsan Akhgari

unread,
Oct 9, 2012, 3:39:20 PM10/9/12
to hg-...@googlegroups.com
I have a bunch of cron jobs which update a bunch of hg repos into git.  Here's roughly what the scripts look like:

hg pull
hg update
hg gexport
cd .hg/git
git push ...

My question is, is it really needed to update the working directory before running gexport?  Avoiding updates would save me a bunch of time since they take a while, but I wanted to check with you guys before blindly remove that step.

Thanks!
--
Ehsan
<http://ehsanakhgari.org/>

Augie Fackler

unread,
Oct 9, 2012, 3:40:38 PM10/9/12
to hg-...@googlegroups.com
Nope. You do have to set bookmarks as needed though, but that doesn't
require working copy stuff.
> --
> You received this message because you are subscribed to the Google Groups
> "hg-git" group.
> To post to this group, send email to hg-...@googlegroups.com.
> To unsubscribe from this group, send email to
> hg-git+un...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/hg-git?hl=en.

Ehsan Akhgari

unread,
Oct 9, 2012, 3:50:51 PM10/9/12
to hg-...@googlegroups.com
Thanks a lot for the quick reply!  (I set up the bookmarks in the script, just forgot to mention it :-)

--
Ehsan
<http://ehsanakhgari.org/>
Reply all
Reply to author
Forward
0 new messages