~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to bzrtools.py

  • Committer: Aaron Bentley
  • Date: 2006-03-16 05:59:11 UTC
  • Revision ID: aaron.bentley@utoronto.ca-20060316055911-07e6ec61b7630727
Only error on dirty wt if we are pushing the wt

Show diffs side-by-side

added added

removed removed

Lines of Context:
258
258
    if push_location.find(':') == -1:
259
259
        raise bzrlib.errors.MustUseDecorated
260
260
 
261
 
    clean, non_source = is_clean(tree)
262
 
    if not clean:
263
 
        print """Error: This tree has uncommitted changes or unknown (?) files.
264
 
Use "bzr status" to list them."""
265
 
        sys.exit(1)
266
261
    if working_tree:
 
262
        clean, non_source = is_clean(tree)
 
263
        if not clean:
 
264
            print """Error: This tree has uncommitted changes or unknown (?) files.
 
265
    Use "bzr status" to list them."""
 
266
            sys.exit(1)
267
267
        final_exclusions = non_source[:]
268
268
    else:
269
269
        wt = tree