Show More
@@ -142,6 +142,13 b' If you run ``hg histedit --outgoing`` on' | |||
|
142 | 142 | as running ``hg histedit 836302820282``. If you need plan to push to a |
|
143 | 143 | repository that Mercurial does not detect to be related to the source |
|
144 | 144 | repo, you can add a ``--force`` option. |
|
145 | ||
|
146 | Histedit rule lines are truncated to 80 characters by default. You | |
|
147 | can customise this behaviour by setting a different length in your | |
|
148 | configuration file: | |
|
149 | ||
|
150 | [histedit] | |
|
151 | linelen = 120 # truncate rule lines at 120 characters | |
|
145 | 152 | """ |
|
146 | 153 | |
|
147 | 154 | try: |
@@ -843,7 +850,9 b' def makedesc(repo, action, rev):' | |||
|
843 | 850 | summary = ctx.description().splitlines()[0] |
|
844 | 851 | line = '%s %s %d %s' % (action, ctx, ctx.rev(), summary) |
|
845 | 852 | # trim to 80 columns so it's not stupidly wide in my editor |
|
846 | return util.ellipsis(line, 80) | |
|
853 | maxlen = repo.ui.configint('histedit', 'linelen', default=80) | |
|
854 | maxlen = max(maxlen, 22) # avoid truncating hash | |
|
855 | return util.ellipsis(line, maxlen) | |
|
847 | 856 | |
|
848 | 857 | def ruleeditor(repo, ui, rules, editcomment=""): |
|
849 | 858 | """open an editor to edit rules |
General Comments 0
You need to be logged in to leave comments.
Login now