~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to bzrtools.py

  • Committer: Aaron Bentley
  • Date: 2006-03-16 05:48:38 UTC
  • mfrom: (321.2.5 bzrtools)
  • Revision ID: aaron.bentley@utoronto.ca-20060316054838-a59dfe944c17b493
Got push working with new-format branches

Show diffs side-by-side

added added

removed removed

Lines of Context:
211
211
    tempdir = tempfile.mkdtemp('push')
212
212
    try:
213
213
        history_fname = os.path.join(tempdir, 'revision-history')
214
 
        cmd = rsync(location+'.bzr/revision-history', history_fname,
215
 
                    silent=True)
 
214
        try:
 
215
            cmd = rsync(location+'.bzr/revision-history', history_fname,
 
216
                        silent=True)
 
217
        except RsyncNoFile:
 
218
            cmd = rsync(location+'.bzr/branch/revision-history', history_fname,
 
219
                        silent=True)
216
220
        history = read_revision_history(history_fname)
217
221
    finally:
218
222
        shutil.rmtree(tempdir)