~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to bzrtools.py

  • Committer: Aaron Bentley
  • Date: 2005-11-29 16:13:44 UTC
  • Revision ID: abentley@panoramicfeedback.com-20051129161344-3997ed0518fbdb2d
Introduced branch-history command

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
import errno
25
25
from subprocess import Popen, PIPE
26
26
import codecs
 
27
import re
27
28
 
28
29
def temp_branch():
29
30
    dirname = tempfile.mkdtemp("temp-branch")
289
290
 
290
291
    set_push_data(cur_branch, push_location)
291
292
 
 
293
def short_committer(committer):
 
294
    new_committer = re.sub('<.*>', '', committer).strip(' ')
 
295
    if len(new_committer) < 2:
 
296
        return committer
 
297
    return new_committer
 
298
 
 
299
 
292
300
def run_tests():
293
301
    import doctest
294
302
    result = doctest.testmod()