~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzr

  • Committer: Martin Pool
  • Date: 2005-09-12 09:00:11 UTC
  • Revision ID: mbp@sourcefrog.net-20050912090011-97e81abfaeeb8948
- fix bug in Inventory.copy() 
  
  must copy inventory top-down so that directories are added before
  their children

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
 
27
27
REINVOKE = "__BZR_REINVOKE"    
28
 
NEED_VERS = (2, 3)
 
28
NEED_VERS = (2, 4)
 
29
KNOWN_PYTHONS = ('python2.4',)
29
30
 
30
31
if version_info < NEED_VERS:
31
32
    if not os.environ.has_key(REINVOKE):
32
33
        # mutating os.environ doesn't work in old Pythons
33
34
        os.putenv(REINVOKE, "1")
34
 
        for python in 'python2.4', 'python2.3':
 
35
        for python in KNOWN_PYTHONS:
35
36
            try:
36
37
                os.execvp(python, [python] + sys.argv)
37
38
            except OSError:
41
42
    sys.exit(1)
42
43
os.unsetenv(REINVOKE)
43
44
 
44
 
import bzrlib, bzrlib.commands
 
45
import bzrlib
 
46
import bzrlib.commands
 
47
import bzrlib.trace
45
48
 
46
49
if __name__ == '__main__':
 
50
    bzrlib.trace.enable_default_logging()
47
51
    sys.exit(bzrlib.commands.main(sys.argv))