Adventures in resets

Personally, I don’t like to do resets on hg.  Git resets are so much easier.

B2G happens to be a mirror off of so it works off of git.

Unfortunately, gecko devs work off of hg.

So in order to find the same revision you have to either have a mapping or I found an easier way: git log –grep=”Bug 1107139″

or whatever bug you’re looking up.

Both gecko and gaia dev have a work flow that includes the bug number.  This will show you all the revs with that bug number.

You can then do a: git reset –hard d103771dfdee3f8475a10f3de9ff5998ac2d686e

or whatever your hash you want to reset is.

On hg, installing extensions helps out a lot in terms of backout and such…. still got a bit to learn about how hg works.

[edit: If you want to try reset on hg, there’s some reading material… ]


About shizen008

Breaking things and getting in trouble for it since '74. Disclaimer: I am not responsible if I make your head explode reading this blog! The writings here are my own expression and not of any companies. I currently work on being a QA for B2G aka Firefox OS
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s