1579 max([len(abs) for abs in items]), |
1579 max([len(abs) for abs in items]), |
1580 max([len(m.rel(abs)) for abs in items])) |
1580 max([len(m.rel(abs)) for abs in items])) |
1581 for abs in items: |
1581 for abs in items: |
1582 line = fmt % (abs, m.rel(abs), m.exact(abs) and 'exact' or '') |
1582 line = fmt % (abs, m.rel(abs), m.exact(abs) and 'exact' or '') |
1583 ui.write("%s\n" % line.rstrip()) |
1583 ui.write("%s\n" % line.rstrip()) |
|
1584 |
|
1585 def debugwireargs(ui, repopath, *vals, **opts): |
|
1586 repo = hg.repository(hg.remoteui(ui, opts), repopath) |
|
1587 for opt in remoteopts: |
|
1588 del opts[opt[1]] |
|
1589 args = {} |
|
1590 for k, v in opts.iteritems(): |
|
1591 if v: |
|
1592 args[k] = v |
|
1593 # run twice to check that we don't mess up the stream for the next command |
|
1594 res1 = repo.debugwireargs(*vals, **args) |
|
1595 res2 = repo.debugwireargs(*vals, **args) |
|
1596 ui.write("%s\n" % res1) |
|
1597 if res1 != res2: |
|
1598 ui.warn("%s\n" % res2) |
1584 |
1599 |
1585 def diff(ui, repo, *pats, **opts): |
1600 def diff(ui, repo, *pats, **opts): |
1586 """diff repository (or selected files) |
1601 """diff repository (or selected files) |
1587 |
1602 |
1588 Show differences between revisions for the specified files. |
1603 Show differences between revisions for the specified files. |
4454 (debugsub, |
4469 (debugsub, |
4455 [('r', 'rev', '', |
4470 [('r', 'rev', '', |
4456 _('revision to check'), _('REV'))], |
4471 _('revision to check'), _('REV'))], |
4457 _('[-r REV] [REV]')), |
4472 _('[-r REV] [REV]')), |
4458 "debugwalk": (debugwalk, walkopts, _('[OPTION]... [FILE]...')), |
4473 "debugwalk": (debugwalk, walkopts, _('[OPTION]... [FILE]...')), |
|
4474 "debugwireargs": |
|
4475 (debugwireargs, |
|
4476 [('', 'three', '', 'three'), |
|
4477 ('', 'four', '', 'four'), |
|
4478 ] + remoteopts, |
|
4479 _('REPO [OPTIONS]... [ONE [TWO]]')), |
4459 "^diff": |
4480 "^diff": |
4460 (diff, |
4481 (diff, |
4461 [('r', 'rev', [], |
4482 [('r', 'rev', [], |
4462 _('revision'), _('REV')), |
4483 _('revision'), _('REV')), |
4463 ('c', 'change', '', |
4484 ('c', 'change', '', |
4787 "verify": (verify, []), |
4808 "verify": (verify, []), |
4788 "version": (version_, []), |
4809 "version": (version_, []), |
4789 } |
4810 } |
4790 |
4811 |
4791 norepo = ("clone init version help debugcommands debugcomplete" |
4812 norepo = ("clone init version help debugcommands debugcomplete" |
4792 " debugdate debuginstall debugfsinfo debugpushkey") |
4813 " debugdate debuginstall debugfsinfo debugpushkey debugwireargs") |
4793 optionalrepo = ("identify paths serve showconfig debugancestor debugdag" |
4814 optionalrepo = ("identify paths serve showconfig debugancestor debugdag" |
4794 " debugdata debugindex debugindexdot") |
4815 " debugdata debugindex debugindexdot") |