projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
combined
(merge:
9c95648
a6d5f28
)
Merged "be commit --allow-empty from be.wtk-rr"
author
W. Trevor King
<wking@drexel.edu>
Sun, 19 Jul 2009 19:26:48 +0000
(15:26 -0400)
committer
W. Trevor King
<wking@drexel.edu>
Sun, 19 Jul 2009 19:26:48 +0000
(15:26 -0400)
1
2
libbe/cmdutil.py
patch
|
diff1
|
diff2
|
blob
|
history
diff --cc
libbe/cmdutil.py
index 8499633cdc1bec70e84ca1a7a5249b3bc47169a7,853a75a406f53fa863a9263ad5ff12566f5df41a..548c255ba63c137a19480aca3952e82842ee63c7
---
1
/
libbe/cmdutil.py
---
2
/
libbe/cmdutil.py
+++ b/
libbe/cmdutil.py
@@@
-70,12
-70,13
+70,14
@@@
def get_command(command_name)
return cmd
-def execute(cmd, args):
+def execute(cmd, args
, manipulate_encodings=True
):
enc = encoding.get_encoding()
cmd = get_command(cmd)
- cmd.execute([a.decode(enc) for a in args],
- manipulate_encodings=manipulate_encodings)
- return 0
- ret = cmd.execute([a.decode(enc) for a in args])
++ ret = cmd.execute([a.decode(enc) for a in args],
++ manipulate_encodings=manipulate_encodings)
+ if ret == None:
+ ret = 0
+ return ret
def help(cmd=None, parser=None):
if cmd != None: