Commits

Anonymous committed 8101fd1 Merge

merge oben repo

Comments (0)

Files changed (3)

 wish: shorthands for the commands as for standard mercurial commands: hg b e <bugid>. | owner:Arne Babenhauserheide <bab@draketo.de>, open:True, id:2aa3e8d66285641507809a201058f0fa24e123e9, time:1319088040.69
 add version command to report what version of b we're using                           | owner:Michael Diamond, open:False, id:4982d102b75bda27e54c16293350ff561c248921, time:1278106694.44
 Files should be added to mercurial at the end, not the begining of the call           | owner:Michael, open:False, id:6ba1ae74c48a6fd84c5d0698fa8169a28e88b343, time:1277680246.97
+Use consistent EOL markers and set up a .hgeol file                               | owner:, open:True, id:884b4c3360aa89bbd841013a6cf34bc904dcc3b5, time:1313353463.53
 Bugs with no details but a details file should act like there is not details file     | owner:Michael, open:False, id:9f771c1b687a119eb8e6f9a8443f2c0dde30776b, time:1277680715.42
-edit doesn't handle editors with spaces properly                                      | owner:Michael, open:True, id:aad16b3f42cade7b71eb1cc92c490f77c7366084, time:1310458238.24
+edit doesn't handle editors with spaces properly                                  | owner:Michael, open:False, id:aad16b3f42cade7b71eb1cc92c490f77c7366084, time:1310458238.24
 Calling commands that expect an ID without passing an ID throws an exception          | owner:Michael, open:False, id:d33d694650de726f70ff49003835fe6cc61d8d6d, time:1277687733.59

.bugs/details/aad16b3f42cade7b71eb1cc92c490f77c7366084.txt

 
 
 [comments]
-# Comments and updates - leave your name
+# Comments and updates - leave your name
+
+On: Sunday, August 14 2011 10:19PM
+Fixed by 8ec4a3919fec
 #
 # Imports
 #
-import os, errno, re, hashlib, sys, subprocess, time
+import os, errno, re, hashlib, shlex, sys, subprocess, time
 from operator import itemgetter
 from datetime import datetime
 from mercurial.i18n import _
         assumed to exist already.
         """
         if user == u'me':
-            return unicode(self.user)
+            return unicode(self.user)
         if user == u'Nobody':
             return u''
         users = self._users_list().keys()
                     raise AmbiguousUser(user,matched)
                 if len(matched) == 0:
                     raise UnknownUser(user)
-                user = unicode(matched[0])
+                user = unicode(matched[0])
             if user == u'Nobody': # needed twice, since users can also type a prefix to get it
                 return u''
         return user
         Using the -f flag will create a new user with that exact name,
 		it will not try to guess, or warn the user."""
         task = self[prefix]
-        prefix = unicode(prefix)
+        prefix = unicode(prefix)
         user = self._get_user(user,force)
         task[u'owner'] = user
         if user == u'':
         path = self._get_details_path(task[u'id'])[1]
         if not os.path.exists(path):
             self._make_details_file(task[u'id'])
-        subprocess.call([editor, path])
+        subprocess.call(shlex.split(editor) + [path])
         #subprocess.call()
         #print _timestamp()
     
         os.chdir(path) 
         bd = BugsDict(bugsdir,user)
         if cmd == u'add':
-            ui.write(bd.add(text)+'\n')
+            ui.write(bd.add(text)+'\n')
             bd.write()
         elif cmd == u'rename':
             bd.rename(id, subtext)
             bd.write()
         elif cmd == u'users':
-            ui.write(bd.users()+'\n')
+            ui.write(bd.users()+'\n')
         elif cmd == u'assign':
-            ui.write(bd.assign(id, subtext, opts[u'force'])+'\n')
+            ui.write(bd.assign(id, subtext, opts[u'force'])+'\n')
             bd.write()
         elif cmd == u'details':
             ui.write(bd.details(id).encode("utf-8")+'\n')
         elif cmd == u'list' or cmd == u'':
             ui.write(bd.list(not opts[u'resolved'], opts[u'owner'], opts[u'grep']).encode("utf-8")+'\n')
         elif cmd == u'id':
-            ui.write(bd.id(id)+'\n')
+            ui.write(bd.id(id)+'\n')
         elif cmd == u'version':
             ui.write(version+'\n')
         else: