~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to shelf.py

Add support for diff --hunks

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
    return True
44
44
 
45
45
def shelve():
46
 
    diff_lines = run_bzr('diff')
 
46
    diff_lines = run_bzr('diff --hunks')
47
47
    patch_list = patches.parse_patches(diff_lines.__iter__())
48
48
    to_shelve = prompt_user(patch_list)
49
49