equal
deleted
inserted
replaced
1 # Copyright (c) 2009 Symbian Foundation Ltd |
1 # Copyright (c) 2010 Symbian Foundation Ltd |
2 # This component and the accompanying materials are made available |
2 # This component and the accompanying materials are made available |
3 # under the terms of the License "Eclipse Public License v1.0" |
3 # under the terms of the License "Eclipse Public License v1.0" |
4 # which accompanies this distribution, and is available |
4 # which accompanies this distribution, and is available |
5 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
5 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 # |
6 # |
9 # |
9 # |
10 # Contributors: |
10 # Contributors: |
11 # mattd <mattd@symbian.org> |
11 # mattd <mattd@symbian.org> |
12 # |
12 # |
13 # Description: |
13 # Description: |
14 # DBR diffenv - compares two environments |
14 # new diffenv - uses OO interface and can have |
15 |
15 |
16 import sys |
16 import dbrenv |
17 import dbrpatch |
|
18 |
17 |
19 def run(args): |
18 def run(args): |
20 if(len(args) == 2): |
19 if(len(args)): |
21 first = args[0] |
20 if(len(args) == 1): |
22 second = args[1] |
21 first = '/' |
23 dbrpatch.newcomparepatcheddbs(first, second) |
22 second = args[0] |
|
23 else: |
|
24 first = args[0] |
|
25 second = args[1] |
|
26 db1=dbrenv.CreateDB(first) |
|
27 db2=dbrenv.CreateDB(second) |
|
28 results = db1.compare(db2) |
|
29 results.printdetail() |
|
30 results.printsummary() |
24 else: |
31 else: |
25 help() |
32 help() |
26 |
33 |
27 def help(): |
34 def help(): |
28 print "Compares two environments" |
35 print "Compares two environments" |
29 print "Usage:" |
36 print "Usage:" |
30 print "\tdbr diffenv <drive1> <drive2>" |
37 print "\tdbr diffenv <drive1> (<drive2>)" |
31 |
38 |
|
39 |
32 |
40 |
33 |
|