~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to scriptlib.py

  • Committer: abentley
  • Date: 2005-05-02 07:05:23 UTC
  • Revision ID: abentley@lappy-20050502070523-6124bdb57a9cddf8
removed references to sys.argv

Show diffs side-by-side

added added

removed removed

Lines of Context:
118
118
        if cur_branch.last_patch() != pull_revision:
119
119
            print "Aborting: This branch has had commits, so pull would lose data."
120
120
            sys.exit(1)
121
 
    if len(sys.argv) > 1:
122
 
        pull_location = sys.argv[1] 
 
121
    if location is not None:
 
122
        pull_location = location
123
123
        if not pull_location.endswith('/'):
124
124
            pull_location.append('/')
125
125