hgext3rd/topic/destination.py
branchstable
changeset 4539 91628e5c0f6d
parent 4538 31c1645ef8bf
child 4814 48b30ff742cb
equal deleted inserted replaced
4538:31c1645ef8bf 4539:91628e5c0f6d
    76     if bookmarks.isactivewdirparent(repo):
    76     if bookmarks.isactivewdirparent(repo):
    77         movemark = repo['.'].node()
    77         movemark = repo['.'].node()
    78     return node, movemark, None
    78     return node, movemark, None
    79 
    79 
    80 def desthistedit(orig, ui, repo):
    80 def desthistedit(orig, ui, repo):
       
    81     if not common.hastopicext(repo):
       
    82         return None
    81     if not (ui.config('histedit', 'defaultrev', None) is None
    83     if not (ui.config('histedit', 'defaultrev', None) is None
    82             and repo.currenttopic):
    84             and repo.currenttopic):
    83         return orig(ui, repo)
    85         return orig(ui, repo)
    84     revs = repo.revs('::. and stack()')
    86     revs = repo.revs('::. and stack()')
    85     if revs:
    87     if revs: