Commit fe36c5d1 authored by Michal Čihař's avatar Michal Čihař

Basic prepare for hg reset

Issue #511
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 01aa52ae
......@@ -608,9 +608,10 @@ class HgRepository(Repository):
"""
Resets working copy to match remote branch.
TODO
TODO: Need to figure out remote revision
"""
self.execute(['reset', '--hard', 'origin/{0}'.format(branch)])
self.set_config('extensions', 'strip' ,'')
self.execute(['strip'])
def rebase(self, branch=None, abort=False):
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment