equal
deleted
inserted
replaced
3867 See :hg:`help revisions` and :hg:`help revsets` for more about |
3867 See :hg:`help revisions` and :hg:`help revsets` for more about |
3868 specifying revisions. |
3868 specifying revisions. |
3869 |
3869 |
3870 Returns 0 on successful completion. |
3870 Returns 0 on successful completion. |
3871 ''' |
3871 ''' |
3872 wlock = None |
3872 with repo.wlock(): |
3873 try: |
|
3874 wlock = repo.wlock() |
|
3875 return _dograft(ui, repo, *revs, **opts) |
3873 return _dograft(ui, repo, *revs, **opts) |
3876 finally: |
|
3877 release(wlock) |
|
3878 |
3874 |
3879 def _dograft(ui, repo, *revs, **opts): |
3875 def _dograft(ui, repo, *revs, **opts): |
3880 revs = list(revs) |
3876 revs = list(revs) |
3881 revs.extend(opts['rev']) |
3877 revs.extend(opts['rev']) |
3882 |
3878 |